Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set hosts versions as type any #1240

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
6 changes: 0 additions & 6 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -3451,8 +3449,6 @@ components:
items:
description: Version name.
example: Ubuntu
nullable: true
type: string
type: array
platform:
description: The OS platform.
Expand All @@ -3479,8 +3475,6 @@ components:
items:
description: Version name.
example: Windows
nullable: true
type: string
type: array
type: object
HostMetaInstallMethod:
Expand Down
32 changes: 23 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions lib/datadog_api_client/v1/models/host_meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,18 @@ def self.openapi_types
:'agent_checks' => :'Array<Array<Object>>',
:'agent_version' => :'String',
:'cpu_cores' => :'Integer',
:'fbsd_v' => :'Array<String>',
:'fbsd_v' => :'Array<Object>',
:'gohai' => :'String',
:'install_method' => :'HostMetaInstallMethod',
:'mac_v' => :'Array<Object>',
:'machine' => :'String',
:'nix_v' => :'Array<String>',
:'nix_v' => :'Array<Object>',
:'platform' => :'String',
:'processor' => :'String',
:'python_v' => :'String',
:'socket_fqdn' => :'String',
:'socket_hostname' => :'String',
:'win_v' => :'Array<String>'
:'win_v' => :'Array<Object>'
}
end

Expand Down
3 changes: 2 additions & 1 deletion lib/datadog_api_client/v2/models/metrics_data_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/metrics_scalar_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down