-
Notifications
You must be signed in to change notification settings - Fork 4
/
uptimeCheckIps.clj
35 lines (31 loc) · 1.08 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
35
(ns happygapi.monitoring.uptimeCheckIps
"Cloud Monitoring API: uptimeCheckIps.
Manages your Cloud Monitoring data and configurations.
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: pageSize, pageToken
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 parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/get
(util/get-url
"https://monitoring.googleapis.com/"
"v3/uptimeCheckIps"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))