Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39721,19 +39721,24 @@ components:
- DISTRIBUTION
MetricTagConfigurationMetricTypes:
default: gauge
description: The metric's type.
description: The metric's type. Contact your Customer Success Manager (CSM)
for instructions on how to use the histogram types.
enum:
- gauge
- count
- rate
- distribution
- exponential_histogram
- explicit_histogram
example: count
type: string
x-enum-varnames:
- GAUGE
- COUNT
- RATE
- DISTRIBUTION
- EXPONENTIAL_HISTOGRAM
- EXPLICIT_HISTOGRAM
MetricTagConfigurationResponse:
description: Response object which includes a single metric's tag configuration.
properties:
Expand Down Expand Up @@ -102212,6 +102217,13 @@ paths:
get:
description: Get the list of all critical assets.
operationId: ListSecurityMonitoringCriticalAssets
parameters:
- description: Query string.
in: query
name: query
required: false
schema:
type: string
responses:
'200':
content:
Expand Down
15 changes: 14 additions & 1 deletion src/datadog_api_client/v2/api/security_monitoring_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,13 @@ def __init__(self, api_client=None):
"http_method": "GET",
"version": "v2",
},
params_map={},
params_map={
"query": {
"openapi_types": (str,),
"attribute": "query",
"location": "query",
},
},
headers_map={
"accept": ["application/json"],
},
Expand Down Expand Up @@ -4298,14 +4304,21 @@ def list_security_findings_with_pagination(

def list_security_monitoring_critical_assets(
self,
*,
query: Union[str, UnsetType] = unset,
) -> SecurityMonitoringCriticalAssetsResponse:
"""Get all critical assets.

Get the list of all critical assets.

:param query: Query string.
:type query: str, optional
:rtype: SecurityMonitoringCriticalAssetsResponse
"""
kwargs: Dict[str, Any] = {}
if query is not unset:
kwargs["query"] = query

return self._list_security_monitoring_critical_assets_endpoint.call_with_http_info(**kwargs)

def list_security_monitoring_histsignals(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
Only present when the ``metric_type`` is ``distribution``.
:type include_percentiles: bool, optional

:param metric_type: The metric's type.
:param metric_type: The metric's type. Contact your Customer Success Manager (CSM) for instructions on how to use the histogram types.
:type metric_type: MetricTagConfigurationMetricTypes, optional

:param modified_at: Timestamp when the tag configuration was last modified.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(
Defaults to false. Can only be applied to metrics that have a ``metric_type`` of ``distribution``.
:type include_percentiles: bool, optional

:param metric_type: The metric's type.
:param metric_type: The metric's type. Contact your Customer Success Manager (CSM) for instructions on how to use the histogram types.
:type metric_type: MetricTagConfigurationMetricTypes

:param tags: A list of tag keys that will be queryable for your metric.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

class MetricTagConfigurationMetricTypes(ModelSimple):
"""
The metric's type.
The metric's type. Contact your Customer Success Manager (CSM) for instructions on how to use the histogram types.

:param value: If omitted defaults to "gauge". Must be one of ["gauge", "count", "rate", "distribution"].
:param value: If omitted defaults to "gauge". Must be one of ["gauge", "count", "rate", "distribution", "exponential_histogram", "explicit_histogram"].
:type value: str
"""

Expand All @@ -25,11 +25,15 @@ class MetricTagConfigurationMetricTypes(ModelSimple):
"count",
"rate",
"distribution",
"exponential_histogram",
"explicit_histogram",
}
GAUGE: ClassVar["MetricTagConfigurationMetricTypes"]
COUNT: ClassVar["MetricTagConfigurationMetricTypes"]
RATE: ClassVar["MetricTagConfigurationMetricTypes"]
DISTRIBUTION: ClassVar["MetricTagConfigurationMetricTypes"]
EXPONENTIAL_HISTOGRAM: ClassVar["MetricTagConfigurationMetricTypes"]
EXPLICIT_HISTOGRAM: ClassVar["MetricTagConfigurationMetricTypes"]

@cached_property
def openapi_types(_):
Expand All @@ -42,3 +46,5 @@ def openapi_types(_):
MetricTagConfigurationMetricTypes.COUNT = MetricTagConfigurationMetricTypes("count")
MetricTagConfigurationMetricTypes.RATE = MetricTagConfigurationMetricTypes("rate")
MetricTagConfigurationMetricTypes.DISTRIBUTION = MetricTagConfigurationMetricTypes("distribution")
MetricTagConfigurationMetricTypes.EXPONENTIAL_HISTOGRAM = MetricTagConfigurationMetricTypes("exponential_histogram")
MetricTagConfigurationMetricTypes.EXPLICIT_HISTOGRAM = MetricTagConfigurationMetricTypes("explicit_histogram")
Loading