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
4 changes: 4 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2875,6 +2875,8 @@ components:
type: string
group_by:
description: Array of fields to group results by.
example:
- "resource_name"
items:
description: Field to group results by.
example: "resource_name"
Expand Down Expand Up @@ -2912,6 +2914,8 @@ components:
- name
- service
- stat
- operation_name
- group_by
type: object
FormulaAndFunctionCloudCostDataSource:
description: Data source for Cloud Cost queries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, **kwargs):
:type env: str

:param operation_name: Name of operation on service.
:type operation_name: str, optional
:type operation_name: str

:param primary_tag_name: Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
:type primary_tag_name: str, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def __init__(
self_,
data_source: FormulaAndFunctionApmResourceStatsDataSource,
env: str,
group_by: List[str],
name: str,
operation_name: str,
service: str,
stat: FormulaAndFunctionApmResourceStatName,
cross_org_uuids: Union[List[str], UnsetType] = unset,
group_by: Union[List[str], UnsetType] = unset,
operation_name: Union[str, UnsetType] = unset,
primary_tag_name: Union[str, UnsetType] = unset,
primary_tag_value: Union[str, UnsetType] = unset,
resource_name: Union[str, UnsetType] = unset,
Expand All @@ -94,13 +94,13 @@ def __init__(
:type env: str

:param group_by: Array of fields to group results by.
:type group_by: [str], optional
:type group_by: [str]

:param name: Name of this query to use in formulas.
:type name: str

:param operation_name: Name of operation on service.
:type operation_name: str, optional
:type operation_name: str

:param primary_tag_name: Name of the second primary tag used within APM. Required when ``primary_tag_value`` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
:type primary_tag_name: str, optional
Expand All @@ -119,10 +119,6 @@ def __init__(
"""
if cross_org_uuids is not unset:
kwargs["cross_org_uuids"] = cross_org_uuids
if group_by is not unset:
kwargs["group_by"] = group_by
if operation_name is not unset:
kwargs["operation_name"] = operation_name
if primary_tag_name is not unset:
kwargs["primary_tag_name"] = primary_tag_name
if primary_tag_value is not unset:
Expand All @@ -133,6 +129,8 @@ def __init__(

self_.data_source = data_source
self_.env = env
self_.group_by = group_by
self_.name = name
self_.operation_name = operation_name
self_.service = service
self_.stat = stat
Loading