Skip to content

Parse sample payload integration

What does this MR do?

Integrates parsing of sample alert payload with backend Here is the MR we're integrating with !53629 (merged)

Currently hidden behind multiple_http_integrations_custom_mapping feature flag

To check navigate to Operations=> Settings=>Expand Alert section or the direct link will be localhost/group/project/-/settings/operations#js-alert-management-settings

  • Fill the form (make sure to select HTTP endpoint type on step 1)
  • Toggle active
  • Now you can paste and parse payload (any valid JSON) so that to configure alert mapping

Screenshots (strongly suggested)

2021-02-05_20.18.09

Testing

Sample Payload
{
  "dashboardId":1,
  "evalMatches":[
    {
      "value":1,
      "metric":"Count",
      "tags":{}
    }
  ],
  "imageUrl":"https://grafana.com/static/assets/img/blog/mixed_styles.png",
  "message":"Notification Message",
  "orgId":1,
  "panelId":2,
  "ruleId":1,
  "ruleName":"Panel Title alert",
  "ruleUrl":"http://localhost:3000/d/hZ7BuVbWz/test-dashboard?fullscreen\u0026edit\u0026tab=alert\u0026panelId=2\u0026orgId=1",
  "state":"alerting",
  "tags":{
    "tag name":"tag value"
  },
  "title":"[Alerting] Panel Title alert"
}

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #262707 (closed)

Edited by Olena Horal-Koretska

Merge request reports