Advertisement
Guest User

Bug #323 (Non-Prod) - Failing

a guest
Jan 24th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.27 KB | None | 0 0
  1. {
  2.     "channels": [{
  3.             "id": 2063643,
  4.             "name": "Webhook #1",
  5.             "type": "webhook",
  6.             "configuration": {
  7.                 "payload_type": "",
  8.                 "headers": {
  9.                     "Authorization": "REDACTED"
  10.                 },
  11.                 "payload": "",
  12.                 "base_url": "REDACTED"
  13.             },
  14.             "links": {
  15.                 "policy_ids": [
  16.                     340517,
  17.                     412582,
  18.                     412583,
  19.                     474854,
  20.                     474853,
  21.                     474851,
  22.                     474850,
  23.                     370755,
  24.                     370754,
  25.                     531302,
  26.                     344085,
  27.                     426774,
  28.                     549691,
  29.                     549693,
  30.                     583229,
  31.                     583230,
  32.                     531793,
  33.                     426778
  34.                 ]
  35.             }
  36.         },
  37.         {
  38.             "id": 1027780,
  39.             "name": "Webhook #2",
  40.             "type": "webhook",
  41.             "configuration": {
  42.                 "headers": {
  43.                     "X-Insert-Key": "REDACTED",
  44.                     "Content-Type": "application/json"
  45.                 },
  46.                 "payload_type": "application/json",
  47.                 "payload": {
  48.                     "eventType": "ChadsTestAlertType",
  49.                     "accountId": "$ACCOUNT_ID",
  50.                     "appId": 67596818,
  51.                     "account_name": "$ACCOUNT_NAME",
  52.                     "condition_id": "$CONDITION_ID",
  53.                     "condition_name": "$CONDITION_NAME",
  54.                     "current_state": "$EVENT_STATE",
  55.                     "details": "$EVENT_DETAILS",
  56.                     "event_type": "$EVENT_TYPE",
  57.                     "incident_acknowledge_url": "$INCIDENT_ACKNOWLEDGE_URL",
  58.                     "incident_id": "$INCIDENT_ID",
  59.                     "incident_url": "$INCIDENT_URL",
  60.                     "owner": "$EVENT_OWNER",
  61.                     "policy_name": "$POLICY_NAME",
  62.                     "policy_url": "$POLICY_URL",
  63.                     "runbook_url": "$RUNBOOK_URL",
  64.                     "severity": "$SEVERITY",
  65.                     "targets": "$TARGETS",
  66.                     "timestamp": "$TIMESTAMP",
  67.                     "violation_chart_url": "$VIOLATION_CHART_URL",
  68.                     "tenantId": "$TENANT_ID"
  69.                 },
  70.                 "base_url": "REDACTED"
  71.             },
  72.             "links": {
  73.                 "policy_ids": [
  74.                     144817
  75.                 ]
  76.             }
  77.         },
  78.         {
  79.             "id": 2296912,
  80.             "name": "Webhook #3",
  81.             "type": "webhook",
  82.             "configuration": {
  83.                 "headers": "",
  84.                 "payload_type": "",
  85.                 "payload": "",
  86.                 "base_url": "RECACTED"
  87.             },
  88.             "links": {
  89.                 "policy_ids": [
  90.                     420366
  91.                 ]
  92.             }
  93.         },
  94.         {
  95.             "id": 1769622,
  96.             "name": "Webhook #4",
  97.             "type": "webhook",
  98.             "configuration": {
  99.                 "payload_type": "application/json",
  100.                 "headers": "",
  101.                 "payload": {
  102.                     "@context": "http://schema.org/extensions",
  103.                     "@type": "MessageCard",
  104.                     "title": "$CONDITION_NAME",
  105.                     "text": "$CONDITION_NAME",
  106.                     "sections": [{
  107.                             "activityTitle": "Policy: $POLICY_NAME",
  108.                             "activitySubtitle": "State: $EVENT_TYPE",
  109.                             "activityText": "Severity: $SEVERITY",
  110.                             "activityImage": "<image>"
  111.                         },
  112.                         {
  113.                             "title": "Details",
  114.                             "facts": [{
  115.                                 "name": "Attachments",
  116.                                 "value": "[Chart]($VIOLATION_CHART_URL)"
  117.                             }]
  118.                         },
  119.                         {
  120.                             "title": "Chart",
  121.                             "images": [{
  122.                                 "image": "$VIOLATION_CHART_URL"
  123.                             }]
  124.                         }
  125.                     ],
  126.                     "potentialAction": [{
  127.                             "@type": "OpenUri",
  128.                             "name": "View Incident",
  129.                             "targets": [{
  130.                                 "os": "default",
  131.                                 "uri": "$INCIDENT_URL"
  132.                             }]
  133.                         },
  134.                         {
  135.                             "@type": "OpenUri",
  136.                             "name": "Acknoweldge Incident",
  137.                             "targets": [{
  138.                                 "os": "default",
  139.                                 "uri": "$INCIDENT_ACKNOWLEDGE_URL"
  140.                             }]
  141.                         }
  142.                     ]
  143.                 },
  144.                 "base_url": "REDACTED"
  145.             },
  146.             "links": {
  147.                 "policy_ids": [
  148.                     298661
  149.                 ]
  150.             }
  151.         },
  152.         {
  153.             "id": 684893,
  154.             "name": "Webhook #5",
  155.             "type": "webhook",
  156.             "configuration": {
  157.                 "headers": "",
  158.                 "payload_type": "application/json",
  159.                 "payload": {
  160.                     "title": "New Relic Alert: $CONDITION_NAME in $POLICY_NAME",
  161.                     "text": "$EVENT_DETAILS"
  162.                 },
  163.                 "base_url": "REDACATED"
  164.             },
  165.             "links": {
  166.                 "policy_ids": []
  167.             }
  168.         },
  169.         {
  170.             "id": 786108,
  171.             "name": "Webhook #6",
  172.             "type": "webhook",
  173.             "configuration": {
  174.                 "headers": "",
  175.                 "payload_type": "",
  176.                 "payload": "",
  177.                 "base_url": "REDACTED"
  178.             },
  179.             "links": {
  180.                 "policy_ids": []
  181.             }
  182.         }
  183.     ],
  184.     "links": {
  185.         "channel.policy_ids": "/v2/policies/{policy_id}"
  186.     }
  187. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement