diff --git a/.apigentools-info b/.apigentools-info index 5246acfcbe7..10cbf96257f 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-02-16 07:53:07.089498", - "spec_repo_commit": "7d823ab8" + "regenerated": "2023-02-16 09:01:07.515779", + "spec_repo_commit": "4982e03d" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-02-16 07:53:07.106193", - "spec_repo_commit": "7d823ab8" + "regenerated": "2023-02-16 09:01:07.527198", + "spec_repo_commit": "4982e03d" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 7c93a2e9c51..1ef15770f74 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -3105,10 +3105,12 @@ components: description: A data source that is powered by the Events Platform. enum: - logs + - rum example: logs type: string x-enum-varnames: - LOGS + - RUM EventsGroupBy: description: A dimension on which to split a query's results. properties: @@ -7211,6 +7213,10 @@ components: - max - sum - last + - percentile + - mean + - l2norm + - area example: avg type: string x-enum-varnames: @@ -7219,6 +7225,10 @@ components: - MAX - SUM - LAST + - PERCENTILE + - MEAN + - L2NORM + - AREA MetricsAndMetricTagConfigurations: description: Object for a metrics and metric tag configurations. oneOf: @@ -17042,11 +17052,11 @@ paths: tags: - Metrics x-codegen-request-body-name: body - x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data - sources. Logs is + x-unstable: '**Note**: This endpoint is GA for the metrics, real user monitoring + (RUM) and cloud cost data sources. - in beta. We are gradually onboarding support for more sources. If you have - any + Support for logs is in beta. We are gradually onboarding support for more + sources. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/query/timeseries: @@ -17085,11 +17095,11 @@ paths: tags: - Metrics x-codegen-request-body-name: body - x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data - sources. Logs is + x-unstable: '**Note**: This endpoint is GA for the metrics, real user monitoring + (RUM) and cloud cost data sources. - in beta. We are gradually onboarding support for more sources. If you have - any + Support for logs is in beta. We are gradually onboarding support for more + sources. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/restriction_policy/{resource_id}: diff --git a/packages/datadog-api-client-v2/models/EventsDataSource.ts b/packages/datadog-api-client-v2/models/EventsDataSource.ts index 2d4bec022fa..517ad875466 100644 --- a/packages/datadog-api-client-v2/models/EventsDataSource.ts +++ b/packages/datadog-api-client-v2/models/EventsDataSource.ts @@ -10,5 +10,6 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; * A data source that is powered by the Events Platform. */ -export type EventsDataSource = typeof LOGS | UnparsedObject; +export type EventsDataSource = typeof LOGS | typeof RUM | UnparsedObject; export const LOGS = "logs"; +export const RUM = "rum"; diff --git a/packages/datadog-api-client-v2/models/MetricsAggregator.ts b/packages/datadog-api-client-v2/models/MetricsAggregator.ts index 9942aef8f71..4bbef48dd78 100644 --- a/packages/datadog-api-client-v2/models/MetricsAggregator.ts +++ b/packages/datadog-api-client-v2/models/MetricsAggregator.ts @@ -16,9 +16,17 @@ export type MetricsAggregator = | typeof MAX | typeof SUM | typeof LAST + | typeof PERCENTILE + | typeof MEAN + | typeof L2NORM + | typeof AREA | UnparsedObject; export const AVG = "avg"; export const MIN = "min"; export const MAX = "max"; export const SUM = "sum"; export const LAST = "last"; +export const PERCENTILE = "percentile"; +export const MEAN = "mean"; +export const L2NORM = "l2norm"; +export const AREA = "area"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 1478f910702..b32b17c7b8d 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -755,7 +755,7 @@ const enumsMap: { [key: string]: any[] } = { "max", "avg", ], - EventsDataSource: ["logs"], + EventsDataSource: ["logs", "rum"], EventsSort: ["timestamp", "-timestamp"], EventsSortType: ["alphabetical", "measure"], FastlyAccountType: ["fastly-accounts"], @@ -828,7 +828,17 @@ const enumsMap: { [key: string]: any[] } = { MetricTagConfigurationMetricTypes: ["gauge", "count", "rate", "distribution"], MetricTagConfigurationType: ["manage_tags"], MetricType: ["metrics"], - MetricsAggregator: ["avg", "min", "max", "sum", "last"], + MetricsAggregator: [ + "avg", + "min", + "max", + "sum", + "last", + "percentile", + "mean", + "l2norm", + "area", + ], MetricsDataSource: ["metrics", "cloud_cost"], MonitorConfigPolicyResourceType: ["monitor-config-policy"], MonitorConfigPolicyType: ["tag"],