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
1 change: 1 addition & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2080,6 +2080,7 @@ components:
- $ref: "#/components/schemas/FormulaAndFunctionMetricQueryDefinition"
- $ref: "#/components/schemas/FormulaAndFunctionEventQueryDefinition"
- $ref: "#/components/schemas/FormulaAndFunctionApmResourceStatsQueryDefinition"
- $ref: "#/components/schemas/FormulaAndFunctionApmMetricsQueryDefinition"
DistributionWidgetRequest:
description: Updated distribution widget.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@ def __init__(self, **kwargs):

:param stat: APM resource stat name.
:type stat: FormulaAndFunctionApmResourceStatName

:param operation_mode: Optional operation mode to aggregate across operation names.
:type operation_mode: str, optional

:param peer_tags: Tags to query for a specific downstream entity (peer.service, peer.db_instance, peer.s3, peer.s3.bucket, etc.).
:type peer_tags: [str], optional

:param query_filter: Additional filters for the query using metrics query syntax (e.g., env, primary_tag).
:type query_filter: str, optional

:param resource_hash: The hash of a specific resource to filter by.
:type resource_hash: str, optional

:param span_kind: Describes the relationship between the span, its parents, and its children in a trace.
:type span_kind: FormulaAndFunctionApmMetricsSpanKind, optional
"""
super().__init__(kwargs)

Expand All @@ -89,11 +104,15 @@ def _composed_schemas(_):
from datadog_api_client.v1.model.formula_and_function_apm_resource_stats_query_definition import (
FormulaAndFunctionApmResourceStatsQueryDefinition,
)
from datadog_api_client.v1.model.formula_and_function_apm_metrics_query_definition import (
FormulaAndFunctionApmMetricsQueryDefinition,
)

return {
"oneOf": [
FormulaAndFunctionMetricQueryDefinition,
FormulaAndFunctionEventQueryDefinition,
FormulaAndFunctionApmResourceStatsQueryDefinition,
FormulaAndFunctionApmMetricsQueryDefinition,
],
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def __init__(
FormulaAndFunctionMetricQueryDefinition,
FormulaAndFunctionEventQueryDefinition,
FormulaAndFunctionApmResourceStatsQueryDefinition,
FormulaAndFunctionApmMetricsQueryDefinition,
UnsetType,
] = unset,
request_type: Union[WidgetHistogramRequestType, UnsetType] = unset,
Expand Down