Skip to content

Commit

Permalink
Regenerate client from commit 24bd273 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 15, 2021
1 parent 714d860 commit 1b87367
Show file tree
Hide file tree
Showing 20 changed files with 1,534 additions and 10 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.5.1.dev2",
"regenerated": "2021-12-10 14:07:04.851334",
"spec_repo_commit": "3c4d6d2"
"regenerated": "2021-12-15 16:19:24.178557",
"spec_repo_commit": "24bd273"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-12-10 14:07:05.618941",
"spec_repo_commit": "3c4d6d2"
"regenerated": "2021-12-15 16:19:25.079442",
"spec_repo_commit": "24bd273"
}
}
}
205 changes: 199 additions & 6 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3365,6 +3365,128 @@ components:
format: int64
type: integer
type: object
HourlyUsageAttributionBody:
description: The usage for one set of tags for one hour.
properties:
hour:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The name of the organization.
type: string
public_id:
description: The organization public ID.
type: string
tag_config_source:
description: The source of the usage attribution tag configuration and the
selected tags in the format of `<source_org_name>:::<selected tag 1>///<selected
tag 2>///<selected tag 3>`.
type: string
tags:
$ref: '#/components/schemas/UsageAttributionTagNames'
total_usage_sum:
description: Total product usage for the given tags within the hour.
format: double
type: number
updated_at:
description: Shows the most recent hour in the current month for all organizations
where usages are calculated.
type: string
usage_type:
$ref: '#/components/schemas/HourlyUsageAttributionResponseUsageType'
type: object
HourlyUsageAttributionMetadata:
description: The object containing document metadata.
properties:
pagination:
$ref: '#/components/schemas/HourlyUsageAttributionPagination'
type: object
HourlyUsageAttributionPagination:
description: The metadata for the current pagination.
properties:
next_record_id:
description: The cursor to get the next results (if any). To make the next
request, use the same parameters and add `next_record_id`.
type: string
type: object
HourlyUsageAttributionResponse:
description: Response containing the hourly usage attribution by tag(s).
properties:
metadata:
$ref: '#/components/schemas/HourlyUsageAttributionMetadata'
usage:
description: Get the hourly usage attribution by tag(s).
items:
$ref: '#/components/schemas/HourlyUsageAttributionBody'
type: array
type: object
HourlyUsageAttributionResponseUsageType:
description: The usage type in the response body.
enum:
- api_usage
- apm_host_usage
- browser_usage
- container_usage
- custom_timeseries_usage
- fargate_usage
- functions_usage
- indexed_logs_usage
- infra_host_usage
- invocations_usage
- npm_host_usage
- profiled_container_usage
- profiled_host_usage
- snmp_usage
type: string
x-enum-varnames:
- API_USAGE
- APM_HOST_USAGE
- BROWSER_USAGE
- CONTAINER_USAGE
- CUSTOM_TIMESERIES_USAGE
- FARGATE_USAGE
- FUNCTIONS_USAGE
- INDEXED_LOGS_USAGE
- INFRA_HOST_USAGE
- INVOCATIONS_USAGE
- NPM_HOST_USAGE
- PROFILED_CONTAINER_USAGE
- PROFILED_HOST_USAGE
- SNMP_USAGE
HourlyUsageAttributionUsageType:
description: Supported products for hourly usage attribution requests.
enum:
- api
- apm_host
- browser
- container
- custom_timeseries
- fargate
- functions
- indexed_logs
- infra_host
- invocations
- npm_host
- profiled_container
- profiled_host
- snmp
type: string
x-enum-varnames:
- API
- APM_HOST
- BROWSER
- CONTAINER
- CUSTOM_TIMESERIES
- FARGATE
- FUNCTIONS
- INDEXED_LOGS
- INFRA_HOST
- INVOCATIONS
- NPM_HOST
- PROFILED_CONTAINER
- PROFILED_HOST
- SNMP
IFrameWidgetDefinition:
description: The iframe widget allows you to embed a portion of any other web
page on your dashboard. Only available on FREE layout dashboards.
Expand Down Expand Up @@ -24077,7 +24199,7 @@ paths:
summary: Get hourly usage for audit logs
tags:
- Usage Metering
x-menu-order: 31
x-menu-order: 32
x-undo:
type: safe
/api/v1/usage/aws_lambda:
Expand Down Expand Up @@ -24225,7 +24347,7 @@ paths:
summary: Get hourly usage for CSPM
tags:
- Usage Metering
x-menu-order: 30
x-menu-order: 31
x-undo:
type: safe
/api/v1/usage/cws:
Expand Down Expand Up @@ -24280,7 +24402,7 @@ paths:
summary: Get hourly usage for Cloud Workload Security
tags:
- Usage Metering
x-menu-order: 32
x-menu-order: 33
x-undo:
type: safe
/api/v1/usage/dbm:
Expand Down Expand Up @@ -24330,7 +24452,7 @@ paths:
summary: Get hourly usage for Database Monitoring
tags:
- Usage Metering
x-menu-order: 33
x-menu-order: 34
x-undo:
type: safe
/api/v1/usage/fargate:
Expand Down Expand Up @@ -24439,6 +24561,77 @@ paths:
x-menu-order: 1
x-undo:
type: safe
/api/v1/usage/hourly-attribution:
get:
description: Get Hourly Usage Attribution.
operationId: GetHourlyUsageAttribution
parameters:
- description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
for usage beginning at this hour.'
in: query
name: start_hr
required: true
schema:
format: date-time
type: string
- description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
for usage ending

**before** this hour.'
in: query
name: end_hr
required: false
schema:
format: date-time
type: string
- description: Usage type to retrieve.
in: query
name: usage_type
required: true
schema:
$ref: '#/components/schemas/HourlyUsageAttributionUsageType'
- description: List following results with a next_record_id provided in the
previous query.
in: query
name: next_record_id
required: false
schema:
type: string
- description: Comma separated list of tags used to group usage.
in: query
name: tag_breakdown_keys
required: false
schema:
type: string
responses:
'200':
content:
application/json;datetime-format=rfc3339:
schema:
$ref: '#/components/schemas/HourlyUsageAttributionResponse'
description: OK
'403':
content:
application/json;datetime-format=rfc3339:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden - User is not authorized
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- usage_read
summary: Get Hourly Usage Attribution
tags:
- Usage Metering
x-menu-order: 30
x-undo:
type: safe
x-unstable: '**Note**: This endpoint is in public beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v1/usage/incident-management:
get:
description: Get hourly usage for incident management.
Expand Down Expand Up @@ -25034,7 +25227,7 @@ paths:
summary: Get hourly usage for RUM Units
tags:
- Usage Metering
x-menu-order: 35
x-menu-order: 36
x-undo:
type: safe
/api/v1/usage/rum_sessions:
Expand Down Expand Up @@ -25144,7 +25337,7 @@ paths:
summary: Get hourly usage for Sensitive Data Scanner
tags:
- Usage Metering
x-menu-order: 34
x-menu-order: 35
x-undo:
type: safe
/api/v1/usage/snmp:
Expand Down
21 changes: 21 additions & 0 deletions api_docs/v1/HourlyUsageAttributionBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


# HourlyUsageAttributionBody

The usage for one set of tags for one hour.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hour** | **OffsetDateTime** | The hour for the usage. | [optional]
**orgName** | **String** | The name of the organization. | [optional]
**publicId** | **String** | The organization public ID. | [optional]
**tagConfigSource** | **String** | The source of the usage attribution tag configuration and the selected tags in the format of &#x60;&lt;source_org_name&gt;:::&lt;selected tag 1&gt;///&lt;selected tag 2&gt;///&lt;selected tag 3&gt;&#x60;. | [optional]
**tags** | **Map&lt;String, List&lt;String&gt;&gt;** | Usage Summary by tag name. | [optional]
**totalUsageSum** | **Double** | Total product usage for the given tags within the hour. | [optional]
**updatedAt** | **String** | Shows the most recent hour in the current month for all organizations where usages are calculated. | [optional]
**usageType** | **HourlyUsageAttributionResponseUsageType** | | [optional]



14 changes: 14 additions & 0 deletions api_docs/v1/HourlyUsageAttributionMetadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# HourlyUsageAttributionMetadata

The object containing document metadata.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**pagination** | [**HourlyUsageAttributionPagination**](HourlyUsageAttributionPagination.md) | | [optional]



14 changes: 14 additions & 0 deletions api_docs/v1/HourlyUsageAttributionPagination.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# HourlyUsageAttributionPagination

The metadata for the current pagination.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**nextRecordId** | **String** | The cursor to get the next results (if any). To make the next request, use the same parameters and add &#x60;next_record_id&#x60;. | [optional]



15 changes: 15 additions & 0 deletions api_docs/v1/HourlyUsageAttributionResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


# HourlyUsageAttributionResponse

Response containing the hourly usage attribution by tag(s).

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metadata** | [**HourlyUsageAttributionMetadata**](HourlyUsageAttributionMetadata.md) | | [optional]
**usage** | [**List&lt;HourlyUsageAttributionBody&gt;**](HourlyUsageAttributionBody.md) | Get the hourly usage attribution by tag(s). | [optional]



37 changes: 37 additions & 0 deletions api_docs/v1/HourlyUsageAttributionResponseUsageType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@


# HourlyUsageAttributionResponseUsageType

## Enum


* `API_USAGE` (value: `"api_usage"`)

* `APM_HOST_USAGE` (value: `"apm_host_usage"`)

* `BROWSER_USAGE` (value: `"browser_usage"`)

* `CONTAINER_USAGE` (value: `"container_usage"`)

* `CUSTOM_TIMESERIES_USAGE` (value: `"custom_timeseries_usage"`)

* `FARGATE_USAGE` (value: `"fargate_usage"`)

* `FUNCTIONS_USAGE` (value: `"functions_usage"`)

* `INDEXED_LOGS_USAGE` (value: `"indexed_logs_usage"`)

* `INFRA_HOST_USAGE` (value: `"infra_host_usage"`)

* `INVOCATIONS_USAGE` (value: `"invocations_usage"`)

* `NPM_HOST_USAGE` (value: `"npm_host_usage"`)

* `PROFILED_CONTAINER_USAGE` (value: `"profiled_container_usage"`)

* `PROFILED_HOST_USAGE` (value: `"profiled_host_usage"`)

* `SNMP_USAGE` (value: `"snmp_usage"`)



Loading

0 comments on commit 1b87367

Please sign in to comment.