Skip to content

Commit

Permalink
Regenerate client from commit 2283cfc7 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Sep 6, 2022
1 parent 107c5c0 commit d414fc2
Show file tree
Hide file tree
Showing 28 changed files with 211 additions and 699 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": "2022-09-06 13:52:56.645544",
"spec_repo_commit": "8c9d402b"
"regenerated": "2022-09-06 21:53:54.535674",
"spec_repo_commit": "2283cfc7"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-09-06 13:52:56.657735",
"spec_repo_commit": "8c9d402b"
"regenerated": "2022-09-06 21:53:54.552102",
"spec_repo_commit": "2283cfc7"
}
}
}
53 changes: 50 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3627,6 +3627,7 @@ components:
description: Supported products for hourly usage attribution requests.
enum:
- api_usage
- apm_fargate_usage
- apm_host_usage
- appsec_usage
- browser_usage
Expand Down Expand Up @@ -3654,6 +3655,7 @@ components:
type: string
x-enum-varnames:
- API_USAGE
- APM_FARGATE_USAGE
- APM_HOST_USAGE
- APPSEC_USAGE
- BROWSER_USAGE
Expand Down Expand Up @@ -5646,9 +5648,6 @@ components:
type: string
pointlist:
description: List of points of the time series.
example:
- - 1575317847.0
- 0.5
items:
$ref: '#/components/schemas/Point'
readOnly: true
Expand Down Expand Up @@ -6875,6 +6874,8 @@ components:
enum:
- api_usage
- api_percentage
- apm_fargate_usage
- apm_fargate_percentage
- apm_host_usage
- apm_host_percentage
- appsec_usage
Expand Down Expand Up @@ -6928,6 +6929,8 @@ components:
x-enum-varnames:
- API_USAGE
- API_PERCENTAGE
- APM_FARGATE_USAGE
- APM_FARGATE_PERCENTAGE
- APM_HOST_USAGE
- APM_HOST_PERCENTAGE
- APPSEC_USAGE
Expand Down Expand Up @@ -6988,6 +6991,14 @@ components:
description: The synthetic API test usage by tag(s).
format: double
type: number
apm_fargate_percentage:
description: The percentage of APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_fargate_usage:
description: The APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_host_percentage:
description: The percentage of APM host usage by tag(s).
format: double
Expand Down Expand Up @@ -13643,6 +13654,8 @@ components:
- estimated_indexed_spans_percentage
- estimated_ingested_spans_usage
- estimated_ingested_spans_percentage
- apm_fargate_usage
- apm_fargate_percentage
type: string
x-enum-varnames:
- API_PERCENTAGE
Expand Down Expand Up @@ -13675,6 +13688,8 @@ components:
- ESTIMATED_INDEXED_SPANS_PERCENTAGE
- ESTIMATED_INGESTED_SPANS_USAGE
- ESTIMATED_INGESTED_SPANS_PERCENTAGE
- APM_FARGATE_USAGE
- APM_FARGATE_PERCENTAGE
UsageAttributionSupportedMetrics:
description: Supported fields for usage attribution requests (valid requests
contain one or more metrics, or `*` for all).
Expand Down Expand Up @@ -13719,6 +13734,8 @@ components:
- estimated_indexed_spans_percentage
- estimated_ingested_spans_usage
- estimated_ingested_spans_percentage
- apm_fargate_usage
- apm_fargate_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -13762,6 +13779,8 @@ components:
- ESTIMATED_INDEXED_SPANS_PERCENTAGE
- ESTIMATED_INGESTED_SPANS_USAGE
- ESTIMATED_INGESTED_SPANS_PERCENTAGE
- APM_FARGATE_USAGE
- APM_FARGATE_PERCENTAGE
- ALL
UsageAttributionTagNames:
additionalProperties:
Expand Down Expand Up @@ -13802,6 +13821,14 @@ components:
description: The synthetic API test usage by tag(s).
format: double
type: number
apm_fargate_percentage:
description: The percentage of APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_fargate_usage:
description: The APM ECS Fargate task usage by tag(s).
format: double
type: number
apm_host_percentage:
description: The percentage of APM host usage by tag(s).
format: double
Expand Down Expand Up @@ -14486,6 +14513,11 @@ components:
UsageFargateHour:
description: Number of Fargate tasks run and hourly usage.
properties:
apm_fargate_count:
description: The high-water mark of APM ECS Fargate tasks during the given
hour.
format: int64
type: integer
avg_profiled_fargate_tasks:
description: The average profiled task count for Fargate Profiling.
format: int64
Expand Down Expand Up @@ -15288,6 +15320,11 @@ components:
over all hours in the current date all organizations.
format: int64
type: integer
apm_fargate_count_avg:
description: Shows the average of all APM ECS Fargate tasks over all hours
in the current date for all organizations.
format: int64
type: integer
apm_host_top99p:
description: Shows the 99th percentile of all distinct APM hosts over all
hours in the current date for all organizations.
Expand Down Expand Up @@ -15618,6 +15655,11 @@ components:
over all hours in the current date for the given org.
format: int64
type: integer
apm_fargate_count_avg:
description: Shows the average of all APM ECS Fargate tasks over all hours
in the current months for the given org.
format: int64
type: integer
apm_host_top99p:
description: Shows the 99th percentile of all distinct APM hosts over all
hours in the current date for the given org.
Expand Down Expand Up @@ -15951,6 +15993,11 @@ components:
over all hours in the current months all organizations.
format: int64
type: integer
apm_fargate_count_avg_sum:
description: Shows the average of all APM ECS Fargate tasks over all hours
in the current months for all organizations.
format: int64
type: integer
apm_host_top99p_sum:
description: Shows the 99th percentile of all distinct APM hosts over all
hours in the current months for all organizations.
Expand Down
136 changes: 9 additions & 127 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4156,15 +4156,6 @@ components:
type:
$ref: '#/components/schemas/MetricType'
type: object
MetricActiveConfigurationType:
default: actively_queried_configurations
description: The metric actively queried configuration resource type.
enum:
- actively_queried_configurations
example: actively_queried_configurations
type: string
x-enum-varnames:
- ACTIVELY_QUERIED_CONFIGURATIONS
MetricAllTags:
description: Object for a single metric's indexed tags.
properties:
Expand Down Expand Up @@ -4690,50 +4681,6 @@ components:
- metric
- points
type: object
MetricSuggestedAggregations:
description: List of aggregation combinations that have been actively queried.
example:
- space: sum
time: sum
- space: sum
time: count
items:
$ref: '#/components/schemas/MetricCustomAggregation'
type: array
MetricSuggestedTagsAndAggregations:
description: Object for a single metric's actively queried tags and aggregations.
properties:
attributes:
$ref: '#/components/schemas/MetricSuggestedTagsAttributes'
id:
$ref: '#/components/schemas/MetricName'
type:
$ref: '#/components/schemas/MetricActiveConfigurationType'
type: object
MetricSuggestedTagsAndAggregationsResponse:
description: Response object that includes a single metric's actively queried
tags and aggregations.
properties:
data:
$ref: '#/components/schemas/MetricSuggestedTagsAndAggregations'
readOnly: true
type: object
MetricSuggestedTagsAttributes:
description: Object containing the definition of a metric's actively queried
tags and aggregations.
properties:
active_aggregations:
$ref: '#/components/schemas/MetricSuggestedAggregations'
active_tags:
description: List of tag keys that have been actively queried.
example:
- app
- datacenter
items:
description: Actively queried tag keys.
type: string
type: array
type: object
MetricTagConfiguration:
description: Object for a single metric tag configuration.
example:
Expand Down Expand Up @@ -10668,10 +10615,12 @@ paths:
resultsPath: data
/api/v2/metrics:
get:
description: Returns all metrics (matching additional filters if specified).
description: 'Returns all configured count/gauge/rate/distribution metric names
(with additional filters if specified).'
operationId: ListTagConfigurations
parameters:
- description: Filter custom metrics that have configured tags.
- description: Filter metrics that have configured tags.
example: true
in: query
name: filter[configured]
Expand All @@ -10686,7 +10635,7 @@ paths:
schema:
description: Tag keys to filter by.
type: string
- description: Filter metrics by metric type.
- description: Filter tag configurations by metric type.
in: query
name: filter[metric_type]
required: false
Expand All @@ -10701,31 +10650,20 @@ paths:
required: false
schema:
type: boolean
- description: 'Filter custom metrics that have or have not been queried in
the specified window[seconds].
If no window is provided or the window is less than 2 hours, a default of
2 hours will be applied.'
example: true
in: query
name: filter[queried]
required: false
schema:
type: boolean
- description: 'Filter metrics that have been submitted with the given tags.
Supports boolean and wildcard expressions.
Can only be combined with the filter[queried] filter.'
Cannot be combined with other filters.'
example: env IN (staging,test) AND service:web
in: query
name: filter[tags]
required: false
schema:
type: string
- description: 'The number of seconds of look back (from now) to apply to a
filter[tag] or filter[queried] query.
filter[tag] query.
Defaults value is 3600 (1 hour), maximum value is 1,209,600 (2 weeks).'
Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days).'
example: 3600
in: query
name: window[seconds]
Expand Down Expand Up @@ -10763,7 +10701,7 @@ paths:
appKeyAuth: []
- AuthZ:
- metrics_read
summary: Get a list of metrics
summary: List tag configurations
tags:
- Metrics
/api/v2/metrics/config/bulk-tags:
Expand Down Expand Up @@ -10879,62 +10817,6 @@ paths:
tags:
- Metrics
x-codegen-request-body-name: body
/api/v2/metrics/{metric_name}/active-configurations:
get:
description: List tags and aggregations that are actively queried on dashboards
and monitors for a given metric name.
operationId: ListActiveMetricConfigurations
parameters:
- $ref: '#/components/parameters/MetricName'
- description: 'The number of seconds of look back (from now).
Default value is 604,800 (1 week), minimum value is 7200 (2 hours), maximum
value is 2,630,000 (1 month).'
example: 7200
in: query
name: window[seconds]
required: false
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MetricSuggestedTagsAndAggregationsResponse'
description: Success
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Not Found
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Too Many Requests
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: List active tags and aggregations
tags:
- Metrics
/api/v2/metrics/{metric_name}/all-tags:
get:
description: View indexed tag key-value pairs for a given metric name.
Expand Down
5 changes: 0 additions & 5 deletions examples/v2/metrics/ListActiveMetricConfigurations.rb

This file was deleted.

2 changes: 1 addition & 1 deletion examples/v2/metrics/ListTagConfigurations.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Get a list of metrics returns "Success" response
# List tag configurations returns "Success" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::MetricsAPI.new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Get a list of metrics with configured filter returns "Success" response
# List tag configurations with configured filter returns "Success" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::MetricsAPI.new
Expand Down
Loading

0 comments on commit d414fc2

Please sign in to comment.