Instana U

 View Only
  • 1.  Alerts API

    Posted Thu August 29, 2024 04:41 PM

    Hi everyone! Is there a way to create an alert using API? At the documentation I just found GET, PUT and DELETE methods, there is no POST. Thanks in advance.



    ------------------------------
    Nuno Goncalo Correia da Corte
    ------------------------------


  • 2.  RE: Alerts API

    Posted Fri August 30, 2024 11:26 AM

    Hi Nuno

    What kind of alert? Mobile, web, app or Infra?

    Please be aware that for Infra alerts we have a Beta version for SmartAlerts which are similar to all other SmartAlerts (Web, Mobile and App).

    For "old-style" Infra "alerts", we use separate configs for event specification, alert and alert channel. See below.

    App Alerts you can create with (this is the preferred way for Apps)

    https://instana.github.io/openapi/#operation/createApplicationAlertConfig

    Our old style event specification can be done with
    https://instana.github.io/openapi/#operation/postCustomEventSpecification

    But indeed, if you want to create an old-style alert (or alert channel), you have to use the PUT

    https://instana.github.io/openapi/#operation/putAlert

    and use your own random ID

    Last, Infra SmartAlerts are here

    https://instana.github.io/openapi/#operation/findActiveInfraAlertConfigs

    Let me know if this helps or if you have more questions

    Tom



    ------------------------------
    Tom Tammann
    ------------------------------



  • 3.  RE: Alerts API

    Posted Fri August 30, 2024 11:36 AM

    Hi Tom, thanks for your message. PUT is what I'm looking for, in order to create an old-style alert. In general, there is a POST method to do this, that's why I was not finding it. 



    ------------------------------
    Nuno Goncalo Correia da Corte
    ------------------------------