Skip to content

Commit

Permalink
Merge branch 'master' into datadog-api-spec/test/hzhang/user-invitati…
Browse files Browse the repository at this point in the history
…on-test-uuid
  • Loading branch information
HantingZhang2 committed Oct 26, 2023
2 parents bae4ccb + fc66538 commit 2135adb
Show file tree
Hide file tree
Showing 52 changed files with 1,264 additions and 135 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.6",
"regenerated": "2023-10-25 09:00:22.540949",
"spec_repo_commit": "9ebdefa4"
"regenerated": "2023-10-26 14:19:42.869700",
"spec_repo_commit": "10504fc3"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-25 09:00:22.569393",
"spec_repo_commit": "9ebdefa4"
"regenerated": "2023-10-26 14:19:42.888260",
"spec_repo_commit": "10504fc3"
}
}
}
262 changes: 253 additions & 9 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ components:
type: string
account_id:
description: Your AWS Account ID without dashes.
example: '1234567'
example: '123456789012'
type: string
account_specific_namespace_rules:
additionalProperties:
Expand All @@ -80,7 +80,9 @@ components:
example: true
type: boolean
excluded_regions:
description: An array of AWS regions to exclude from metrics collection.
description: 'An array of [AWS regions](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints)

to exclude from metrics collection.'
example:
- us-east-1
- us-west-2
Expand Down Expand Up @@ -116,7 +118,7 @@ components:
example:
- $KEY:$VALUE
items:
description: The list of the the host_tags.
description: The list of the host_tags.
type: string
type: array
metrics_collection_enabled:
Expand Down Expand Up @@ -171,7 +173,7 @@ components:
type: string
account_id:
description: Your AWS Account ID without dashes.
example: '1234567'
example: '123456789012'
type: string
role_name:
description: Your Datadog role delegation name.
Expand All @@ -187,6 +189,136 @@ components:
$ref: '#/components/schemas/AWSAccount'
type: array
type: object
AWSEventBridgeAccountConfiguration:
description: The EventBridge configuration for one AWS account.
properties:
accountId:
description: Your AWS Account ID without dashes.
example: '123456789012'
type: string
eventHubs:
description: Array of AWS event sources associated with this account.
items:
$ref: '#/components/schemas/AWSEventBridgeSource'
type: array
tags:
description: 'Array of tags (in the form `key:value`) which are added to
all hosts

and metrics reporting through the main AWS integration.'
example:
- $KEY:$VALUE
items:
description: The list of the host_tags.
type: string
type: array
type: object
AWSEventBridgeCreateRequest:
description: An object used to create an EventBridge source.
properties:
account_id:
description: Your AWS Account ID without dashes.
example: '123456789012'
type: string
create_event_bus:
description: 'True if Datadog should create the event bus in addition to
the event

source. Requires the `events:CreateEventBus` permission.'
example: true
type: boolean
event_generator_name:
description: 'The given part of the event source name, which is then combined
with an

assigned suffix to form the full name.'
example: app-alerts
type: string
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
example: us-east-1
type: string
type: object
AWSEventBridgeCreateResponse:
description: A created EventBridge source.
properties:
event_source_name:
description: The event source name.
example: app-alerts-zyxw3210
type: string
has_bus:
description: True if the event bus was created in addition to the source.
example: true
type: boolean
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
example: us-east-1
type: string
status:
$ref: '#/components/schemas/AWSEventBridgeCreateStatus'
type: object
AWSEventBridgeCreateStatus:
description: The event source status "created".
enum:
- created
example: created
type: string
x-enum-varnames:
- CREATED
AWSEventBridgeDeleteRequest:
description: An object used to delete an EventBridge source.
properties:
account_id:
description: Your AWS Account ID without dashes.
example: '123456789012'
type: string
event_generator_name:
description: The event source name.
example: app-alerts-zyxw3210
type: string
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
example: us-east-1
type: string
type: object
AWSEventBridgeDeleteResponse:
description: An indicator of the successful deletion of an EventBridge source.
properties:
status:
$ref: '#/components/schemas/AWSEventBridgeDeleteStatus'
type: object
AWSEventBridgeDeleteStatus:
description: The event source status "empty".
enum:
- empty
example: empty
type: string
x-enum-varnames:
- EMPTY
AWSEventBridgeListResponse:
description: An object describing the EventBridge configuration for multiple
accounts.
properties:
accounts:
description: List of accounts with their event sources.
items:
$ref: '#/components/schemas/AWSEventBridgeAccountConfiguration'
type: array
isInstalled:
description: True if the EventBridge sub-integration is enabled for your
organization.
type: boolean
type: object
AWSEventBridgeSource:
description: An EventBridge source.
properties:
name:
description: The event source name.
type: string
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
type: string
type: object
AWSLogsAsyncError:
description: Description of errors.
properties:
Expand Down Expand Up @@ -323,7 +455,7 @@ components:
properties:
account_id:
description: Your AWS Account ID without dashes.
example: '1234567'
example: '123456789012'
type: string
namespace:
$ref: '#/components/schemas/AWSNamespace'
Expand Down Expand Up @@ -23392,6 +23524,111 @@ paths:
summary: List namespace rules
tags:
- AWS Integration
/api/v1/integration/aws/event_bridge:
delete:
description: Delete an Amazon EventBridge source.
operationId: DeleteAWSEventBridgeSource
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeDeleteRequest'
description: Delete the Amazon EventBridge source with the given name, region,
and associated AWS account.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeDeleteResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Authentication Error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Delete an Amazon EventBridge source
tags:
- AWS Integration
x-codegen-request-body-name: body
get:
description: Get all Amazon EventBridge sources.
operationId: ListAWSEventBridgeSources
parameters: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeListResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Authentication Error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Get all Amazon EventBridge sources
tags:
- AWS Integration
post:
description: Create an Amazon EventBridge source.
operationId: CreateAWSEventBridgeSource
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeCreateRequest'
description: Create an Amazon EventBridge source for an AWS account with a
given name and region.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeCreateResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Authentication Error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Create an Amazon EventBridge source
tags:
- AWS Integration
x-codegen-request-body-name: body
/api/v1/integration/aws/filtering:
delete:
description: Delete a tag filtering entry.
Expand Down Expand Up @@ -25670,9 +25907,13 @@ paths:
- database-monitoring: `database-monitoring alert`


**Note**: Synthetic monitors are created through the Synthetics API. See the
[Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation
for more information.
**Notes**:

- Synthetic monitors are created through the Synthetics API. See the [Synthetics
API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation for
more information.

- Log monitors require an unscoped App Key.


#### Query Types
Expand Down Expand Up @@ -26257,7 +26498,10 @@ paths:
- Monitors
/api/v1/monitor/validate:
post:
description: Validate the monitor provided in the request.
description: 'Validate the monitor provided in the request.


**Note**: Log monitors require an unscoped App Key.'
operationId: ValidateMonitor
requestBody:
content:
Expand Down
38 changes: 38 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11170,6 +11170,8 @@ components:
$ref: '#/components/schemas/PowerpackGroupWidgetDefinition'
layout:
$ref: '#/components/schemas/PowerpackGroupWidgetLayout'
live_span:
$ref: '#/components/schemas/WidgetLiveSpan'
required:
- definition
type: object
Expand Down Expand Up @@ -18581,6 +18583,42 @@ components:
type: string
x-enum-varnames:
- USERS
WidgetLiveSpan:
description: The available timeframes depend on the widget you are using.
enum:
- 1m
- 5m
- 10m
- 15m
- 30m
- 1h
- 4h
- 1d
- 2d
- 1w
- 1mo
- 3mo
- 6mo
- 1y
- alert
example: 5m
type: string
x-enum-varnames:
- PAST_ONE_MINUTE
- PAST_FIVE_MINUTES
- PAST_TEN_MINUTES
- PAST_FIFTEEN_MINUTES
- PAST_THIRTY_MINUTES
- PAST_ONE_HOUR
- PAST_FOUR_HOURS
- PAST_ONE_DAY
- PAST_TWO_DAYS
- PAST_ONE_WEEK
- PAST_ONE_MONTH
- PAST_THREE_MONTHS
- PAST_SIX_MONTHS
- PAST_ONE_YEAR
- ALERT
securitySchemes:
AuthZ:
description: This API uses OAuth 2 with the implicit grant flow.
Expand Down
Loading

0 comments on commit 2135adb

Please sign in to comment.