Datadog
Seamlessly integrate Datadog with your favorite APIs, databases, and programming languages, using WayScript.
Monitoring service for cloud-scale applications
To trigger your script when Datadog events occur, use the Datadog Trigger.

​
βš™
Setup

You will need to have access to two keys in order to return data from the Datadog API:
  • Application Key - Gives access to interacting with the Datadog Agent.
  • API Key - Unique to your organization
Both of these keys can be found here.

​
πŸ€–
Modes

Get a Monitor's Details

​
πŸ“€
Output

1
Get_Monitor = {
2
"created" : String,
3
"creator" : {
4
"email" : String,
5
"handle" : String,
6
"name" : String
7
} ,
8
"deleted" : String,
9
"id" : Int,
10
"message" : String,
11
"modified" : String,
12
"multi" : Bool,
13
"name" : String,
14
"options" : {
15
"aggregation" : {
16
"group_by" : String,
17
"metric" : String,
18
"type" : String
19
} ,
20
"device_ids" : [ String ],
21
"enable_logs_sample" : Bool,
22
"escalation_message" : String,
23
"evaluation_delay" : Int,
24
"include_tags" : Bool,
25
"locked" : Bool,
26
"min_failure_duration" : String,
27
"min_location_failed" : Int,
28
"new_host_delay" : Int,
29
"no_data_timeframe" : Int,
30
"notify_audit" : Bool,
31
"notify_no_data" : Bool,
32
"renotify_interval" : Int,
33
"require_full_window" : Bool,
34
"synthetics_check_id" : Int,
35
"threshold_windows" : {
36
"recovery_window" : String,
37
"trigger_window" : String
38
} ,
39
"thresholds" : {
40
"critical" : Float,
41
"critical_recovery" : Float,
42
"ok" : Float,
43
"unknown" : Float,
44
"warning" : Float,
45
"warning_recovery" : Float
46
} ,
47
"timeout_h": Int
48
} ),
49
"overall_state": String,
50
"query": String,
51
"tags" : [ String ],
52
"type" : String
53
}
Copied!

Get All Monitor Details

​
πŸ“₯
Inputs

  • Group States - Accepts "all", "alert", "warn" and "no data"
  • Name - String to filter monitors
  • Tags - Comma-separated list indicating what tags should be filtered
  • Monitor Tags - Comma-separated list indicating what service or tags
  • With Downtimes - If set to True, then the returned data includes all current downtime
  • ID Offset - Monitor ID offset
  • Page - The page to start paginating from
  • Page Size - Number of pagination results

​
πŸ“€
Output

1
Get_All_Monitors = {
2
"created" : String,
3
"creator" : {
4
"email" : String,
5
"handle" : String,
6
"name" : String
7
} ,
8
"deleted" : String,
9
"id" : Int,
10
"message" : String,
11
"modified" : String,
12
"multi" : Bool,
13
"name" : String,
14
"options" : {
15
"aggregation" : {
16
"group_by" : String,
17
"metric" : String,
18
"type" : String
19
} ,
20
"device_ids" : [ String ],
21
"enable_logs_sample" : Bool,
22
"escalation_message" : String,
23
"evaluation_delay" : Int,
24
"include_tags" : Bool,
25
"locked" : Bool,
26
"min_failure_duration" : String,
27
"min_location_failed" : Int,
28
"new_host_delay" : Int,
29
"no_data_timeframe" : Int,
30
"notify_audit" : Bool,
31
"notify_no_data" : Bool,
32
"renotify_interval" : Int,
33
"require_full_window" : Bool,
34
"synthetics_check_id" : Int,
35
"threshold_windows" : {
36
"recovery_window" : String,
37
"trigger_window" : String
38
} ,
39
"thresholds" : {
40
"critical" : Float,
41
"critical_recovery" : Float,
42
"ok" : Float,
43
"unknown" : Float,
44
"warning" : Float,
45
"warning_recovery" : Float
46
} ,
47
"timeout_h": Int
48
} ),
49
"overall_state": String,
50
"query": String,
51
"tags" : [ String ],
52
"type" : String
53
}
Copied!
Last modified 9mo ago