From 756b513e1893e3e75347d53d09548c8924a980f1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 22 Nov 2022 11:04:16 +0000 Subject: [PATCH] Regenerate client from commit 7a83b48f of spec repo --- .apigentools-info | 8 +- .generator/schemas/v1/openapi.yaml | 77 +-------- .generator/schemas/v2/openapi.yaml | 111 +++++++++--- .../frozen.json | 2 +- .../recording.har | 34 ++-- .../frozen.json | 1 - .../recording.har | 163 ------------------ .../frozen.json | 2 +- .../recording.har | 12 +- examples/v2/logs-metrics/CreateLogsMetric.ts | 4 +- .../UpdateLogsMetric_1901534424.ts | 35 ---- .../usage-metering/GetHistoricalCostByOrg.ts | 2 +- features/v2/given.json | 12 -- features/v2/logs_metrics.feature | 20 +-- features/v2/organizations.feature | 4 +- features/v2/usage_metering.feature | 2 +- packages/datadog-api-client-v1/index.ts | 1 - .../models/LogsProcessor.ts | 2 - .../models/ObjectSerializer.ts | 3 - .../ReferenceTableLogsLookupProcessor.ts | 92 ---------- .../models/UsageHostHour.ts | 9 - .../models/UsageSummaryDate.ts | 9 - .../models/UsageSummaryDateOrg.ts | 9 - .../models/UsageSummaryResponse.ts | 9 - packages/datadog-api-client-v2/index.ts | 4 +- .../models/LogsMetricCompute.ts | 9 - .../models/LogsMetricResponseCompute.ts | 9 - .../models/LogsMetricUpdateAttributes.ts | 9 - .../models/LogsMetricUpdateCompute.ts | 42 ----- .../MetricTagConfigurationAttributes.ts | 2 +- .../models/ObjectSerializer.ts | 7 +- .../models/RUMApplicationAttributes.ts | 19 +- .../models/RUMApplicationList.ts | 53 ++++++ .../models/RUMApplicationListAttributes.ts | 124 +++++++++++++ .../models/RUMApplicationListType.ts | 8 + .../models/RUMApplicationsResponse.ts | 6 +- 36 files changed, 345 insertions(+), 570 deletions(-) delete mode 100644 cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/frozen.json delete mode 100644 cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/recording.har delete mode 100644 examples/v2/logs-metrics/UpdateLogsMetric_1901534424.ts delete mode 100644 packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts delete mode 100644 packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts create mode 100644 packages/datadog-api-client-v2/models/RUMApplicationList.ts create mode 100644 packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/RUMApplicationListType.ts diff --git a/.apigentools-info b/.apigentools-info index c63a80fc6d00..0b256f4d1994 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2022-11-21 22:06:53.798849", - "spec_repo_commit": "19da6428" + "regenerated": "2022-11-22 11:03:10.572998", + "spec_repo_commit": "7a83b48f" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2022-11-21 22:06:53.813550", - "spec_repo_commit": "19da6428" + "regenerated": "2022-11-22 11:03:10.584497", + "spec_repo_commit": "7a83b48f" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index a315fd124ec1..5bd1653db3a8 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -5012,9 +5012,7 @@ components: associated target attribute values, formatted as `["source_key1,target_value1", "source_key2,target_value2"]`' - example: - - source_key1,target_value1 - - source_key2,target_value2 + example: [] items: description: Mapping between a source and a value, it should follow the format `","`. @@ -5025,14 +5023,14 @@ components: type: string source: description: Source attribute used to perform the lookup. - example: service_id + example: '' type: string target: description: 'Name of the attribute that contains the corresponding value in the mapping list or the `default_lookup` if not found in the mapping list.' - example: service + example: '' type: string type: $ref: '#/components/schemas/LogsLookupProcessorType' @@ -5219,7 +5217,6 @@ components: - $ref: '#/components/schemas/LogsPipelineProcessor' - $ref: '#/components/schemas/LogsGeoIPParser' - $ref: '#/components/schemas/LogsLookupProcessor' - - $ref: '#/components/schemas/ReferenceTableLogsLookupProcessor' - $ref: '#/components/schemas/LogsTraceRemapper' type: object LogsQueryCompute: @@ -8518,51 +8515,6 @@ components: security_query: $ref: '#/components/schemas/LogQueryDefinition' type: object - ReferenceTableLogsLookupProcessor: - description: '**Note**: Reference Tables are in public beta. - - Use the Lookup Processor to define a mapping between a log attribute - - and a human readable value saved in a Reference Table. - - For example, you can use the Lookup Processor to map an internal service ID - - into a human readable service name. Alternatively, you could also use it to - check - - if the MAC address that just attempted to connect to the production - - environment belongs to your list of stolen machines.' - properties: - is_enabled: - default: false - description: Whether or not the processor is enabled. - type: boolean - lookup_enrichment_table: - description: Name of the Reference Table for the source attribute and their - associated target attribute values. - example: service_id_to_service_name_table - type: string - name: - description: Name of the processor. - type: string - source: - description: Source attribute used to perform the lookup. - example: service_id - type: string - target: - description: Name of the attribute that contains the corresponding value - in the mapping list. - example: service - type: string - type: - $ref: '#/components/schemas/LogsLookupProcessorType' - required: - - source - - target - - lookup_enrichment_table - - type - type: object ResponseMetaAttributes: description: Object describing meta attributes of response. properties: @@ -15339,11 +15291,6 @@ components: (and were NOT running the Datadog Agent).' format: int64 type: integer - opentelemetry_apm_host_count: - description: Contains the total number of hosts using APM reported by Datadog - exporter for the OpenTelemetry Collector. - format: int64 - type: integer opentelemetry_host_count: description: Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. @@ -16317,12 +16264,6 @@ components: date for all organizations. format: int64 type: integer - opentelemetry_apm_host_top99p: - description: Shows the 99th percentile of APM hosts reported by the Datadog - exporter for the OpenTelemetry Collector over all hours in the current - date for all organizations. - format: int64 - type: integer opentelemetry_host_top99p: description: Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current @@ -16685,12 +16626,6 @@ components: date for the given org. format: int64 type: integer - opentelemetry_apm_host_top99p: - description: Shows the 99th percentile of APM hosts reported by the Datadog - exporter for the OpenTelemetry Collector over all hours in the current - date for the given org. - format: int64 - type: integer opentelemetry_host_top99p: description: Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current @@ -17080,12 +17015,6 @@ components: months for all organizations. format: int64 type: integer - opentelemetry_apm_host_top99p_sum: - description: Shows the 99th percentile of APM hosts reported by the Datadog - exporter for the OpenTelemetry Collector over all hours in the current - months for all organizations. - format: int64 - type: integer opentelemetry_host_top99p_sum: description: Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f68b1159f669..de96e349573e 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -5012,8 +5012,6 @@ components: properties: aggregation_type: $ref: '#/components/schemas/LogsMetricComputeAggregationType' - include_percentiles: - $ref: '#/components/schemas/LogsMetricComputeIncludePercentiles' path: description: The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). @@ -5032,13 +5030,6 @@ components: x-enum-varnames: - COUNT - DISTRIBUTION - LogsMetricComputeIncludePercentiles: - description: 'Toggle to include or exclude percentile aggregations for distribution - metrics. - - Only present when the `aggregation_type` is `distribution`.' - example: true - type: boolean LogsMetricCreateAttributes: description: The object describing the Datadog log-based metric to create. properties: @@ -5130,8 +5121,6 @@ components: properties: aggregation_type: $ref: '#/components/schemas/LogsMetricResponseComputeAggregationType' - include_percentiles: - $ref: '#/components/schemas/LogsMetricComputeIncludePercentiles' path: description: The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). @@ -5193,8 +5182,6 @@ components: LogsMetricUpdateAttributes: description: The log-based metric properties that will be updated. properties: - compute: - $ref: '#/components/schemas/LogsMetricUpdateCompute' filter: $ref: '#/components/schemas/LogsMetricFilter' group_by: @@ -5203,12 +5190,6 @@ components: $ref: '#/components/schemas/LogsMetricGroupBy' type: array type: object - LogsMetricUpdateCompute: - description: The compute rule to compute the log-based metric. - properties: - include_percentiles: - $ref: '#/components/schemas/LogsMetricComputeIncludePercentiles' - type: object LogsMetricUpdateData: description: The new log-based metric properties. properties: @@ -5997,7 +5978,7 @@ components: format: date-time type: string include_percentiles: - description: 'Toggle to include or exclude percentile aggregations for distribution + description: 'Toggle to turn on/off percentile aggregations for distribution metrics. Only present when the `metric_type` is `distribution`.' @@ -6913,6 +6894,10 @@ components: description: ID of the RUM application. example: abcd1234-0000-0000-abcd-1234abcd5678 type: string + client_token: + description: Client token of the RUM application. + example: abcd1234efgh5678ijkl90abcd1234efgh0 + type: string created_at: description: Timestamp in ms of the creation date. example: 1659479836169 @@ -6923,9 +6908,12 @@ components: example: john.doe type: string hash: - description: Client token of the RUM application. - example: abcd1234efgh5678ijkl90abcd1234efgh0 + description: Hash of the RUM application. Optional. type: string + is_active: + description: Indicates if the RUM application is active. + example: true + type: boolean name: description: Name of the RUM application. example: my_rum_application @@ -6952,6 +6940,7 @@ components: type: string required: - application_id + - client_token - created_at - created_by_handle - name @@ -7003,6 +6992,82 @@ components: type: string x-enum-varnames: - RUM_APPLICATION_CREATE + RUMApplicationList: + description: RUM application list. + properties: + attributes: + $ref: '#/components/schemas/RUMApplicationListAttributes' + type: + $ref: '#/components/schemas/RUMApplicationListType' + required: + - attributes + - type + type: object + RUMApplicationListAttributes: + description: RUM application list attributes. + properties: + application_id: + description: ID of the RUM application. + example: abcd1234-0000-0000-abcd-1234abcd5678 + type: string + created_at: + description: Timestamp in ms of the creation date. + example: 1659479836169 + format: int64 + type: integer + created_by_handle: + description: Handle of the creator user. + example: john.doe + type: string + hash: + description: Hash of the RUM application. Optional. + type: string + is_active: + description: Indicates if the RUM application is active. + example: true + type: boolean + name: + description: Name of the RUM application. + example: my_rum_application + type: string + org_id: + description: Org ID of the RUM application. + example: 999 + format: int32 + maximum: 2147483647 + type: integer + type: + description: Type of the RUM application. + example: browser|ios|android|react-native|flutter + type: string + updated_at: + description: Timestamp in ms of the last update date. + example: 1659479836169 + format: int64 + type: integer + updated_by_handle: + description: Handle of the updater user. + example: jane.doe + type: string + required: + - application_id + - created_at + - created_by_handle + - name + - org_id + - type + - updated_at + - updated_by_handle + type: object + RUMApplicationListType: + default: rum_application + description: RUM application list type. + enum: + - rum_application + example: rum_application + type: string + x-enum-varnames: + - RUM_APPLICATION RUMApplicationResponse: description: RUM application response. properties: @@ -7069,7 +7134,7 @@ components: data: description: RUM applications array response. items: - $ref: '#/components/schemas/RUMApplication' + $ref: '#/components/schemas/RUMApplicationList' type: array type: object RUMBucketResponse: diff --git a/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/frozen.json b/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/frozen.json index f643e6cae1fd..cf2b67460a7a 100644 --- a/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/frozen.json +++ b/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/frozen.json @@ -1 +1 @@ -"2022-11-21T15:36:05.545Z" +"2022-05-12T09:52:22.599Z" diff --git a/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/recording.har b/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/recording.har index dcfaf087671b..ea341c3805af 100644 --- a/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/recording.har +++ b/cassettes/v2/Logs-Metrics_3185148095/Create-a-log-based-metric-returns-OK-response_2853166544/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "f98bd5930d6046a011a332616cfb250b", + "_id": "7a67534694e94694283c0d44987ec332", "_order": 0, "cache": {}, "request": { - "bodySize": 208, + "bodySize": 155, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"}},\"id\":\"Test-Create_a_log_based_metric_returns_OK_response-1669044965\",\"type\":\"logs_metrics\"}}" + "text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"count\"}},\"id\":\"Test-Create_a_log_based_metric_returns_OK_response-1652349142\",\"type\":\"logs_metrics\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/logs/config/metrics" }, "response": { - "bodySize": 246, + "bodySize": 192, "content": { "mimeType": "application/json", - "size": 246, - "text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"*\"},\"group_by\":[],\"compute\":{\"path\":\"@duration\",\"include_percentiles\":true,\"aggregation_type\":\"distribution\"}},\"type\":\"logs_metrics\",\"id\":\"Test_Create_a_log_based_metric_returns_OK_response_1669044965\"}}\n" + "size": 192, + "text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"*\"},\"group_by\":[],\"compute\":{\"aggregation_type\":\"count\"}},\"type\":\"logs_metrics\",\"id\":\"Test_Create_a_log_based_metric_returns_OK_response_1652349142\"}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 649, + "headersSize": 692, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-11-21T15:36:05.555Z", - "time": 272 + "startedDateTime": "2022-05-12T09:52:22.602Z", + "time": 613 }, { - "_id": "12c1ae70ac1d021e801d57f41265ad38", + "_id": "bba84067fccc33a39ff75f3414ad5e36", "_order": 0, "cache": {}, "request": { @@ -78,14 +78,14 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Create_a_log_based_metric_returns_OK_response_1669044965" + "url": "https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Create_a_log_based_metric_returns_OK_response_1652349142" }, "response": { - "bodySize": 3, + "bodySize": 2, "content": { "mimeType": "application/json", - "size": 3, - "text": "{}\n" + "size": 2, + "text": "{}" }, "cookies": [], "headers": [ @@ -94,14 +94,14 @@ "value": "application/json" } ], - "headersSize": 624, + "headersSize": 667, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-11-21T15:36:05.838Z", - "time": 141 + "startedDateTime": "2022-05-12T09:52:23.218Z", + "time": 538 } ], "pages": [], diff --git a/cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/frozen.json b/cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/frozen.json deleted file mode 100644 index 225b698a39a0..000000000000 --- a/cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/frozen.json +++ /dev/null @@ -1 +0,0 @@ -"2022-11-21T19:49:25.214Z" diff --git a/cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/recording.har b/cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/recording.har deleted file mode 100644 index e2c01c2d630a..000000000000 --- a/cassettes/v2/Logs-Metrics_3185148095/Update-a-log-based-metric-with-include_percentiles-field-returns-OK-response_1255547678/recording.har +++ /dev/null @@ -1,163 +0,0 @@ -{ - "log": { - "_recordingName": "Logs Metrics/Update a log-based metric with include_percentiles field returns \"OK\" response", - "creator": { - "comment": "persister:fs", - "name": "Polly.JS", - "version": "6.0.5" - }, - "entries": [ - { - "_id": "276c5d36e939a5e00e1d72bbff56f3c7", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 360, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "content-type", - "value": "application/json" - } - ], - "headersSize": 570, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"},\"filter\":{\"query\":\"source:Test-Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response-1669060165\"}},\"id\":\"Test-Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response-1669060165\",\"type\":\"logs_metrics\"}}" - }, - "queryString": [], - "url": "https://api.datadoghq.com/api/v2/logs/config/metrics" - }, - "response": { - "bodySize": 375, - "content": { - "mimeType": "application/json", - "size": 375, - "text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"source:Test-Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response-1669060165\"},\"group_by\":[],\"compute\":{\"path\":\"@duration\",\"include_percentiles\":true,\"aggregation_type\":\"distribution\"}},\"type\":\"logs_metrics\",\"id\":\"Test_Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response_1669060165\"}}\n" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json" - } - ], - "headersSize": 649, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-11-21T19:49:25.243Z", - "time": 953 - }, - { - "_id": "b1578c2e26b42d91c00e94bd635ca96d", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 87, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "content-type", - "value": "application/json" - } - ], - "headersSize": 663, - "httpVersion": "HTTP/1.1", - "method": "PATCH", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"data\":{\"attributes\":{\"compute\":{\"include_percentiles\":false}},\"type\":\"logs_metrics\"}}" - }, - "queryString": [], - "url": "https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response_1669060165" - }, - "response": { - "bodySize": 376, - "content": { - "mimeType": "application/json", - "size": 376, - "text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"source:Test-Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response-1669060165\"},\"group_by\":[],\"compute\":{\"path\":\"@duration\",\"include_percentiles\":false,\"aggregation_type\":\"distribution\"}},\"type\":\"logs_metrics\",\"id\":\"Test_Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response_1669060165\"}}\n" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json" - } - ], - "headersSize": 649, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-11-21T19:49:26.229Z", - "time": 585 - }, - { - "_id": "0f43954d7cc4f040ab134d08b2fbfb74", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "accept", - "value": "*/*" - } - ], - "headersSize": 599, - "httpVersion": "HTTP/1.1", - "method": "DELETE", - "queryString": [], - "url": "https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Update_a_log_based_metric_with_include_percentiles_field_returns_OK_response_1669060165" - }, - "response": { - "bodySize": 3, - "content": { - "mimeType": "application/json", - "size": 3, - "text": "{}\n" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json" - } - ], - "headersSize": 624, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-11-21T19:49:26.822Z", - "time": 380 - } - ], - "pages": [], - "version": "1.2" - } -} diff --git a/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/frozen.json b/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/frozen.json index 31e94fb5bb4b..da11a25e0ca9 100644 --- a/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/frozen.json +++ b/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/frozen.json @@ -1 +1 @@ -"2022-11-21T21:58:43.871Z" +"2022-09-26T15:25:36.139Z" diff --git a/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/recording.har b/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/recording.har index 26134ed425a4..5e9d7f044501 100644 --- a/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/recording.har +++ b/cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "00e64e126be35886239cdf1fc03b27af", + "_id": "14a2f32aa94f0a5e97568a925f25104b", "_order": 0, "cache": {}, "request": { @@ -27,14 +27,14 @@ "queryString": [ { "name": "start_month", - "value": "2022-09-21T21:58:43.871Z" + "value": "2022-09-26T15:24:36.139Z" }, { "name": "view", "value": "sub-org" } ], - "url": "https://api.datadoghq.com/api/v2/usage/historical_cost?start_month=2022-09-21T21%3A58%3A43.871Z&view=sub-org" + "url": "https://api.datadoghq.com/api/v2/usage/historical_cost?start_month=2022-09-26T15%3A24%3A36.139Z&view=sub-org" }, "response": { "bodySize": 12, @@ -50,14 +50,14 @@ "value": "application/json" } ], - "headersSize": 622, + "headersSize": 603, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-11-21T21:58:43.881Z", - "time": 142 + "startedDateTime": "2022-09-26T15:25:36.148Z", + "time": 290 } ], "pages": [], diff --git a/examples/v2/logs-metrics/CreateLogsMetric.ts b/examples/v2/logs-metrics/CreateLogsMetric.ts index c656af500411..4b0c0881a664 100644 --- a/examples/v2/logs-metrics/CreateLogsMetric.ts +++ b/examples/v2/logs-metrics/CreateLogsMetric.ts @@ -14,9 +14,7 @@ const params: v2.LogsMetricsApiCreateLogsMetricRequest = { type: "logs_metrics", attributes: { compute: { - aggregationType: "distribution", - includePercentiles: true, - path: "@duration", + aggregationType: "count", }, }, }, diff --git a/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.ts b/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.ts deleted file mode 100644 index 376567a527e6..000000000000 --- a/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Update a log-based metric with include_percentiles field returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -const apiInstance = new v2.LogsMetricsApi(configuration); - -// there is a valid "logs_metric_percentile" in the system -const LOGS_METRIC_PERCENTILE_DATA_ID = process.env - .LOGS_METRIC_PERCENTILE_DATA_ID as string; - -const params: v2.LogsMetricsApiUpdateLogsMetricRequest = { - body: { - data: { - type: "logs_metrics", - attributes: { - compute: { - includePercentiles: false, - }, - }, - }, - }, - metricId: LOGS_METRIC_PERCENTILE_DATA_ID, -}; - -apiInstance - .updateLogsMetric(params) - .then((data: v2.LogsMetricResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/usage-metering/GetHistoricalCostByOrg.ts b/examples/v2/usage-metering/GetHistoricalCostByOrg.ts index e3fb19834b3c..30c56c5b77bb 100644 --- a/examples/v2/usage-metering/GetHistoricalCostByOrg.ts +++ b/examples/v2/usage-metering/GetHistoricalCostByOrg.ts @@ -9,7 +9,7 @@ const apiInstance = new v2.UsageMeteringApi(configuration); const params: v2.UsageMeteringApiGetHistoricalCostByOrgRequest = { view: "sub-org", - startMonth: new Date(new Date().getTime() + -2 * 86400 * 30 * 1000), + startMonth: new Date(new Date().getTime() + -1 * 60 * 1000), }; apiInstance diff --git a/features/v2/given.json b/features/v2/given.json index e586addfc0b2..70b0c4b646fd 100644 --- a/features/v2/given.json +++ b/features/v2/given.json @@ -131,18 +131,6 @@ "tag": "Logs Metrics", "operationId": "CreateLogsMetric" }, - { - "parameters": [ - { - "name": "body", - "value": "{\n \"data\": {\n \"id\": \"{{ unique }}\",\n \"attributes\": {\n \"filter\": {\n \"query\": \"source:{{ unique }}\"\n },\n \"compute\": {\n \"aggregation_type\": \"distribution\",\n \"path\": \"@duration\",\n \"include_percentiles\": true\n }\n },\n \"type\": \"logs_metrics\"\n }\n}" - } - ], - "step": "there is a valid \"logs_metric_percentile\" in the system", - "key": "logs_metric_percentile", - "tag": "Logs Metrics", - "operationId": "CreateLogsMetric" - }, { "parameters": [ { diff --git a/features/v2/logs_metrics.feature b/features/v2/logs_metrics.feature index ad6c8147bcea..e750af38175c 100644 --- a/features/v2/logs_metrics.feature +++ b/features/v2/logs_metrics.feature @@ -12,21 +12,21 @@ Feature: Logs Metrics @generated @skip @team:DataDog/logs-backend Scenario: Create a log-based metric returns "Bad Request" response Given new "CreateLogsMetric" request - And body with value {"data": {"attributes": {"compute": {"aggregation_type": "distribution", "include_percentiles": true, "path": "@duration"}, "filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "id": "logs.page.load.count", "type": "logs_metrics"}} + And body with value {"data": {"attributes": {"compute": {"aggregation_type": "distribution", "path": "@duration"}, "filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "id": "logs.page.load.count", "type": "logs_metrics"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/logs-backend Scenario: Create a log-based metric returns "Conflict" response Given new "CreateLogsMetric" request - And body with value {"data": {"attributes": {"compute": {"aggregation_type": "distribution", "include_percentiles": true, "path": "@duration"}, "filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "id": "logs.page.load.count", "type": "logs_metrics"}} + And body with value {"data": {"attributes": {"compute": {"aggregation_type": "distribution", "path": "@duration"}, "filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "id": "logs.page.load.count", "type": "logs_metrics"}} When the request is sent Then the response status is 409 Conflict @team:DataDog/logs-backend Scenario: Create a log-based metric returns "OK" response Given new "CreateLogsMetric" request - And body with value {"data": {"id": "{{ unique }}", "type": "logs_metrics", "attributes": {"compute": {"aggregation_type": "distribution", "include_percentiles": true, "path":"@duration"}}}} + And body with value {"data": {"id": "{{ unique }}", "type": "logs_metrics", "attributes": {"compute": {"aggregation_type": "count"}}}} When the request is sent Then the response status is 200 OK @@ -72,7 +72,7 @@ Feature: Logs Metrics Scenario: Update a log-based metric returns "Bad Request" response Given new "UpdateLogsMetric" request And request contains "metric_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"compute": {"include_percentiles": true}, "filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "type": "logs_metrics"}} + And body with value {"data": {"attributes": {"filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "type": "logs_metrics"}} When the request is sent Then the response status is 400 Bad Request @@ -80,7 +80,7 @@ Feature: Logs Metrics Scenario: Update a log-based metric returns "Not Found" response Given new "UpdateLogsMetric" request And request contains "metric_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"compute": {"include_percentiles": true}, "filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "type": "logs_metrics"}} + And body with value {"data": {"attributes": {"filter": {"query": "service:web* AND @http.status_code:[200 TO 299]"}, "group_by": [{"path": "@http.status_code", "tag_name": "status_code"}]}, "type": "logs_metrics"}} When the request is sent Then the response status is 404 Not Found @@ -93,13 +93,3 @@ Feature: Logs Metrics When the request is sent Then the response status is 200 OK And the response "data.attributes.filter.query" is equal to "{{ logs_metric.data.attributes.filter.query }}-updated" - - @team:DataDog/logs-backend - Scenario: Update a log-based metric with include_percentiles field returns "OK" response - Given there is a valid "logs_metric_percentile" in the system - And new "UpdateLogsMetric" request - And request contains "metric_id" parameter from "logs_metric_percentile.data.id" - And body with value {"data": {"type": "logs_metrics", "attributes": {"compute": {"include_percentiles": false}}}} - When the request is sent - Then the response status is 200 OK - And the response "data.attributes.compute.include_percentiles" is false diff --git a/features/v2/organizations.feature b/features/v2/organizations.feature index d7fe87808f64..0c4611f569fd 100644 --- a/features/v2/organizations.feature +++ b/features/v2/organizations.feature @@ -9,7 +9,7 @@ Feature: Organizations And an instance of "Organizations" API And new "UploadIdPMetadata" request - @skip-go @skip-java @skip-python @skip-ruby @skip-terraform-config @skip-typescript @skip-validation @team:DataDog/team-aaa-identity + @skip-go @skip-java @skip-python @skip-ruby @skip-terraform-config @skip-typescript @team:DataDog/team-aaa-identity Scenario: Upload IdP metadata returns "Bad Request - caused by either malformed XML or invalid SAML IdP metadata" response Given request contains "idp_file" parameter with value "fixtures/organizations/saml_configurations/invalid_idp_metadata.xml" When the request is sent @@ -20,7 +20,7 @@ Feature: Organizations When the request is sent Then the response status is 400 Bad Request - @skip-go @skip-java @skip-python @skip-ruby @skip-terraform-config @skip-typescript @skip-validation @team:DataDog/team-aaa-identity + @skip-go @skip-java @skip-python @skip-ruby @skip-terraform-config @skip-typescript @team:DataDog/team-aaa-identity Scenario: Upload IdP metadata returns "OK" response Given request contains "idp_file" parameter with value "fixtures/organizations/saml_configurations/valid_idp_metadata.xml" When the request is sent diff --git a/features/v2/usage_metering.feature b/features/v2/usage_metering.feature index 9e9dc6e05086..20376e778acc 100644 --- a/features/v2/usage_metering.feature +++ b/features/v2/usage_metering.feature @@ -50,7 +50,7 @@ Feature: Usage Metering @replay-only @team:DataDog/red-zone-revenue-query Scenario: Get historical cost across your account returns "OK" response Given new "GetHistoricalCostByOrg" request - And request contains "start_month" parameter with value "{{ timeISO('now - 2M') }}" + And request contains "start_month" parameter with value "{{ timeISO('now - 1m') }}" And request contains "view" parameter with value "sub-org" When the request is sent Then the response status is 200 OK diff --git a/packages/datadog-api-client-v1/index.ts b/packages/datadog-api-client-v1/index.ts index 08b326357680..fe83f251017a 100644 --- a/packages/datadog-api-client-v1/index.ts +++ b/packages/datadog-api-client-v1/index.ts @@ -672,7 +672,6 @@ export { QuerySortOrder } from "./models/QuerySortOrder"; export { QueryValueWidgetDefinition } from "./models/QueryValueWidgetDefinition"; export { QueryValueWidgetDefinitionType } from "./models/QueryValueWidgetDefinitionType"; export { QueryValueWidgetRequest } from "./models/QueryValueWidgetRequest"; -export { ReferenceTableLogsLookupProcessor } from "./models/ReferenceTableLogsLookupProcessor"; export { ResponseMetaAttributes } from "./models/ResponseMetaAttributes"; export { ScatterplotDimension } from "./models/ScatterplotDimension"; export { ScatterPlotRequest } from "./models/ScatterPlotRequest"; diff --git a/packages/datadog-api-client-v1/models/LogsProcessor.ts b/packages/datadog-api-client-v1/models/LogsProcessor.ts index 1f2ee9bc358b..55e41ff86416 100644 --- a/packages/datadog-api-client-v1/models/LogsProcessor.ts +++ b/packages/datadog-api-client-v1/models/LogsProcessor.ts @@ -18,7 +18,6 @@ import { LogsStringBuilderProcessor } from "./LogsStringBuilderProcessor"; import { LogsTraceRemapper } from "./LogsTraceRemapper"; import { LogsURLParser } from "./LogsURLParser"; import { LogsUserAgentParser } from "./LogsUserAgentParser"; -import { ReferenceTableLogsLookupProcessor } from "./ReferenceTableLogsLookupProcessor"; import { UnparsedObject } from "../../datadog-api-client-common/util"; @@ -41,6 +40,5 @@ export type LogsProcessor = | LogsPipelineProcessor | LogsGeoIPParser | LogsLookupProcessor - | ReferenceTableLogsLookupProcessor | LogsTraceRemapper | UnparsedObject; diff --git a/packages/datadog-api-client-v1/models/ObjectSerializer.ts b/packages/datadog-api-client-v1/models/ObjectSerializer.ts index 156ae26de136..74535d3635c4 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -261,7 +261,6 @@ import { Pagination } from "./Pagination"; import { ProcessQueryDefinition } from "./ProcessQueryDefinition"; import { QueryValueWidgetDefinition } from "./QueryValueWidgetDefinition"; import { QueryValueWidgetRequest } from "./QueryValueWidgetRequest"; -import { ReferenceTableLogsLookupProcessor } from "./ReferenceTableLogsLookupProcessor"; import { ResponseMetaAttributes } from "./ResponseMetaAttributes"; import { SLOBulkDeleteError } from "./SLOBulkDeleteError"; import { SLOBulkDeleteResponse } from "./SLOBulkDeleteResponse"; @@ -1607,7 +1606,6 @@ const typeMap: { [index: string]: any } = { ProcessQueryDefinition: ProcessQueryDefinition, QueryValueWidgetDefinition: QueryValueWidgetDefinition, QueryValueWidgetRequest: QueryValueWidgetRequest, - ReferenceTableLogsLookupProcessor: ReferenceTableLogsLookupProcessor, ResponseMetaAttributes: ResponseMetaAttributes, SLOBulkDeleteError: SLOBulkDeleteError, SLOBulkDeleteResponse: SLOBulkDeleteResponse, @@ -1936,7 +1934,6 @@ const oneOfMap: { [index: string]: string[] } = { "LogsPipelineProcessor", "LogsGeoIPParser", "LogsLookupProcessor", - "ReferenceTableLogsLookupProcessor", "LogsTraceRemapper", ], MonitorFormulaAndFunctionQueryDefinition: [ diff --git a/packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts b/packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts deleted file mode 100644 index 74ebfc31ed31..000000000000 --- a/packages/datadog-api-client-v1/models/ReferenceTableLogsLookupProcessor.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ -import { LogsLookupProcessorType } from "./LogsLookupProcessorType"; - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * **Note**: Reference Tables are in public beta. - * Use the Lookup Processor to define a mapping between a log attribute - * and a human readable value saved in a Reference Table. - * For example, you can use the Lookup Processor to map an internal service ID - * into a human readable service name. Alternatively, you could also use it to check - * if the MAC address that just attempted to connect to the production - * environment belongs to your list of stolen machines. - */ -export class ReferenceTableLogsLookupProcessor { - /** - * Whether or not the processor is enabled. - */ - "isEnabled"?: boolean; - /** - * Name of the Reference Table for the source attribute and their associated target attribute values. - */ - "lookupEnrichmentTable": string; - /** - * Name of the processor. - */ - "name"?: string; - /** - * Source attribute used to perform the lookup. - */ - "source": string; - /** - * Name of the attribute that contains the corresponding value in the mapping list. - */ - "target": string; - /** - * Type of logs lookup processor. - */ - "type": LogsLookupProcessorType; - - /** - * @ignore - */ - "unparsedObject"?: any; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - isEnabled: { - baseName: "is_enabled", - type: "boolean", - }, - lookupEnrichmentTable: { - baseName: "lookup_enrichment_table", - type: "string", - required: true, - }, - name: { - baseName: "name", - type: "string", - }, - source: { - baseName: "source", - type: "string", - required: true, - }, - target: { - baseName: "target", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "LogsLookupProcessorType", - required: true, - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return ReferenceTableLogsLookupProcessor.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v1/models/UsageHostHour.ts b/packages/datadog-api-client-v1/models/UsageHostHour.ts index d40d2a6c3670..59e49356a2c7 100644 --- a/packages/datadog-api-client-v1/models/UsageHostHour.ts +++ b/packages/datadog-api-client-v1/models/UsageHostHour.ts @@ -66,10 +66,6 @@ export class UsageHostHour { * (and were NOT running the Datadog Agent). */ "infraAzureAppService"?: number; - /** - * Contains the total number of hosts using APM reported by Datadog exporter for the OpenTelemetry Collector. - */ - "opentelemetryApmHostCount"?: number; /** * Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. */ @@ -157,11 +153,6 @@ export class UsageHostHour { type: "number", format: "int64", }, - opentelemetryApmHostCount: { - baseName: "opentelemetry_apm_host_count", - type: "number", - format: "int64", - }, opentelemetryHostCount: { baseName: "opentelemetry_host_count", type: "number", diff --git a/packages/datadog-api-client-v1/models/UsageSummaryDate.ts b/packages/datadog-api-client-v1/models/UsageSummaryDate.ts index 0b28ae79cd3a..c517469b6d28 100644 --- a/packages/datadog-api-client-v1/models/UsageSummaryDate.ts +++ b/packages/datadog-api-client-v1/models/UsageSummaryDate.ts @@ -227,10 +227,6 @@ export class UsageSummaryDate { * Sum of all online archived events over all hours in the current date for all organizations. */ "onlineArchiveEventsCountSum"?: number; - /** - * Shows the 99th percentile of APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. - */ - "opentelemetryApmHostTop99p"?: number; /** * Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. */ @@ -579,11 +575,6 @@ export class UsageSummaryDate { type: "number", format: "int64", }, - opentelemetryApmHostTop99p: { - baseName: "opentelemetry_apm_host_top99p", - type: "number", - format: "int64", - }, opentelemetryHostTop99p: { baseName: "opentelemetry_host_top99p", type: "number", diff --git a/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts b/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts index a5687dd72685..b87af6001565 100644 --- a/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts +++ b/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts @@ -230,10 +230,6 @@ export class UsageSummaryDateOrg { * Sum of all online archived events over all hours in the current date for the given org. */ "onlineArchiveEventsCountSum"?: number; - /** - * Shows the 99th percentile of APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. - */ - "opentelemetryApmHostTop99p"?: number; /** * Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. */ @@ -589,11 +585,6 @@ export class UsageSummaryDateOrg { type: "number", format: "int64", }, - opentelemetryApmHostTop99p: { - baseName: "opentelemetry_apm_host_top99p", - type: "number", - format: "int64", - }, opentelemetryHostTop99p: { baseName: "opentelemetry_host_top99p", type: "number", diff --git a/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts b/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts index cbc1add1af09..24512ff797fa 100644 --- a/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts +++ b/packages/datadog-api-client-v1/models/UsageSummaryResponse.ts @@ -248,10 +248,6 @@ export class UsageSummaryResponse { * Sum of all online archived events over all hours in the current months for all organizations. */ "onlineArchiveEventsCountAggSum"?: number; - /** - * Shows the 99th percentile of APM hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations. - */ - "opentelemetryApmHostTop99pSum"?: number; /** * Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations. */ @@ -640,11 +636,6 @@ export class UsageSummaryResponse { type: "number", format: "int64", }, - opentelemetryApmHostTop99pSum: { - baseName: "opentelemetry_apm_host_top99p_sum", - type: "number", - format: "int64", - }, opentelemetryHostTop99pSum: { baseName: "opentelemetry_host_top99p_sum", type: "number", diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index a4444e2369b7..f897265ba955 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -574,7 +574,6 @@ export { LogsMetricResponseGroupBy } from "./models/LogsMetricResponseGroupBy"; export { LogsMetricsResponse } from "./models/LogsMetricsResponse"; export { LogsMetricType } from "./models/LogsMetricType"; export { LogsMetricUpdateAttributes } from "./models/LogsMetricUpdateAttributes"; -export { LogsMetricUpdateCompute } from "./models/LogsMetricUpdateCompute"; export { LogsMetricUpdateData } from "./models/LogsMetricUpdateData"; export { LogsMetricUpdateRequest } from "./models/LogsMetricUpdateRequest"; export { LogsQueryFilter } from "./models/LogsQueryFilter"; @@ -733,6 +732,9 @@ export { RUMApplicationCreate } from "./models/RUMApplicationCreate"; export { RUMApplicationCreateAttributes } from "./models/RUMApplicationCreateAttributes"; export { RUMApplicationCreateRequest } from "./models/RUMApplicationCreateRequest"; export { RUMApplicationCreateType } from "./models/RUMApplicationCreateType"; +export { RUMApplicationList } from "./models/RUMApplicationList"; +export { RUMApplicationListAttributes } from "./models/RUMApplicationListAttributes"; +export { RUMApplicationListType } from "./models/RUMApplicationListType"; export { RUMApplicationResponse } from "./models/RUMApplicationResponse"; export { RUMApplicationsResponse } from "./models/RUMApplicationsResponse"; export { RUMApplicationType } from "./models/RUMApplicationType"; diff --git a/packages/datadog-api-client-v2/models/LogsMetricCompute.ts b/packages/datadog-api-client-v2/models/LogsMetricCompute.ts index 8af2e0d751d4..11717392e087 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricCompute.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricCompute.ts @@ -15,11 +15,6 @@ export class LogsMetricCompute { * The type of aggregation to use. */ "aggregationType": LogsMetricComputeAggregationType; - /** - * Toggle to include or exclude percentile aggregations for distribution metrics. - * Only present when the `aggregation_type` is `distribution`. - */ - "includePercentiles"?: boolean; /** * The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). */ @@ -39,10 +34,6 @@ export class LogsMetricCompute { type: "LogsMetricComputeAggregationType", required: true, }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", - }, path: { baseName: "path", type: "string", diff --git a/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts b/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts index 952f7440511e..d4af0e0a278c 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricResponseCompute.ts @@ -15,11 +15,6 @@ export class LogsMetricResponseCompute { * The type of aggregation to use. */ "aggregationType"?: LogsMetricResponseComputeAggregationType; - /** - * Toggle to include or exclude percentile aggregations for distribution metrics. - * Only present when the `aggregation_type` is `distribution`. - */ - "includePercentiles"?: boolean; /** * The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). */ @@ -38,10 +33,6 @@ export class LogsMetricResponseCompute { baseName: "aggregation_type", type: "LogsMetricResponseComputeAggregationType", }, - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", - }, path: { baseName: "path", type: "string", diff --git a/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts b/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts index 03a22a9fe283..04153799d628 100644 --- a/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/LogsMetricUpdateAttributes.ts @@ -5,7 +5,6 @@ */ import { LogsMetricFilter } from "./LogsMetricFilter"; import { LogsMetricGroupBy } from "./LogsMetricGroupBy"; -import { LogsMetricUpdateCompute } from "./LogsMetricUpdateCompute"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -13,10 +12,6 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * The log-based metric properties that will be updated. */ export class LogsMetricUpdateAttributes { - /** - * The compute rule to compute the log-based metric. - */ - "compute"?: LogsMetricUpdateCompute; /** * The log-based metric filter. Logs matching this filter will be aggregated in this metric. */ @@ -35,10 +30,6 @@ export class LogsMetricUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - compute: { - baseName: "compute", - type: "LogsMetricUpdateCompute", - }, filter: { baseName: "filter", type: "LogsMetricFilter", diff --git a/packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts b/packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts deleted file mode 100644 index d062edc0d776..000000000000 --- a/packages/datadog-api-client-v2/models/LogsMetricUpdateCompute.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * The compute rule to compute the log-based metric. - */ -export class LogsMetricUpdateCompute { - /** - * Toggle to include or exclude percentile aggregations for distribution metrics. - * Only present when the `aggregation_type` is `distribution`. - */ - "includePercentiles"?: boolean; - - /** - * @ignore - */ - "unparsedObject"?: any; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - includePercentiles: { - baseName: "include_percentiles", - type: "boolean", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LogsMetricUpdateCompute.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts b/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts index 89a8b952c4f6..dcb1c5f362d9 100644 --- a/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts +++ b/packages/datadog-api-client-v2/models/MetricTagConfigurationAttributes.ts @@ -36,7 +36,7 @@ export class MetricTagConfigurationAttributes { */ "createdAt"?: Date; /** - * Toggle to include or exclude percentile aggregations for distribution metrics. + * Toggle to turn on/off percentile aggregations for distribution metrics. * Only present when the `metric_type` is `distribution`. */ "includePercentiles"?: boolean; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 3a31b2306bb9..c5289edf1df2 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -240,7 +240,6 @@ import { LogsMetricResponseData } from "./LogsMetricResponseData"; import { LogsMetricResponseFilter } from "./LogsMetricResponseFilter"; import { LogsMetricResponseGroupBy } from "./LogsMetricResponseGroupBy"; import { LogsMetricUpdateAttributes } from "./LogsMetricUpdateAttributes"; -import { LogsMetricUpdateCompute } from "./LogsMetricUpdateCompute"; import { LogsMetricUpdateData } from "./LogsMetricUpdateData"; import { LogsMetricUpdateRequest } from "./LogsMetricUpdateRequest"; import { LogsMetricsResponse } from "./LogsMetricsResponse"; @@ -329,6 +328,8 @@ import { RUMApplicationAttributes } from "./RUMApplicationAttributes"; import { RUMApplicationCreate } from "./RUMApplicationCreate"; import { RUMApplicationCreateAttributes } from "./RUMApplicationCreateAttributes"; import { RUMApplicationCreateRequest } from "./RUMApplicationCreateRequest"; +import { RUMApplicationList } from "./RUMApplicationList"; +import { RUMApplicationListAttributes } from "./RUMApplicationListAttributes"; import { RUMApplicationResponse } from "./RUMApplicationResponse"; import { RUMApplicationUpdate } from "./RUMApplicationUpdate"; import { RUMApplicationUpdateAttributes } from "./RUMApplicationUpdateAttributes"; @@ -689,6 +690,7 @@ const enumsMap: { [key: string]: any[] } = { "median", ], RUMApplicationCreateType: ["rum_application_create"], + RUMApplicationListType: ["rum_application"], RUMApplicationType: ["rum_application"], RUMApplicationUpdateType: ["rum_application_update"], RUMComputeType: ["timeseries", "total"], @@ -1057,7 +1059,6 @@ const typeMap: { [index: string]: any } = { LogsMetricResponseFilter: LogsMetricResponseFilter, LogsMetricResponseGroupBy: LogsMetricResponseGroupBy, LogsMetricUpdateAttributes: LogsMetricUpdateAttributes, - LogsMetricUpdateCompute: LogsMetricUpdateCompute, LogsMetricUpdateData: LogsMetricUpdateData, LogsMetricUpdateRequest: LogsMetricUpdateRequest, LogsMetricsResponse: LogsMetricsResponse, @@ -1151,6 +1152,8 @@ const typeMap: { [index: string]: any } = { RUMApplicationCreate: RUMApplicationCreate, RUMApplicationCreateAttributes: RUMApplicationCreateAttributes, RUMApplicationCreateRequest: RUMApplicationCreateRequest, + RUMApplicationList: RUMApplicationList, + RUMApplicationListAttributes: RUMApplicationListAttributes, RUMApplicationResponse: RUMApplicationResponse, RUMApplicationUpdate: RUMApplicationUpdate, RUMApplicationUpdateAttributes: RUMApplicationUpdateAttributes, diff --git a/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts b/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts index bd638da13697..b873d3e62688 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationAttributes.ts @@ -14,6 +14,10 @@ export class RUMApplicationAttributes { * ID of the RUM application. */ "applicationId": string; + /** + * Client token of the RUM application. + */ + "clientToken": string; /** * Timestamp in ms of the creation date. */ @@ -23,9 +27,13 @@ export class RUMApplicationAttributes { */ "createdByHandle": string; /** - * Client token of the RUM application. + * Hash of the RUM application. Optional. */ "hash"?: string; + /** + * Indicates if the RUM application is active. + */ + "isActive"?: boolean; /** * Name of the RUM application. */ @@ -61,6 +69,11 @@ export class RUMApplicationAttributes { type: "string", required: true, }, + clientToken: { + baseName: "client_token", + type: "string", + required: true, + }, createdAt: { baseName: "created_at", type: "number", @@ -76,6 +89,10 @@ export class RUMApplicationAttributes { baseName: "hash", type: "string", }, + isActive: { + baseName: "is_active", + type: "boolean", + }, name: { baseName: "name", type: "string", diff --git a/packages/datadog-api-client-v2/models/RUMApplicationList.ts b/packages/datadog-api-client-v2/models/RUMApplicationList.ts new file mode 100644 index 000000000000..0ed753b47f42 --- /dev/null +++ b/packages/datadog-api-client-v2/models/RUMApplicationList.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { RUMApplicationListAttributes } from "./RUMApplicationListAttributes"; +import { RUMApplicationListType } from "./RUMApplicationListType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * RUM application list. + */ +export class RUMApplicationList { + /** + * RUM application list attributes. + */ + "attributes": RUMApplicationListAttributes; + /** + * RUM application list type. + */ + "type": RUMApplicationListType; + + /** + * @ignore + */ + "unparsedObject"?: any; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "RUMApplicationListAttributes", + required: true, + }, + type: { + baseName: "type", + type: "RUMApplicationListType", + required: true, + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RUMApplicationList.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts b/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts new file mode 100644 index 000000000000..a7909a4716b5 --- /dev/null +++ b/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.ts @@ -0,0 +1,124 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * RUM application list attributes. + */ +export class RUMApplicationListAttributes { + /** + * ID of the RUM application. + */ + "applicationId": string; + /** + * Timestamp in ms of the creation date. + */ + "createdAt": number; + /** + * Handle of the creator user. + */ + "createdByHandle": string; + /** + * Hash of the RUM application. Optional. + */ + "hash"?: string; + /** + * Indicates if the RUM application is active. + */ + "isActive"?: boolean; + /** + * Name of the RUM application. + */ + "name": string; + /** + * Org ID of the RUM application. + */ + "orgId": number; + /** + * Type of the RUM application. + */ + "type": string; + /** + * Timestamp in ms of the last update date. + */ + "updatedAt": number; + /** + * Handle of the updater user. + */ + "updatedByHandle": string; + + /** + * @ignore + */ + "unparsedObject"?: any; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + applicationId: { + baseName: "application_id", + type: "string", + required: true, + }, + createdAt: { + baseName: "created_at", + type: "number", + required: true, + format: "int64", + }, + createdByHandle: { + baseName: "created_by_handle", + type: "string", + required: true, + }, + hash: { + baseName: "hash", + type: "string", + }, + isActive: { + baseName: "is_active", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + orgId: { + baseName: "org_id", + type: "number", + required: true, + format: "int32", + }, + type: { + baseName: "type", + type: "string", + required: true, + }, + updatedAt: { + baseName: "updated_at", + type: "number", + required: true, + format: "int64", + }, + updatedByHandle: { + baseName: "updated_by_handle", + type: "string", + required: true, + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RUMApplicationListAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/RUMApplicationListType.ts b/packages/datadog-api-client-v2/models/RUMApplicationListType.ts new file mode 100644 index 000000000000..b557993a4e11 --- /dev/null +++ b/packages/datadog-api-client-v2/models/RUMApplicationListType.ts @@ -0,0 +1,8 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +export type RUMApplicationListType = typeof RUM_APPLICATION; +export const RUM_APPLICATION = "rum_application"; diff --git a/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts b/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts index 17dc50b6f0c0..a013d52831e4 100644 --- a/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts +++ b/packages/datadog-api-client-v2/models/RUMApplicationsResponse.ts @@ -3,7 +3,7 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ -import { RUMApplication } from "./RUMApplication"; +import { RUMApplicationList } from "./RUMApplicationList"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -14,7 +14,7 @@ export class RUMApplicationsResponse { /** * RUM applications array response. */ - "data"?: Array; + "data"?: Array; /** * @ignore @@ -27,7 +27,7 @@ export class RUMApplicationsResponse { static readonly attributeTypeMap: AttributeTypeMap = { data: { baseName: "data", - type: "Array", + type: "Array", }, };