You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v1/MetricsApi/index.html
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@
55
55
api_instance = metrics_api.MetricsApi(api_client)
56
56
_from = 1 # int | Seconds since the Unix epoch.
57
57
host = "host_example" # str | Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag. (optional)
58
+
tag_filter = "env IN (staging,test) AND service:web" # str | Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. (optional)
58
59
59
60
# example passing only required values which don't have defaults set
print("Exception when calling MetricsApi->list_active_metrics: %s\n" % e)
75
-
</code></pre><h3id=parameters_1>Parameters</h3><table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Notes</th></tr></thead><tbody><tr><td><strong>_from</strong></td><td><strong>int</strong></td><td>Seconds since the Unix epoch.</td><td></td></tr><tr><td><strong>host</strong></td><td><strong>str</strong></td><td>Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag.</td><td>[optional]</td></tr></tbody></table><h3id=return-type_1>Return type</h3><p><ahref=../MetricsListResponse/><strong>MetricsListResponse</strong></a></p><h3id=authorization_1>Authorization</h3><p><ahref=../#apiKeyAuth>apiKeyAuth</a>, <ahref=../#appKeyAuth>appKeyAuth</a></p><h3id=http-request-headers_1>HTTP request headers</h3><ul><li><strong>Content-Type</strong>: Not defined</li><li><strong>Accept</strong>: application/json</li></ul><h3id=http-response-details_1>HTTP response details</h3><table><thead><tr><th>Status code</th><th>Description</th><th>Response headers</th></tr></thead><tbody><tr><td><strong>200</strong></td><td>OK</td><td>-</td></tr><tr><td><strong>400</strong></td><td>Bad Request</td><td>-</td></tr><tr><td><strong>403</strong></td><td>Forbidden</td><td>-</td></tr></tbody></table><p><ahref=#>[Back to top]</a><ahref=../#documentation-for-api-endpoints>[Back to API list]</a><ahref=../#documentation-for-models>[Back to Model list]</a><ahref=../>[Back to README]</a></p><h1id=list_metrics><strong>list_metrics</strong></h1><blockquote><p>MetricSearchResponse list_metrics(q)</p></blockquote><p>Search metrics</p><p>Search for metrics from the last 24 hours in Datadog.</p><h3id=example_2>Example</h3><ul><li>Api Key Authentication (apiKeyAuth):</li><li>Api Key Authentication (appKeyAuth):</li></ul><pre><codeclass=language-python>import os
76
+
</code></pre><h3id=parameters_1>Parameters</h3><table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Notes</th></tr></thead><tbody><tr><td><strong>_from</strong></td><td><strong>int</strong></td><td>Seconds since the Unix epoch.</td><td></td></tr><tr><td><strong>host</strong></td><td><strong>str</strong></td><td>Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag.</td><td>[optional]</td></tr><tr><td><strong>tag_filter</strong></td><td><strong>str</strong></td><td>Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters.</td><td>[optional]</td></tr></tbody></table><h3id=return-type_1>Return type</h3><p><ahref=../MetricsListResponse/><strong>MetricsListResponse</strong></a></p><h3id=authorization_1>Authorization</h3><p><ahref=../#apiKeyAuth>apiKeyAuth</a>, <ahref=../#appKeyAuth>appKeyAuth</a></p><h3id=http-request-headers_1>HTTP request headers</h3><ul><li><strong>Content-Type</strong>: Not defined</li><li><strong>Accept</strong>: application/json</li></ul><h3id=http-response-details_1>HTTP response details</h3><table><thead><tr><th>Status code</th><th>Description</th><th>Response headers</th></tr></thead><tbody><tr><td><strong>200</strong></td><td>OK</td><td>-</td></tr><tr><td><strong>400</strong></td><td>Bad Request</td><td>-</td></tr><tr><td><strong>403</strong></td><td>Forbidden</td><td>-</td></tr></tbody></table><p><ahref=#>[Back to top]</a><ahref=../#documentation-for-api-endpoints>[Back to API list]</a><ahref=../#documentation-for-models>[Back to Model list]</a><ahref=../>[Back to README]</a></p><h1id=list_metrics><strong>list_metrics</strong></h1><blockquote><p>MetricSearchResponse list_metrics(q)</p></blockquote><p>Search metrics</p><p>Search for metrics from the last 24 hours in Datadog.</p><h3id=example_2>Example</h3><ul><li>Api Key Authentication (apiKeyAuth):</li><li>Api Key Authentication (appKeyAuth):</li></ul><pre><codeclass=language-python>import os
76
77
from dateutil.parser import parse as dateutil_parser
77
78
from datadog_api_client.v1 import ApiClient, ApiException, Configuration
78
79
from datadog_api_client.v1.api import metrics_api
@@ -179,4 +180,4 @@
179
180
pprint(api_response)
180
181
except ApiException as e:
181
182
print("Exception when calling MetricsApi->update_metric_metadata: %s\n" % e)
0 commit comments