Skip to content

Commit

Permalink
Regenerate client from commit e94ebd6d of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Feb 3, 2023
1 parent 9739abc commit c65d50e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 17 deletions.
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-02 14:04:32.453084",
"spec_repo_commit": "2cc8984b"
"regenerated": "2023-02-03 20:45:30.116793",
"spec_repo_commit": "e94ebd6d"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-02 14:04:32.468524",
"spec_repo_commit": "2cc8984b"
"regenerated": "2023-02-03 20:45:30.132774",
"spec_repo_commit": "e94ebd6d"
}
}
}
32 changes: 23 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2846,6 +2846,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 @@ -3270,6 +3272,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 @@ -3321,6 +3325,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 @@ -3666,6 +3672,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 @@ -3679,6 +3688,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 @@ -7214,13 +7224,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 @@ -17006,12 +17018,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 @@ -17043,12 +17056,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: 4 additions & 2 deletions api/datadogV2/model_metrics_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ import (
"fmt"
)

// MetricsDataSource A data source that is powered by the Metrics backend.
// MetricsDataSource A data source that is powered by the Metrics platform.
type MetricsDataSource string

// List of MetricsDataSource.
const (
METRICSDATASOURCE_METRICS MetricsDataSource = "metrics"
METRICSDATASOURCE_METRICS MetricsDataSource = "metrics"
METRICSDATASOURCE_CLOUD_COST MetricsDataSource = "cloud_cost"
)

var allowedMetricsDataSourceEnumValues = []MetricsDataSource{
METRICSDATASOURCE_METRICS,
METRICSDATASOURCE_CLOUD_COST,
}

// GetAllowedValues reeturns the list of possible values.
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV2/model_metrics_scalar_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type MetricsScalarQuery struct {
// The type of aggregation that can be performed on metrics queries.
Aggregator MetricsAggregator `json:"aggregator"`
// A data source that is powered by the Metrics backend.
// A data source that is powered by the Metrics platform.
DataSource MetricsDataSource `json:"data_source"`
// The variable name for use in formulas.
Name *string `json:"name,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV2/model_metrics_timeseries_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// MetricsTimeseriesQuery An individual timeseries metrics query.
type MetricsTimeseriesQuery struct {
// A data source that is powered by the Metrics backend.
// A data source that is powered by the Metrics platform.
DataSource MetricsDataSource `json:"data_source"`
// The variable name for use in formulas.
Name *string `json:"name,omitempty"`
Expand Down

0 comments on commit c65d50e

Please sign in to comment.