Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "channels": [{
- "id": 2063643,
- "name": "Webhook #1",
- "type": "webhook",
- "configuration": {
- "payload_type": "",
- "headers": {
- "Authorization": "REDACTED"
- },
- "payload": "",
- "base_url": "REDACTED"
- },
- "links": {
- "policy_ids": [
- 340517,
- 412582,
- 412583,
- 474854,
- 474853,
- 474851,
- 474850,
- 370755,
- 370754,
- 531302,
- 344085,
- 426774,
- 549691,
- 549693,
- 583229,
- 583230,
- 531793,
- 426778
- ]
- }
- },
- {
- "id": 1027780,
- "name": "Webhook #2",
- "type": "webhook",
- "configuration": {
- "headers": {
- "X-Insert-Key": "REDACTED",
- "Content-Type": "application/json"
- },
- "payload_type": "application/json",
- "payload": {
- "eventType": "ChadsTestAlertType",
- "accountId": "$ACCOUNT_ID",
- "appId": 67596818,
- "account_name": "$ACCOUNT_NAME",
- "condition_id": "$CONDITION_ID",
- "condition_name": "$CONDITION_NAME",
- "current_state": "$EVENT_STATE",
- "details": "$EVENT_DETAILS",
- "event_type": "$EVENT_TYPE",
- "incident_acknowledge_url": "$INCIDENT_ACKNOWLEDGE_URL",
- "incident_id": "$INCIDENT_ID",
- "incident_url": "$INCIDENT_URL",
- "owner": "$EVENT_OWNER",
- "policy_name": "$POLICY_NAME",
- "policy_url": "$POLICY_URL",
- "runbook_url": "$RUNBOOK_URL",
- "severity": "$SEVERITY",
- "targets": "$TARGETS",
- "timestamp": "$TIMESTAMP",
- "violation_chart_url": "$VIOLATION_CHART_URL",
- "tenantId": "$TENANT_ID"
- },
- "base_url": "REDACTED"
- },
- "links": {
- "policy_ids": [
- 144817
- ]
- }
- },
- {
- "id": 2296912,
- "name": "Webhook #3",
- "type": "webhook",
- "configuration": {
- "headers": "",
- "payload_type": "",
- "payload": "",
- "base_url": "RECACTED"
- },
- "links": {
- "policy_ids": [
- 420366
- ]
- }
- },
- {
- "id": 1769622,
- "name": "Webhook #4",
- "type": "webhook",
- "configuration": {
- "payload_type": "application/json",
- "headers": "",
- "payload": {
- "@context": "http://schema.org/extensions",
- "@type": "MessageCard",
- "title": "$CONDITION_NAME",
- "text": "$CONDITION_NAME",
- "sections": [{
- "activityTitle": "Policy: $POLICY_NAME",
- "activitySubtitle": "State: $EVENT_TYPE",
- "activityText": "Severity: $SEVERITY",
- "activityImage": "<image>"
- },
- {
- "title": "Details",
- "facts": [{
- "name": "Attachments",
- "value": "[Chart]($VIOLATION_CHART_URL)"
- }]
- },
- {
- "title": "Chart",
- "images": [{
- "image": "$VIOLATION_CHART_URL"
- }]
- }
- ],
- "potentialAction": [{
- "@type": "OpenUri",
- "name": "View Incident",
- "targets": [{
- "os": "default",
- "uri": "$INCIDENT_URL"
- }]
- },
- {
- "@type": "OpenUri",
- "name": "Acknoweldge Incident",
- "targets": [{
- "os": "default",
- "uri": "$INCIDENT_ACKNOWLEDGE_URL"
- }]
- }
- ]
- },
- "base_url": "REDACTED"
- },
- "links": {
- "policy_ids": [
- 298661
- ]
- }
- },
- {
- "id": 684893,
- "name": "Webhook #5",
- "type": "webhook",
- "configuration": {
- "headers": "",
- "payload_type": "application/json",
- "payload": {
- "title": "New Relic Alert: $CONDITION_NAME in $POLICY_NAME",
- "text": "$EVENT_DETAILS"
- },
- "base_url": "REDACATED"
- },
- "links": {
- "policy_ids": []
- }
- },
- {
- "id": 786108,
- "name": "Webhook #6",
- "type": "webhook",
- "configuration": {
- "headers": "",
- "payload_type": "",
- "payload": "",
- "base_url": "REDACTED"
- },
- "links": {
- "policy_ids": []
- }
- }
- ],
- "links": {
- "channel.policy_ids": "/v2/policies/{policy_id}"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement