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
Returns all metrics for your organization that match the given filter parameters.
792
-
Optionally, paginate by using the ``page[cursor]`` and/or ``page[size]`` query parameters.
793
-
To fetch the first page, pass in a query parameter with either a valid ``page[size]`` or an empty cursor like ``page[cursor]=``. To fetch the next page, pass in the ``next_cursor`` value from the response as the new ``page[cursor]`` value.
794
-
Once the ``meta.pagination.next_cursor`` value is null, all pages have been retrieved.
795
+
Get a list of actively reporting metrics for your organization. Pagination is optional using the ``page[cursor]`` and ``page[size]`` query parameters.
795
796
796
-
:param filter_configured: Filter custom metrics that have configured tags.
797
+
:param filter_configured: Only return custom metrics that have been configured with Metrics Without Limits.
797
798
:type filter_configured: bool, optional
798
-
:param filter_tags_configured: Filter tag configurations by configured tags.
799
+
:param filter_tags_configured: Only return metrics that have the given tag key(s) in their Metrics Without Limits configuration (included or excluded).
799
800
:type filter_tags_configured: str, optional
800
-
:param filter_metric_type: Filter metrics by metric type.
801
+
:param filter_metric_type: Only return metrics of the given metric type.
:param filter_include_percentiles: Filter distributions with additional percentile
803
-
aggregations enabled or disabled.
803
+
:param filter_include_percentiles: Only return distribution metrics that have percentile aggregations enabled (true) or disabled (false).
804
804
:type filter_include_percentiles: bool, optional
805
-
:param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
806
-
If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
805
+
:param filter_queried: Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with ``filter[queried][window][seconds]`` ; if omitted, a default window is used.
807
806
:type filter_queried: bool, optional
808
-
:param filter_queried_window_seconds: The number of seconds of look back (from now) used by the ``filter[queried]`` filter logic.
809
-
Must be sent with ``filter[queried]`` and is only applied when ``filter[queried]=true``.
810
-
If ``filter[queried]=false`` , this parameter is ignored and default queried-window behavior applies.
811
-
If ``filter[queried]`` is not provided, sending this parameter returns a 400.
812
-
For example: ``GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000``.
807
+
:param filter_queried_window_seconds: Only return metrics that have been queried or not queried in the specified window. Dependent on being sent with ``filter[queried]``.
:param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
815
-
Can only be combined with the filter[queried] filter.
809
+
:param filter_tags: Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards (for example, service:web*).
816
810
:type filter_tags: str, optional
817
-
:param filter_related_assets: (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
811
+
:param filter_related_assets: Only return metrics that are used in at least one dashboard, monitor, notebook, or SLO.
818
812
:type filter_related_assets: bool, optional
819
-
:param window_seconds: The number of seconds of look back (from now) to apply to a filter[tag] query.
820
-
Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).
813
+
:param window_seconds: Only return metrics that have been actively reporting in the specified window.
821
814
:type window_seconds: int, optional
822
-
:param page_size: Maximum number of results returned.
815
+
:param page_size: Maximum number of results per page. Use with ``page[cursor]`` for pagination.
823
816
:type page_size: int, optional
824
-
:param page_cursor: String to query the next page of results.
825
-
This key is provided with each valid response from the API in ``meta.pagination.next_cursor``.
826
-
Once the ``meta.pagination.next_cursor`` key is null, all pages have been retrieved.
817
+
:param page_cursor: Cursor for pagination. Use ``page[size]`` to opt-in to pagination and get the first page; for subsequent pages, use the value from ``meta.pagination.next_cursor`` in the response. Pagination is complete when ``next_cursor`` is null.
Provide a paginated version of :meth:`list_tag_configurations`, returning all items.
884
875
885
-
:param filter_configured: Filter custom metrics that have configured tags.
876
+
:param filter_configured: Only return custom metrics that have been configured with Metrics Without Limits.
886
877
:type filter_configured: bool, optional
887
-
:param filter_tags_configured: Filter tag configurations by configured tags.
878
+
:param filter_tags_configured: Only return metrics that have the given tag key(s) in their Metrics Without Limits configuration (included or excluded).
888
879
:type filter_tags_configured: str, optional
889
-
:param filter_metric_type: Filter metrics by metric type.
880
+
:param filter_metric_type: Only return metrics of the given metric type.
:param filter_include_percentiles: Filter distributions with additional percentile
892
-
aggregations enabled or disabled.
882
+
:param filter_include_percentiles: Only return distribution metrics that have percentile aggregations enabled (true) or disabled (false).
893
883
:type filter_include_percentiles: bool, optional
894
-
:param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
895
-
If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
884
+
:param filter_queried: Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with ``filter[queried][window][seconds]`` ; if omitted, a default window is used.
896
885
:type filter_queried: bool, optional
897
-
:param filter_queried_window_seconds: The number of seconds of look back (from now) used by the ``filter[queried]`` filter logic.
898
-
Must be sent with ``filter[queried]`` and is only applied when ``filter[queried]=true``.
899
-
If ``filter[queried]=false`` , this parameter is ignored and default queried-window behavior applies.
900
-
If ``filter[queried]`` is not provided, sending this parameter returns a 400.
901
-
For example: ``GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000``.
886
+
:param filter_queried_window_seconds: Only return metrics that have been queried or not queried in the specified window. Dependent on being sent with ``filter[queried]``.
:param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
904
-
Can only be combined with the filter[queried] filter.
888
+
:param filter_tags: Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards (for example, service:web*).
905
889
:type filter_tags: str, optional
906
-
:param filter_related_assets: (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
890
+
:param filter_related_assets: Only return metrics that are used in at least one dashboard, monitor, notebook, or SLO.
907
891
:type filter_related_assets: bool, optional
908
-
:param window_seconds: The number of seconds of look back (from now) to apply to a filter[tag] query.
909
-
Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).
892
+
:param window_seconds: Only return metrics that have been actively reporting in the specified window.
910
893
:type window_seconds: int, optional
911
-
:param page_size: Maximum number of results returned.
894
+
:param page_size: Maximum number of results per page. Use with ``page[cursor]`` for pagination.
912
895
:type page_size: int, optional
913
-
:param page_cursor: String to query the next page of results.
914
-
This key is provided with each valid response from the API in ``meta.pagination.next_cursor``.
915
-
Once the ``meta.pagination.next_cursor`` key is null, all pages have been retrieved.
896
+
:param page_cursor: Cursor for pagination. Use ``page[size]`` to opt-in to pagination and get the first page; for subsequent pages, use the value from ``meta.pagination.next_cursor`` in the response. Pagination is complete when ``next_cursor`` is null.
0 commit comments