From 4433031ad9b32230e6a360b3d1af10037a12386b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 14 Feb 2023 15:28:17 +0000 Subject: [PATCH] Regenerate client from commit 8652aeac of spec repo --- .apigentools-info | 8 ++--- .generator/schemas/v1/openapi.yaml | 6 ---- .generator/schemas/v2/openapi.yaml | 32 +++++++++++++------ lib/datadog_api_client/v1/models/host_meta.rb | 6 ++-- .../v2/models/metrics_data_source.rb | 3 +- .../v2/models/metrics_scalar_query.rb | 2 +- .../v2/models/metrics_timeseries_query.rb | 2 +- 7 files changed, 34 insertions(+), 25 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 1870fe83bb3d..1206f1b0a93c 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-02-13 20:03:53.822041", - "spec_repo_commit": "529f68ad" + "regenerated": "2023-02-14 15:27:58.351032", + "spec_repo_commit": "8652aeac" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-02-13 20:03:53.836345", - "spec_repo_commit": "529f68ad" + "regenerated": "2023-02-14 15:27:58.364308", + "spec_repo_commit": "8652aeac" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index b9769f28d70b..9c50b90b77b0 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3425,8 +3425,6 @@ components: items: description: The version name. example: FreeBSD - nullable: true - type: string type: array gohai: description: JSON string containing system information. @@ -3451,8 +3449,6 @@ components: items: description: Version name. example: Ubuntu - nullable: true - type: string type: array platform: description: The OS platform. @@ -3479,8 +3475,6 @@ components: items: description: Version name. example: Windows - nullable: true - type: string type: array type: object HostMetaInstallMethod: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 787db6e45beb..1d53c2d3fca6 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -2850,6 +2850,8 @@ components: type: string values: description: The array of numerical values for one formula or query. + example: + - 0.5 items: description: An individual value for a given column and group-by. example: 0.5 @@ -3274,6 +3276,8 @@ components: $ref: '#/components/schemas/EventsQueryGroupBys' indexes: description: The indexes in which to search. + example: + - main items: description: The unique index name. example: main @@ -3325,6 +3329,8 @@ components: $ref: '#/components/schemas/EventsQueryGroupBys' indexes: description: The indexes in which to search. + example: + - main items: description: The unique index name. example: main @@ -3670,6 +3676,9 @@ components: values: description: The array of tag values for each group found for the results of the formulas or queries. + example: + - - production + - - staging items: description: An individual tag value for a given group column. items: @@ -3683,6 +3692,7 @@ components: description: List of tags that apply to a single response value. items: description: A single tag that applies to a single response value. + example: env:production type: string type: array HTTPLog: @@ -7218,13 +7228,15 @@ components: type: object MetricsDataSource: default: metrics - description: A data source that is powered by the Metrics backend. + description: A data source that is powered by the Metrics platform. enum: - metrics + - cloud_cost example: metrics type: string x-enum-varnames: - METRICS + - CLOUD_COST MetricsScalarQuery: description: An individual scalar metrics query. properties: @@ -17014,12 +17026,13 @@ paths: tags: - Metrics x-codegen-request-body-name: body - x-unstable: '**Note**: This endpoint is GA for the metrics data source. Logs - is in beta. + x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data + sources. Logs is - We are gradually onboarding support for more sources. If you have any feedback, + in beta. We are gradually onboarding support for more sources. If you have + any - contact [Datadog support](https://docs.datadoghq.com/help/).' + feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/query/timeseries: post: description: 'Query timeseries data across various data sources and @@ -17051,12 +17064,13 @@ paths: tags: - Metrics x-codegen-request-body-name: body - x-unstable: '**Note**: This endpoint is GA for the metrics data source. Logs - is in beta. + x-unstable: '**Note**: This endpoint is GA for the metrics and cloud cost data + sources. Logs is - We are gradually onboarding support for more sources. If you have any feedback, + in beta. We are gradually onboarding support for more sources. If you have + any - contact [Datadog support](https://docs.datadoghq.com/help/).' + feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/roles: get: description: Returns all roles, including their names and their unique identifiers. diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index d017ba665c27..e121509e658b 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -99,18 +99,18 @@ def self.openapi_types :'agent_checks' => :'Array>', :'agent_version' => :'String', :'cpu_cores' => :'Integer', - :'fbsd_v' => :'Array', + :'fbsd_v' => :'Array', :'gohai' => :'String', :'install_method' => :'HostMetaInstallMethod', :'mac_v' => :'Array', :'machine' => :'String', - :'nix_v' => :'Array', + :'nix_v' => :'Array', :'platform' => :'String', :'processor' => :'String', :'python_v' => :'String', :'socket_fqdn' => :'String', :'socket_hostname' => :'String', - :'win_v' => :'Array' + :'win_v' => :'Array' } end diff --git a/lib/datadog_api_client/v2/models/metrics_data_source.rb b/lib/datadog_api_client/v2/models/metrics_data_source.rb index 8fa7000595f8..a89700a9063e 100644 --- a/lib/datadog_api_client/v2/models/metrics_data_source.rb +++ b/lib/datadog_api_client/v2/models/metrics_data_source.rb @@ -17,10 +17,11 @@ require 'time' module DatadogAPIClient::V2 - # A data source that is powered by the Metrics backend. + # A data source that is powered by the Metrics platform. class MetricsDataSource include BaseEnumModel METRICS = "metrics".freeze + CLOUD_COST = "cloud_cost".freeze end end diff --git a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb index 93e1e25873cb..b4ef7ced7995 100644 --- a/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_scalar_query.rb @@ -28,7 +28,7 @@ class MetricsScalarQuery # The type of aggregation that can be performed on metrics queries. attr_reader :aggregator - # A data source that is powered by the Metrics backend. + # A data source that is powered by the Metrics platform. attr_reader :data_source # The variable name for use in formulas. diff --git a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb index 6b06774b0cfd..781cec6a8204 100644 --- a/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb +++ b/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb @@ -25,7 +25,7 @@ class MetricsTimeseriesQuery # @!visibility private attr_accessor :_unparsed - # A data source that is powered by the Metrics backend. + # A data source that is powered by the Metrics platform. attr_reader :data_source # The variable name for use in formulas.