-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmanifest.json
88 lines (88 loc) · 2.65 KB
/
manifest.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"variables": {
"subject": "Average transaction duration by application and URI"
},
"reports": [
{
"id": "example-dashboard-report",
"name": "Example dashboard report",
"dashboards": [
"DASHBOARD_GUID_1"
],
"publishConfigs": [
{
"id": "default",
"name": "Copy file",
"channels": [
{
"id": "copy-file-to-tmp",
"name": "Copy file to /tmp",
"type": "file",
"destDir": "/tmp"
}
]
},
{
"id": "copy-pdf-to-s3",
"name": "Copy dashboard PDF to S3 bucket",
"channels": [
{
"id": "copy-file",
"name": "Copy to S3",
"type": "s3",
"bucket": "Daily Report"
}
]
},
{
"id": "email-pdf",
"name": "Email dashboard PDF",
"channels": [
{
"id": "send-email",
"name": "Email PDF report to leadership",
"type": "email",
"subject": "Average transaction duration by application and URI",
"from": "[email protected]",
"to": "[email protected], [email protected]",
"cc": "[email protected], [email protected]"
}
]
}
]
},
{
"id": "example-query-report",
"query": "SELECT average(duration) as 'Duration' FROM Transaction FACET appName as 'Application Name', request.uri",
"accountIds": [1234567],
"timeout": 10,
"publishConfigs": [
{
"id": "slack",
"name": "Post to Slack",
"channels": [
{
"id": "post-slack",
"name": "Post query results to Slack",
"type": "slack",
"message": "{{ REPORT_NAME }}\n\nResults from the average transaction duration query.\n\n{{ RESULTS_CSV_FORMATTED }}"
}
]
},
{
"id": "external-webhook",
"name": "Post to external webhook",
"channels": [
{
"id": "post-webhook",
"name": "Post query results to webhook",
"type": "webhook",
"webhookHeader1": "X-Foo: bar",
"payload": "{\"reportId\": \"{{ REPORT_ID }}\",\"reportName\": \"{{ REPORT_NAME }}\",\"publishConfigId\": \"{{ PUBLISH_CONFIG_ID }}\",\"publishConfigName\": \"{{ PUBLISH_CONFIG_NAME }}\",\"channelId\": \"{{ CHANNEL_ID }}\",\"channelName\": \"{{ CHANNEL_NAME }}\",\"results\": {{ RESULTS }}}"
}
]
}
]
}
]
}