Debian Codegraph @

docs/dyn/monitoring_v1.projects.location.prometheus.api.v1.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="monitoring_v1.html">Cloud Monitoring API</a> . <a href="monitoring_v1.projects.html">projects</a> . <a href="monitoring_v1.projects.location.html">location</a> . <a href="monitoring_v1.projects.location.prometheus.html">prometheus</a> . <a href="monitoring_v1.projects.location.prometheus.api.html">api</a> . <a href="monitoring_v1.projects.location.prometheus.api.v1.html">v1</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="monitoring_v1.projects.location.prometheus.api.v1.label.html">label()</a></code>
79 </p>
80 <p class="firstline">Returns the label Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="monitoring_v1.projects.location.prometheus.api.v1.metadata.html">metadata()</a></code>
84 </p>
85 <p class="firstline">Returns the metadata Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#labels">labels(name, location, body=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Lists labels for metrics.</p>
93 <p class="toc_element">
94 <code><a href="#query">query(name, location, body=None, x__xgafv=None)</a></code></p>
95 <p class="firstline">Evaluate a PromQL query at a single point in time.</p>
96 <p class="toc_element">
97 <code><a href="#query_exemplars">query_exemplars(name, location, body=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Lists exemplars relevant to a given PromQL query,</p>
99 <p class="toc_element">
100 <code><a href="#query_range">query_range(name, location, body=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Evaluate a PromQL query with start, end time range.</p>
102 <p class="toc_element">
103 <code><a href="#series">series(name, location, body=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Lists metadata for metrics.</p>
105 <h3>Method Details</h3>
106 <div class="method">
107 <code class="details" id="close">close()</code>
108 <pre>Close httplib2 connections.</pre>
109 </div>
110
111 <div class="method">
112 <code class="details" id="labels">labels(name, location, body=None, x__xgafv=None)</code>
113 <pre>Lists labels for metrics.
114
115 Args:
116 name: string, Required. The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER. (required)
117 location: string, Location of the resource information. Has to be &quot;global&quot; now. (required)
118 body: object, The request body.
119 The object takes the form of:
120
121 { # QueryLabelsRequest holds all parameters of the Prometheus upstream API for returning a list of label names.
122 &quot;end&quot;: &quot;A String&quot;, # The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
123 &quot;match&quot;: &quot;A String&quot;, # A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.
124 &quot;start&quot;: &quot;A String&quot;, # The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
125 }
126
127 x__xgafv: string, V1 error format.
128 Allowed values
129 1 - v1 error format
130 2 - v2 error format
131
132 Returns:
133 An object of the form:
134
135 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page.This message can be used both in streaming and non-streaming API methods in the request as well as the response.It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body.Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
136 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
137 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
138 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
139 {
140 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
141 },
142 ],
143 }</pre>
144 </div>
145
146 <div class="method">
147 <code class="details" id="query">query(name, location, body=None, x__xgafv=None)</code>
148 <pre>Evaluate a PromQL query at a single point in time.
149
150 Args:
151 name: string, Required. The project on which to execute the request. Data associcated with the project&#x27;s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. (required)
152 location: string, Location of the resource information. Has to be &quot;global&quot; now. (required)
153 body: object, The request body.
154 The object takes the form of:
155
156 { # QueryInstantRequest holds all parameters of the Prometheus upstream instant query API plus GCM specific parameters.
157 &quot;query&quot;: &quot;A String&quot;, # A PromQL query string. Query language documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.
158 &quot;time&quot;: &quot;A String&quot;, # The single point in time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
159 &quot;timeout&quot;: &quot;A String&quot;, # An upper bound timeout for the query. Either a Prometheus duration string (https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or floating point seconds. This non-standard encoding must be used for compatibility with the open source API. Clients may still implement timeouts at the connection level while ignoring this field.
160 }
161
162 x__xgafv: string, V1 error format.
163 Allowed values
164 1 - v1 error format
165 2 - v2 error format
166
167 Returns:
168 An object of the form:
169
170 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page.This message can be used both in streaming and non-streaming API methods in the request as well as the response.It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body.Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
171 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
172 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
173 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
174 {
175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
176 },
177 ],
178 }</pre>
179 </div>
180
181 <div class="method">
182 <code class="details" id="query_exemplars">query_exemplars(name, location, body=None, x__xgafv=None)</code>
183 <pre>Lists exemplars relevant to a given PromQL query,
184
185 Args:
186 name: string, Required. The project on which to execute the request. Data associcated with the project&#x27;s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. (required)
187 location: string, Location of the resource information. Has to be &quot;global&quot; now. (required)
188 body: object, The request body.
189 The object takes the form of:
190
191 { # QueryExemplarsRequest holds all parameters of the Prometheus upstream API for querying exemplars.
192 &quot;end&quot;: &quot;A String&quot;, # The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
193 &quot;query&quot;: &quot;A String&quot;, # A PromQL query string. Query language documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.
194 &quot;start&quot;: &quot;A String&quot;, # The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
195 }
196
197 x__xgafv: string, V1 error format.
198 Allowed values
199 1 - v1 error format
200 2 - v2 error format
201
202 Returns:
203 An object of the form:
204
205 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page.This message can be used both in streaming and non-streaming API methods in the request as well as the response.It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body.Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
206 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
207 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
208 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
209 {
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 ],
213 }</pre>
214 </div>
215
216 <div class="method">
217 <code class="details" id="query_range">query_range(name, location, body=None, x__xgafv=None)</code>
218 <pre>Evaluate a PromQL query with start, end time range.
219
220 Args:
221 name: string, Required. The project on which to execute the request. Data associcated with the project&#x27;s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. (required)
222 location: string, Location of the resource information. Has to be &quot;global&quot; now. (required)
223 body: object, The request body.
224 The object takes the form of:
225
226 { # QueryRangeRequest holds all parameters of the Prometheus upstream range query API plus GCM specific parameters.
227 &quot;end&quot;: &quot;A String&quot;, # The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
228 &quot;query&quot;: &quot;A String&quot;, # A PromQL query string. Query language documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.
229 &quot;start&quot;: &quot;A String&quot;, # The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
230 &quot;step&quot;: &quot;A String&quot;, # The resolution of query result. Either a Prometheus duration string (https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or floating point seconds. This non-standard encoding must be used for compatibility with the open source API. Clients may still implement timeouts at the connection level while ignoring this field.
231 &quot;timeout&quot;: &quot;A String&quot;, # An upper bound timeout for the query. Either a Prometheus duration string (https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or floating point seconds. This non-standard encoding must be used for compatibility with the open source API. Clients may still implement timeouts at the connection level while ignoring this field.
232 }
233
234 x__xgafv: string, V1 error format.
235 Allowed values
236 1 - v1 error format
237 2 - v2 error format
238
239 Returns:
240 An object of the form:
241
242 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page.This message can be used both in streaming and non-streaming API methods in the request as well as the response.It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body.Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
243 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
244 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
245 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
246 {
247 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
248 },
249 ],
250 }</pre>
251 </div>
252
253 <div class="method">
254 <code class="details" id="series">series(name, location, body=None, x__xgafv=None)</code>
255 <pre>Lists metadata for metrics.
256
257 Args:
258 name: string, Required. The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER. (required)
259 location: string, Location of the resource information. Has to be &quot;global&quot; for now. (required)
260 body: object, The request body.
261 The object takes the form of:
262
263 { # QuerySeries holds all parameters of the Prometheus upstream API for querying series.
264 &quot;end&quot;: &quot;A String&quot;, # The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
265 &quot;start&quot;: &quot;A String&quot;, # The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.
266 }
267
268 x__xgafv: string, V1 error format.
269 Allowed values
270 1 - v1 error format
271 2 - v2 error format
272
273 Returns:
274 An object of the form:
275
276 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page.This message can be used both in streaming and non-streaming API methods in the request as well as the response.It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body.Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
277 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
278 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
279 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
280 {
281 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
282 },
283 ],
284 }</pre>
285 </div>
286
287 </body></html>