Skip to content

Commit 6d1dc83

Browse files
feat(monitoring): update the api
#### monitoring:v3 The following keys were added: - resources.projects.resources.metricDescriptors.methods.list.parameters.activeOnly (Total Keys: 2)
1 parent 06c1759 commit 6d1dc83

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/dyn/monitoring_v3.projects.metricDescriptors.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2>Instance Methods</h2>
8787
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
8888
<p class="firstline">Gets a single metric descriptor.</p>
8989
<p class="toc_element">
90-
<code><a href="#list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
90+
<code><a href="#list">list(name, activeOnly=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
9191
<p class="firstline">Lists metric descriptors that match a filter.</p>
9292
<p class="toc_element">
9393
<code><a href="#list_next">list_next()</a></code></p>
@@ -237,11 +237,12 @@ <h3>Method Details</h3>
237237
</div>
238238

239239
<div class="method">
240-
<code class="details" id="list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
240+
<code class="details" id="list">list(name, activeOnly=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
241241
<pre>Lists metric descriptors that match a filter.
242242

243243
Args:
244244
name: string, Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] (required)
245+
activeOnly: boolean, Optional. If true, only metrics and monitored resource types that have recent data (within roughly 25 hours) will be included in the response. - If a metric descriptor enumerates monitored resource types, only the monitored resource types for which the metric type has recent data will be included in the returned metric descriptor, and if none of them have recent data, the metric descriptor will not be returned. - If a metric descriptor does not enumerate the compatible monitored resource types, it will be returned only if the metric type has recent data for some monitored resource type. The returned descriptor will not enumerate any monitored resource types.
245246
filter: string, Optional. If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with(&quot;custom.googleapis.com/&quot;)
246247
pageSize: integer, Optional. A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size &lt;= 0 or &gt; 10,000 is submitted, will instead return a maximum of 10,000 results.
247248
pageToken: string, Optional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.

googleapiclient/discovery_cache/documents/monitoring.v3.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,11 @@
12041204
"name"
12051205
],
12061206
"parameters": {
1207+
"activeOnly": {
1208+
"description": "Optional. If true, only metrics and monitored resource types that have recent data (within roughly 25 hours) will be included in the response. - If a metric descriptor enumerates monitored resource types, only the monitored resource types for which the metric type has recent data will be included in the returned metric descriptor, and if none of them have recent data, the metric descriptor will not be returned. - If a metric descriptor does not enumerate the compatible monitored resource types, it will be returned only if the metric type has recent data for some monitored resource type. The returned descriptor will not enumerate any monitored resource types.",
1209+
"location": "query",
1210+
"type": "boolean"
1211+
},
12071212
"filter": {
12081213
"description": "Optional. If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with(\"custom.googleapis.com/\") ",
12091214
"location": "query",
@@ -2715,7 +2720,7 @@
27152720
}
27162721
}
27172722
},
2718-
"revision": "20250102",
2723+
"revision": "20250111",
27192724
"rootUrl": "https://monitoring.googleapis.com/",
27202725
"schemas": {
27212726
"Aggregation": {

0 commit comments

Comments
 (0)