diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2dc5dce2c0..32c8cb53ce 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -4231,6 +4231,8 @@ components: description: >- A query for APM dependency statistics between services, such as call latency and error rates. properties: + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/ApmDependencyStatsDataSource" env: @@ -4289,6 +4291,8 @@ components: description: >- A query for APM trace metrics such as hits, errors, and latency percentiles, aggregated across services. properties: + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/ApmMetricsDataSource" group_by: @@ -4439,6 +4443,8 @@ components: description: >- A query for APM resource statistics such as latency, error rate, and hit count, grouped by resource name. properties: + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/ApmResourceStatsDataSource" env: @@ -15258,6 +15264,8 @@ components: properties: aggregator: $ref: "#/components/schemas/MetricsAggregator" + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/ContainerDataSource" is_normalized_cpu: @@ -15295,6 +15303,8 @@ components: ContainerTimeseriesQuery: description: A query for container-level metrics such as CPU and memory usage. properties: + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/ContainerDataSource" is_normalized_cpu: @@ -18122,6 +18132,14 @@ components: nullable: true type: string type: object + CrossOrgUuids: + description: >- + Organization UUIDs to query when using [cross-organization visibility](/account_management/org_settings/cross_org_visibility/). Limited to one organization UUID. + items: + description: An organization UUID. + type: string + maxItems: 1 + type: array CsmAgentData: description: Single Agent Data. properties: @@ -26178,6 +26196,8 @@ components: properties: compute: $ref: "#/components/schemas/EventsCompute" + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/EventsDataSource" group_by: @@ -26231,6 +26251,8 @@ components: properties: compute: $ref: "#/components/schemas/EventsCompute" + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/EventsDataSource" group_by: @@ -44129,6 +44151,8 @@ components: properties: aggregator: $ref: "#/components/schemas/MetricsAggregator" + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/MetricsDataSource" name: @@ -44146,6 +44170,8 @@ components: MetricsTimeseriesQuery: description: A query against Datadog custom metrics or Cloud Cost data sources. properties: + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/MetricsDataSource" name: @@ -55260,6 +55286,8 @@ components: properties: aggregator: $ref: "#/components/schemas/MetricsAggregator" + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/ProcessDataSource" is_normalized_cpu: @@ -55383,6 +55411,8 @@ components: ProcessTimeseriesQuery: description: A query for host-level process metrics such as CPU and memory usage. properties: + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/ProcessDataSource" is_normalized_cpu: @@ -69808,6 +69838,8 @@ components: description: Additional filters applied to the SLO query. example: "host:host_a,env:prod" type: string + cross_org_uuids: + $ref: "#/components/schemas/CrossOrgUuids" data_source: $ref: "#/components/schemas/SloDataSource" group_mode: diff --git a/src/datadog_api_client/v2/model/apm_dependency_stats_query.py b/src/datadog_api_client/v2/model/apm_dependency_stats_query.py index 7c95213ae8..a6e477fdf7 100644 --- a/src/datadog_api_client/v2/model/apm_dependency_stats_query.py +++ b/src/datadog_api_client/v2/model/apm_dependency_stats_query.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -19,12 +19,19 @@ class ApmDependencyStatsQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.apm_dependency_stats_data_source import ApmDependencyStatsDataSource from datadog_api_client.v2.model.apm_dependency_stat_name import ApmDependencyStatName return { + "cross_org_uuids": ([str],), "data_source": (ApmDependencyStatsDataSource,), "env": (str,), "is_upstream": (bool,), @@ -38,6 +45,7 @@ def openapi_types(_): } attribute_map = { + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "env": "env", "is_upstream": "is_upstream", @@ -59,6 +67,7 @@ def __init__( resource_name: str, service: str, stat: ApmDependencyStatName, + cross_org_uuids: Union[List[str], UnsetType] = unset, is_upstream: Union[bool, UnsetType] = unset, primary_tag_name: Union[str, UnsetType] = unset, primary_tag_value: Union[str, UnsetType] = unset, @@ -67,6 +76,9 @@ def __init__( """ A query for APM dependency statistics between services, such as call latency and error rates. + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for APM dependency statistics queries. :type data_source: ApmDependencyStatsDataSource @@ -97,6 +109,8 @@ def __init__( :param stat: The APM dependency statistic to query. :type stat: ApmDependencyStatName """ + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if is_upstream is not unset: kwargs["is_upstream"] = is_upstream if primary_tag_name is not unset: diff --git a/src/datadog_api_client/v2/model/apm_metrics_query.py b/src/datadog_api_client/v2/model/apm_metrics_query.py index 4a35566764..38acb89aa8 100644 --- a/src/datadog_api_client/v2/model/apm_metrics_query.py +++ b/src/datadog_api_client/v2/model/apm_metrics_query.py @@ -20,6 +20,12 @@ class ApmMetricsQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.apm_metrics_data_source import ApmMetricsDataSource @@ -27,6 +33,7 @@ def openapi_types(_): from datadog_api_client.v2.model.apm_metrics_stat import ApmMetricsStat return { + "cross_org_uuids": ([str],), "data_source": (ApmMetricsDataSource,), "group_by": ([str],), "name": (str,), @@ -42,6 +49,7 @@ def openapi_types(_): } attribute_map = { + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "group_by": "group_by", "name": "name", @@ -61,6 +69,7 @@ def __init__( data_source: ApmMetricsDataSource, name: str, stat: ApmMetricsStat, + cross_org_uuids: Union[List[str], UnsetType] = unset, group_by: Union[List[str], UnsetType] = unset, operation_mode: Union[str, UnsetType] = unset, operation_name: Union[str, UnsetType] = unset, @@ -75,6 +84,9 @@ def __init__( """ A query for APM trace metrics such as hits, errors, and latency percentiles, aggregated across services. + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for APM metrics queries. :type data_source: ApmMetricsDataSource @@ -111,6 +123,8 @@ def __init__( :param stat: The APM metric statistic to query. :type stat: ApmMetricsStat """ + 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_mode is not unset: diff --git a/src/datadog_api_client/v2/model/apm_resource_stats_query.py b/src/datadog_api_client/v2/model/apm_resource_stats_query.py index 1b0b18f8e0..3ccac303ab 100644 --- a/src/datadog_api_client/v2/model/apm_resource_stats_query.py +++ b/src/datadog_api_client/v2/model/apm_resource_stats_query.py @@ -19,12 +19,19 @@ class ApmResourceStatsQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.apm_resource_stats_data_source import ApmResourceStatsDataSource from datadog_api_client.v2.model.apm_resource_stat_name import ApmResourceStatName return { + "cross_org_uuids": ([str],), "data_source": (ApmResourceStatsDataSource,), "env": (str,), "group_by": ([str],), @@ -38,6 +45,7 @@ def openapi_types(_): } attribute_map = { + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "env": "env", "group_by": "group_by", @@ -57,6 +65,7 @@ def __init__( name: str, service: str, stat: ApmResourceStatName, + 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, @@ -67,6 +76,9 @@ def __init__( """ A query for APM resource statistics such as latency, error rate, and hit count, grouped by resource name. + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for APM resource statistics queries. :type data_source: ApmResourceStatsDataSource @@ -97,6 +109,8 @@ def __init__( :param stat: The APM resource statistic to query. :type stat: ApmResourceStatName """ + 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: diff --git a/src/datadog_api_client/v2/model/container_scalar_query.py b/src/datadog_api_client/v2/model/container_scalar_query.py index 268939a6d3..9d979976e2 100644 --- a/src/datadog_api_client/v2/model/container_scalar_query.py +++ b/src/datadog_api_client/v2/model/container_scalar_query.py @@ -20,6 +20,12 @@ class ContainerScalarQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.metrics_aggregator import MetricsAggregator @@ -28,6 +34,7 @@ def openapi_types(_): return { "aggregator": (MetricsAggregator,), + "cross_org_uuids": ([str],), "data_source": (ContainerDataSource,), "is_normalized_cpu": (bool,), "limit": (int,), @@ -40,6 +47,7 @@ def openapi_types(_): attribute_map = { "aggregator": "aggregator", + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "is_normalized_cpu": "is_normalized_cpu", "limit": "limit", @@ -56,6 +64,7 @@ def __init__( metric: str, name: str, aggregator: Union[MetricsAggregator, UnsetType] = unset, + cross_org_uuids: Union[List[str], UnsetType] = unset, is_normalized_cpu: Union[bool, UnsetType] = unset, limit: Union[int, UnsetType] = unset, sort: Union[QuerySortOrder, UnsetType] = unset, @@ -69,6 +78,9 @@ def __init__( :param aggregator: The type of aggregation that can be performed on metrics-based queries. :type aggregator: MetricsAggregator, optional + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for container-level infrastructure metrics. :type data_source: ContainerDataSource @@ -95,6 +107,8 @@ def __init__( """ if aggregator is not unset: kwargs["aggregator"] = aggregator + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if is_normalized_cpu is not unset: kwargs["is_normalized_cpu"] = is_normalized_cpu if limit is not unset: diff --git a/src/datadog_api_client/v2/model/container_timeseries_query.py b/src/datadog_api_client/v2/model/container_timeseries_query.py index 810e38e967..ebbdf52dc9 100644 --- a/src/datadog_api_client/v2/model/container_timeseries_query.py +++ b/src/datadog_api_client/v2/model/container_timeseries_query.py @@ -19,12 +19,19 @@ class ContainerTimeseriesQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.container_data_source import ContainerDataSource from datadog_api_client.v2.model.query_sort_order import QuerySortOrder return { + "cross_org_uuids": ([str],), "data_source": (ContainerDataSource,), "is_normalized_cpu": (bool,), "limit": (int,), @@ -36,6 +43,7 @@ def openapi_types(_): } attribute_map = { + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "is_normalized_cpu": "is_normalized_cpu", "limit": "limit", @@ -51,6 +59,7 @@ def __init__( data_source: ContainerDataSource, metric: str, name: str, + cross_org_uuids: Union[List[str], UnsetType] = unset, is_normalized_cpu: Union[bool, UnsetType] = unset, limit: Union[int, UnsetType] = unset, sort: Union[QuerySortOrder, UnsetType] = unset, @@ -61,6 +70,9 @@ def __init__( """ A query for container-level metrics such as CPU and memory usage. + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for container-level infrastructure metrics. :type data_source: ContainerDataSource @@ -85,6 +97,8 @@ def __init__( :param text_filter: A full-text search filter to match container names. :type text_filter: str, optional """ + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if is_normalized_cpu is not unset: kwargs["is_normalized_cpu"] = is_normalized_cpu if limit is not unset: diff --git a/src/datadog_api_client/v2/model/events_scalar_query.py b/src/datadog_api_client/v2/model/events_scalar_query.py index 4da5e8e590..cc88c207b3 100644 --- a/src/datadog_api_client/v2/model/events_scalar_query.py +++ b/src/datadog_api_client/v2/model/events_scalar_query.py @@ -21,6 +21,12 @@ class EventsScalarQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.events_compute import EventsCompute @@ -30,6 +36,7 @@ def openapi_types(_): return { "compute": (EventsCompute,), + "cross_org_uuids": ([str],), "data_source": (EventsDataSource,), "group_by": (EventsQueryGroupBys,), "indexes": ([str],), @@ -39,6 +46,7 @@ def openapi_types(_): attribute_map = { "compute": "compute", + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "group_by": "group_by", "indexes": "indexes", @@ -50,6 +58,7 @@ def __init__( self_, compute: EventsCompute, data_source: EventsDataSource, + cross_org_uuids: Union[List[str], UnsetType] = unset, group_by: Union[EventsQueryGroupBys, UnsetType] = unset, indexes: Union[List[str], UnsetType] = unset, name: Union[str, UnsetType] = unset, @@ -62,6 +71,9 @@ def __init__( :param compute: The instructions for what to compute for this query. :type compute: EventsCompute + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source that is powered by the Events Platform. :type data_source: EventsDataSource @@ -77,6 +89,8 @@ def __init__( :param search: Configuration of the search/filter for an events query. :type search: EventsSearch, optional """ + 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 indexes is not unset: diff --git a/src/datadog_api_client/v2/model/events_timeseries_query.py b/src/datadog_api_client/v2/model/events_timeseries_query.py index 10b37ddd51..fc2e188537 100644 --- a/src/datadog_api_client/v2/model/events_timeseries_query.py +++ b/src/datadog_api_client/v2/model/events_timeseries_query.py @@ -21,6 +21,12 @@ class EventsTimeseriesQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.events_compute import EventsCompute @@ -30,6 +36,7 @@ def openapi_types(_): return { "compute": (EventsCompute,), + "cross_org_uuids": ([str],), "data_source": (EventsDataSource,), "group_by": (EventsQueryGroupBys,), "indexes": ([str],), @@ -39,6 +46,7 @@ def openapi_types(_): attribute_map = { "compute": "compute", + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "group_by": "group_by", "indexes": "indexes", @@ -50,6 +58,7 @@ def __init__( self_, compute: EventsCompute, data_source: EventsDataSource, + cross_org_uuids: Union[List[str], UnsetType] = unset, group_by: Union[EventsQueryGroupBys, UnsetType] = unset, indexes: Union[List[str], UnsetType] = unset, name: Union[str, UnsetType] = unset, @@ -62,6 +71,9 @@ def __init__( :param compute: The instructions for what to compute for this query. :type compute: EventsCompute + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source that is powered by the Events Platform. :type data_source: EventsDataSource @@ -77,6 +89,8 @@ def __init__( :param search: Configuration of the search/filter for an events query. :type search: EventsSearch, optional """ + 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 indexes is not unset: diff --git a/src/datadog_api_client/v2/model/metrics_scalar_query.py b/src/datadog_api_client/v2/model/metrics_scalar_query.py index d7cbbf032a..91ebbd9d71 100644 --- a/src/datadog_api_client/v2/model/metrics_scalar_query.py +++ b/src/datadog_api_client/v2/model/metrics_scalar_query.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -19,6 +19,12 @@ class MetricsScalarQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.metrics_aggregator import MetricsAggregator @@ -26,6 +32,7 @@ def openapi_types(_): return { "aggregator": (MetricsAggregator,), + "cross_org_uuids": ([str],), "data_source": (MetricsDataSource,), "name": (str,), "query": (str,), @@ -33,6 +40,7 @@ def openapi_types(_): attribute_map = { "aggregator": "aggregator", + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "name": "name", "query": "query", @@ -43,6 +51,7 @@ def __init__( aggregator: MetricsAggregator, data_source: MetricsDataSource, query: str, + cross_org_uuids: Union[List[str], UnsetType] = unset, name: Union[str, UnsetType] = unset, **kwargs, ): @@ -52,6 +61,9 @@ def __init__( :param aggregator: The type of aggregation that can be performed on metrics-based queries. :type aggregator: MetricsAggregator + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source that is powered by the Metrics platform. :type data_source: MetricsDataSource @@ -61,6 +73,8 @@ def __init__( :param query: A classic metrics query string. :type query: str """ + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if name is not unset: kwargs["name"] = name super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/metrics_timeseries_query.py b/src/datadog_api_client/v2/model/metrics_timeseries_query.py index 5b306c8229..81d0598dfa 100644 --- a/src/datadog_api_client/v2/model/metrics_timeseries_query.py +++ b/src/datadog_api_client/v2/model/metrics_timeseries_query.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -18,26 +18,44 @@ class MetricsTimeseriesQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.metrics_data_source import MetricsDataSource return { + "cross_org_uuids": ([str],), "data_source": (MetricsDataSource,), "name": (str,), "query": (str,), } attribute_map = { + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "name": "name", "query": "query", } - def __init__(self_, data_source: MetricsDataSource, query: str, name: Union[str, UnsetType] = unset, **kwargs): + def __init__( + self_, + data_source: MetricsDataSource, + query: str, + cross_org_uuids: Union[List[str], UnsetType] = unset, + name: Union[str, UnsetType] = unset, + **kwargs, + ): """ A query against Datadog custom metrics or Cloud Cost data sources. + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source that is powered by the Metrics platform. :type data_source: MetricsDataSource @@ -47,6 +65,8 @@ def __init__(self_, data_source: MetricsDataSource, query: str, name: Union[str, :param query: A classic metrics query string. :type query: str """ + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if name is not unset: kwargs["name"] = name super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/process_scalar_query.py b/src/datadog_api_client/v2/model/process_scalar_query.py index 3fd0cc7bcc..c4fb5abcc8 100644 --- a/src/datadog_api_client/v2/model/process_scalar_query.py +++ b/src/datadog_api_client/v2/model/process_scalar_query.py @@ -20,6 +20,12 @@ class ProcessScalarQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.metrics_aggregator import MetricsAggregator @@ -28,6 +34,7 @@ def openapi_types(_): return { "aggregator": (MetricsAggregator,), + "cross_org_uuids": ([str],), "data_source": (ProcessDataSource,), "is_normalized_cpu": (bool,), "limit": (int,), @@ -40,6 +47,7 @@ def openapi_types(_): attribute_map = { "aggregator": "aggregator", + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "is_normalized_cpu": "is_normalized_cpu", "limit": "limit", @@ -56,6 +64,7 @@ def __init__( metric: str, name: str, aggregator: Union[MetricsAggregator, UnsetType] = unset, + cross_org_uuids: Union[List[str], UnsetType] = unset, is_normalized_cpu: Union[bool, UnsetType] = unset, limit: Union[int, UnsetType] = unset, sort: Union[QuerySortOrder, UnsetType] = unset, @@ -69,6 +78,9 @@ def __init__( :param aggregator: The type of aggregation that can be performed on metrics-based queries. :type aggregator: MetricsAggregator, optional + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for process-level infrastructure metrics. :type data_source: ProcessDataSource @@ -95,6 +107,8 @@ def __init__( """ if aggregator is not unset: kwargs["aggregator"] = aggregator + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if is_normalized_cpu is not unset: kwargs["is_normalized_cpu"] = is_normalized_cpu if limit is not unset: diff --git a/src/datadog_api_client/v2/model/process_timeseries_query.py b/src/datadog_api_client/v2/model/process_timeseries_query.py index 1e41d78830..4d57d9a2a4 100644 --- a/src/datadog_api_client/v2/model/process_timeseries_query.py +++ b/src/datadog_api_client/v2/model/process_timeseries_query.py @@ -19,12 +19,19 @@ class ProcessTimeseriesQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.process_data_source import ProcessDataSource from datadog_api_client.v2.model.query_sort_order import QuerySortOrder return { + "cross_org_uuids": ([str],), "data_source": (ProcessDataSource,), "is_normalized_cpu": (bool,), "limit": (int,), @@ -36,6 +43,7 @@ def openapi_types(_): } attribute_map = { + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "is_normalized_cpu": "is_normalized_cpu", "limit": "limit", @@ -51,6 +59,7 @@ def __init__( data_source: ProcessDataSource, metric: str, name: str, + cross_org_uuids: Union[List[str], UnsetType] = unset, is_normalized_cpu: Union[bool, UnsetType] = unset, limit: Union[int, UnsetType] = unset, sort: Union[QuerySortOrder, UnsetType] = unset, @@ -61,6 +70,9 @@ def __init__( """ A query for host-level process metrics such as CPU and memory usage. + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for process-level infrastructure metrics. :type data_source: ProcessDataSource @@ -85,6 +97,8 @@ def __init__( :param text_filter: A full-text search filter to match process names or commands. :type text_filter: str, optional """ + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if is_normalized_cpu is not unset: kwargs["is_normalized_cpu"] = is_normalized_cpu if limit is not unset: diff --git a/src/datadog_api_client/v2/model/scalar_query.py b/src/datadog_api_client/v2/model/scalar_query.py index 8d9439acf2..a3258e7219 100644 --- a/src/datadog_api_client/v2/model/scalar_query.py +++ b/src/datadog_api_client/v2/model/scalar_query.py @@ -18,6 +18,9 @@ def __init__(self, **kwargs): :param aggregator: The type of aggregation that can be performed on metrics-based queries. :type aggregator: MetricsAggregator + :param cross_org_uuids: Organization UUIDs to query when using [cross-organization visibility](/account_management/org_settings/cross_org_visibility/). Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source that is powered by the Metrics platform. :type data_source: MetricsDataSource diff --git a/src/datadog_api_client/v2/model/slo_query.py b/src/datadog_api_client/v2/model/slo_query.py index 8ed28cdf1f..8fe0bdea69 100644 --- a/src/datadog_api_client/v2/model/slo_query.py +++ b/src/datadog_api_client/v2/model/slo_query.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -21,6 +21,12 @@ class SloQuery(ModelNormal): + validations = { + "cross_org_uuids": { + "max_items": 1, + }, + } + @cached_property def openapi_types(_): from datadog_api_client.v2.model.slo_data_source import SloDataSource @@ -30,6 +36,7 @@ def openapi_types(_): return { "additional_query_filters": (str,), + "cross_org_uuids": ([str],), "data_source": (SloDataSource,), "group_mode": (SlosGroupMode,), "measure": (SlosMeasure,), @@ -40,6 +47,7 @@ def openapi_types(_): attribute_map = { "additional_query_filters": "additional_query_filters", + "cross_org_uuids": "cross_org_uuids", "data_source": "data_source", "group_mode": "group_mode", "measure": "measure", @@ -54,6 +62,7 @@ def __init__( measure: SlosMeasure, slo_id: str, additional_query_filters: Union[str, UnsetType] = unset, + cross_org_uuids: Union[List[str], UnsetType] = unset, group_mode: Union[SlosGroupMode, UnsetType] = unset, name: Union[str, UnsetType] = unset, slo_query_type: Union[SlosQueryType, UnsetType] = unset, @@ -65,6 +74,9 @@ def __init__( :param additional_query_filters: Additional filters applied to the SLO query. :type additional_query_filters: str, optional + :param cross_org_uuids: Organization UUIDs to query when using `cross-organization visibility `_. Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source for SLO queries. :type data_source: SloDataSource @@ -85,6 +97,8 @@ def __init__( """ if additional_query_filters is not unset: kwargs["additional_query_filters"] = additional_query_filters + if cross_org_uuids is not unset: + kwargs["cross_org_uuids"] = cross_org_uuids if group_mode is not unset: kwargs["group_mode"] = group_mode if name is not unset: diff --git a/src/datadog_api_client/v2/model/timeseries_query.py b/src/datadog_api_client/v2/model/timeseries_query.py index d95f319600..9c985388a7 100644 --- a/src/datadog_api_client/v2/model/timeseries_query.py +++ b/src/datadog_api_client/v2/model/timeseries_query.py @@ -15,6 +15,9 @@ def __init__(self, **kwargs): """ An individual timeseries query to one of the basic Datadog data sources. + :param cross_org_uuids: Organization UUIDs to query when using [cross-organization visibility](/account_management/org_settings/cross_org_visibility/). Limited to one organization UUID. + :type cross_org_uuids: [str], optional + :param data_source: A data source that is powered by the Metrics platform. :type data_source: MetricsDataSource