File: TestMonitorMetricDefinitions_Get.yaml

package info (click to toggle)
golang-github-linode-linodego 1.55.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,112 kB
  • sloc: makefile: 96; sh: 52; python: 24
file content (169 lines) | stat: -rw-r--r-- 6,994 bytes parent folder | download
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
---
version: 1
interactions:
- request:
    body: ""
    form: {}
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - linodego/dev https://github.com/linode/linodego
    url: https://api.linode.com/v4beta/monitor/services/dbaas/metric-definitions?page=1
    method: GET
  response:
    body: '{"data": [{"label": "CPU Usage", "metric": "cpu_usage", "unit": "percent",
      "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": true, "available_aggregate_functions":
      ["sum", "max", "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label":
      "node_type", "values": ["primary", "secondary"]}]}, {"label": "Disk I/O Read",
      "metric": "read_iops", "unit": "iops", "metric_type": "gauge", "scrape_interval":
      "60s", "is_alertable": false, "available_aggregate_functions": ["sum", "max",
      "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type",
      "values": ["primary", "secondary"]}]}, {"label": "Disk I/O Write", "metric":
      "write_iops", "unit": "iops", "metric_type": "gauge", "scrape_interval": "60s",
      "is_alertable": false, "available_aggregate_functions": ["sum", "max", "avg",
      "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type",
      "values": ["primary", "secondary"]}]}, {"label": "Memory Usage", "metric": "memory_usage",
      "unit": "percent", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable":
      true, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions":
      [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary",
      "secondary"]}]}, {"label": "Available Memory", "metric": "available_memory",
      "unit": "GB", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable":
      false, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions":
      [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary",
      "secondary"]}]}, {"label": "Disk Space Usage", "metric": "disk_usage", "unit":
      "percent", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable":
      true, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions":
      [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary",
      "secondary"]}]}, {"label": "Available Disk Space", "metric": "available_disk",
      "unit": "GB", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable":
      false, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions":
      [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary",
      "secondary"]}]}], "page": 1, "pages": 1, "results": 7}'
    headers:
      Access-Control-Allow-Credentials:
      - "true"
      Access-Control-Allow-Headers:
      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
      Access-Control-Allow-Methods:
      - HEAD, GET, OPTIONS, POST, PUT, DELETE
      Access-Control-Allow-Origin:
      - '*'
      Access-Control-Expose-Headers:
      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
      Akamai-Internal-Account:
      - '*'
      Cache-Control:
      - max-age=0, no-cache, no-store
      Connection:
      - keep-alive
      Content-Security-Policy:
      - default-src 'none'
      Content-Type:
      - application/json
      Expires:
      - Mon, 07 Apr 2025 10:19:27 GMT
      Pragma:
      - no-cache
      Strict-Transport-Security:
      - max-age=31536000
      Vary:
      - Authorization, X-Filter
      - Authorization, X-Filter
      - Accept-Encoding
      X-Accepted-Oauth-Scopes:
      - monitor:read_only
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      - DENY
      X-Oauth-Scopes:
      - '*'
      X-Ratelimit-Limit:
      - "1600"
      X-Xss-Protection:
      - 1; mode=block
    status: 200 OK
    code: 200
    duration: ""
- request:
    body: ""
    form: {}
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - linodego/dev https://github.com/linode/linodego
      X-Filter:
      - '{"is_alertable":false}'
    url: https://api.linode.com/v4beta/monitor/services/dbaas/metric-definitions?page=1
    method: GET
  response:
    body: '{"data": [{"label": "Disk I/O Read", "metric": "read_iops", "unit": "iops",
      "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": false, "available_aggregate_functions":
      ["sum", "max", "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label":
      "node_type", "values": ["primary", "secondary"]}]}, {"label": "Disk I/O Write",
      "metric": "write_iops", "unit": "iops", "metric_type": "gauge", "scrape_interval":
      "60s", "is_alertable": false, "available_aggregate_functions": ["sum", "max",
      "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type",
      "values": ["primary", "secondary"]}]}, {"label": "Available Memory", "metric":
      "available_memory", "unit": "GB", "metric_type": "gauge", "scrape_interval":
      "60s", "is_alertable": false, "available_aggregate_functions": ["sum", "max",
      "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type",
      "values": ["primary", "secondary"]}]}, {"label": "Available Disk Space", "metric":
      "available_disk", "unit": "GB", "metric_type": "gauge", "scrape_interval": "60s",
      "is_alertable": false, "available_aggregate_functions": ["sum", "max", "avg",
      "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type",
      "values": ["primary", "secondary"]}]}], "page": 1, "pages": 1, "results": 4}'
    headers:
      Access-Control-Allow-Credentials:
      - "true"
      Access-Control-Allow-Headers:
      - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
      Access-Control-Allow-Methods:
      - HEAD, GET, OPTIONS, POST, PUT, DELETE
      Access-Control-Allow-Origin:
      - '*'
      Access-Control-Expose-Headers:
      - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
      Akamai-Internal-Account:
      - '*'
      Cache-Control:
      - max-age=0, no-cache, no-store
      Connection:
      - keep-alive
      Content-Security-Policy:
      - default-src 'none'
      Content-Type:
      - application/json
      Expires:
      - Mon, 07 Apr 2025 10:19:28 GMT
      Pragma:
      - no-cache
      Strict-Transport-Security:
      - max-age=31536000
      Vary:
      - Authorization, X-Filter
      - Authorization, X-Filter
      - Accept-Encoding
      X-Accepted-Oauth-Scopes:
      - monitor:read_only
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      - DENY
      X-Oauth-Scopes:
      - '*'
      X-Ratelimit-Limit:
      - "1600"
      X-Xss-Protection:
      - 1; mode=block
    status: 200 OK
    code: 200
    duration: ""