Code Monkey home page Code Monkey logo

Comments (7)

amotl avatar amotl commented on June 4, 2024 1

Hi again,

I tested on PUT operation and I get the error I mentioned, the error only happens when there is a rule already created without the header and we try to update it.

All right. I see, that makes sense. With the new improvements from #53, you will be able to control sending the header on your own behalf, by using the disable_provenance argument on the methods create_alertrule and update_alertrule.

The improvement has been released with grafana-client 3.4.0. Feedback is very much appreciated.

With kind regards,
Andreas.

from grafana-client.

amotl avatar amotl commented on June 4, 2024

Hi Johan Sebastian,

that's a very good suggestion, thank you. Are you sure the header should not be attached to the PUT request as well?

Citing the post...

We are enabling a workaround within the Provisioning API to do it by adding the x-disable-provenance header to the following requests:

POST /api/v1/provisioning/alert-rules
PUT /api/v1/provisioning/alert-rules/{UID}

... makes me think the header should be attached to both types of requests, no?

With kind regards,
Andreas.

from grafana-client.

amotl avatar amotl commented on June 4, 2024

I've just submitted #53, following your suggestion. Do you agree with the implementation?

from grafana-client.

jyepesr1 avatar jyepesr1 commented on June 4, 2024

Hi @amotl,

Sorry for the delay, I tested on PUT operation and I get the error I mentioned, the error only happens when there is a rule already created without the header and we try to update it.

This is the only consideration!

from grafana-client.

amotl avatar amotl commented on June 4, 2024

Hi @jyepesr1,

have you been able to test the feature successfully?

With kind regards,
Andreas.

from grafana-client.

jyepesr1 avatar jyepesr1 commented on June 4, 2024

Hi @amotl ,

I was able to test it out successfully. It works like a charm!

Thanks again

from grafana-client.

amotl avatar amotl commented on June 4, 2024

Excellent, thank you for reporting back, and for your suggestion in the first place. Cheers, Andreas.

from grafana-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.