-
Notifications
You must be signed in to change notification settings - Fork 4
/
uptimeCheckIps.clj
34 lines (31 loc) · 1.38 KB
/
uptimeCheckIps.clj
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
(ns happygapi.monitoring.uptimeCheckIps
"Stackdriver Monitoring API: uptimeCheckIps.
Manages your Stackdriver Monitoring data and configurations. Most projects must be associated with a Stackdriver account, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Stackdriver Monitoring documentation.
See: https://cloud.google.com/monitoring/api/api/reference/rest/v3/uptimeCheckIps"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn list$
"https://cloud.google.com/monitoring/api/api/reference/rest/v3/uptimeCheckIps/list
Required parameters: none
Optional parameters: pageToken, pageSize
Returns the list of IP addresses that checkers run from"
{:scopes ["https://www.googleapis.com/auth/cloud-platform"
"https://www.googleapis.com/auth/monitoring"
"https://www.googleapis.com/auth/monitoring.read"]}
[auth args]
{:pre [(util/has-keys? args #{})]}
(util/get-response
(http/get
(util/get-url
"https://monitoring.googleapis.com/"
"v3/uptimeCheckIps"
#{}
args)
(merge-with
merge
{:throw-exceptions false,
:query-params args,
:accept :json,
:as :json}
auth))))