@@ -3951,6 +3951,241 @@ components:
39513951 format: int64
39523952 type: integer
39533953 type: object
3954+ ChangeEvent:
3955+ description: Event attributes.
3956+ properties:
3957+ aggregation_key:
3958+ description: 'An arbitrary string to use for aggregation. Limited to 100
3959+ characters.
3960+
3961+ If you specify a key, all events using that key are grouped together in
3962+ the Event Stream.'
3963+ maxLength: 100
3964+ type: string
3965+ attributes:
3966+ $ref: '#/components/schemas/ChangeEventCustomAttributes'
3967+ category:
3968+ $ref: '#/components/schemas/ChangeEventCategory'
3969+ message:
3970+ description: The body of the event. Limited to 4000 characters.
3971+ example: payment_processed feature flag has been enabled
3972+ maxLength: 4000
3973+ type: string
3974+ tags:
3975+ description: 'A list of tags to apply to the event.
3976+
3977+ Refer to [Tags docs](https://docs.datadoghq.com/getting_started/tagging/).'
3978+ example:
3979+ - environment:test
3980+ items:
3981+ description: A tag.
3982+ type: string
3983+ type: array
3984+ timestamp:
3985+ description: 'Timestamp in which the event occurred. Must follow [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)
3986+ format.
3987+
3988+ For example `"2017-01-15T01:30:15.010000Z"`.
3989+
3990+ Defaults to now. Limited to values no older than 18 hours.'
3991+ type: string
3992+ title:
3993+ description: The event title. Limited to 500 characters.
3994+ example: payment_processed feature flag updated
3995+ maxLength: 500
3996+ type: string
3997+ required:
3998+ - title
3999+ - category
4000+ - attributes
4001+ type: object
4002+ ChangeEventCategory:
4003+ description: Event category to identify the type of event. Only the value `change`
4004+ is supported.
4005+ enum:
4006+ - change
4007+ example: change
4008+ type: string
4009+ x-enum-varnames:
4010+ - CHANGE
4011+ ChangeEventCreateRequest:
4012+ description: Object representing an event.
4013+ properties:
4014+ attributes:
4015+ $ref: '#/components/schemas/ChangeEvent'
4016+ type:
4017+ $ref: '#/components/schemas/ChangeEventCreateRequestType'
4018+ type: object
4019+ ChangeEventCreateRequestPayload:
4020+ description: Create an event.
4021+ properties:
4022+ data:
4023+ $ref: '#/components/schemas/ChangeEventCreateRequest'
4024+ type: object
4025+ ChangeEventCreateRequestType:
4026+ description: Entity type.
4027+ enum:
4028+ - event
4029+ example: event
4030+ type: string
4031+ x-enum-varnames:
4032+ - EVENT
4033+ ChangeEventCreateResponse:
4034+ description: Object containing an event response.
4035+ properties:
4036+ attributes:
4037+ $ref: '#/components/schemas/ChangeEventCreateResponseAttributes'
4038+ type:
4039+ description: Event type
4040+ example: event
4041+ type: string
4042+ type: object
4043+ ChangeEventCreateResponseAttributes:
4044+ description: Event response attributes.
4045+ properties:
4046+ attributes:
4047+ $ref: '#/components/schemas/ChangeEventCreateResponseAttributesAttributes'
4048+ type: object
4049+ ChangeEventCreateResponseAttributesAttributes:
4050+ description: The definition of `ChangeEventCreateResponseAttributesAttributes`
4051+ object.
4052+ properties:
4053+ evt:
4054+ $ref: '#/components/schemas/ChangeEventCreateResponseAttributesAttributesEvt'
4055+ type: object
4056+ ChangeEventCreateResponseAttributesAttributesEvt:
4057+ description: The definition of `ChangeEventCreateResponseAttributesAttributesEvt`
4058+ object.
4059+ properties:
4060+ id:
4061+ description: Event id
4062+ type: string
4063+ type: object
4064+ ChangeEventCreateResponsePayload:
4065+ description: Response containing information about created event.
4066+ properties:
4067+ data:
4068+ $ref: '#/components/schemas/ChangeEventCreateResponse'
4069+ type: object
4070+ ChangeEventCustomAttributes:
4071+ description: Object representing custom event attributes.
4072+ properties:
4073+ author:
4074+ $ref: '#/components/schemas/ChangeEventCustomAttributesAuthor'
4075+ change_metadata:
4076+ additionalProperties: {}
4077+ description: Free form object with any related information of the `change`
4078+ event.
4079+ example:
4080+ resource_link: /feature/fallback_payments_test
4081+ user:
4082+ 4083+ name: user_name
4084+ type: object
4085+ changed_resource:
4086+ $ref: '#/components/schemas/ChangeEventCustomAttributesChangedResource'
4087+ impacted_resources:
4088+ description: 'A list of resources impacted by this change. At least one
4089+ resource is required. Only resources
4090+
4091+ of type `service` are supported.'
4092+ example:
4093+ - name: payments_api
4094+ type: service
4095+ items:
4096+ $ref: '#/components/schemas/ChangeEventCustomAttributesImpactedResourcesItems'
4097+ minItems: 1
4098+ type: array
4099+ new_value:
4100+ additionalProperties: {}
4101+ description: Free form object to track new value of the changed resource.
4102+ example:
4103+ enabled: true
4104+ percentage: 50%
4105+ rule:
4106+ datacenter: us1.prod
4107+ type: object
4108+ prev_value:
4109+ additionalProperties: {}
4110+ description: Free form object to track previous value of the changed resource.
4111+ example:
4112+ enabled: true
4113+ percentage: 10%
4114+ rule:
4115+ datacenter: us1.prod
4116+ type: object
4117+ required:
4118+ - changed_resource
4119+ type: object
4120+ ChangeEventCustomAttributesAuthor:
4121+ description: Object representing the entity which made the change. Optional
4122+ field but if provided should include `type` and `name`.
4123+ properties:
4124+ name:
4125+ description: Author's name. Limited to 128 characters.
4126+ example: user_name
4127+ maxLength: 128
4128+ type: string
4129+ type:
4130+ $ref: '#/components/schemas/ChangeEventCustomAttributesAuthorType'
4131+ required:
4132+ - name
4133+ - type
4134+ type: object
4135+ ChangeEventCustomAttributesAuthorType:
4136+ description: Author's type.
4137+ enum:
4138+ - user
4139+ - system
4140+ example: user
4141+ type: string
4142+ x-enum-varnames:
4143+ - USER
4144+ - SYSTEM
4145+ ChangeEventCustomAttributesChangedResource:
4146+ description: Object representing a uniquely identified resource. Only the resource
4147+ type `feature_flag` is supported.
4148+ properties:
4149+ name:
4150+ description: Resource's name.
4151+ example: fallback_payments_test
4152+ type: string
4153+ type:
4154+ $ref: '#/components/schemas/ChangeEventCustomAttributesChangedResourceType'
4155+ required:
4156+ - type
4157+ - name
4158+ type: object
4159+ ChangeEventCustomAttributesChangedResourceType:
4160+ description: Resource's type.
4161+ enum:
4162+ - feature_flag
4163+ example: feature_flag
4164+ type: string
4165+ x-enum-varnames:
4166+ - FEATURE_FLAG
4167+ ChangeEventCustomAttributesImpactedResourcesItems:
4168+ description: Object representing a uniquely identified resource. Only the resource
4169+ type `service` is supported.
4170+ properties:
4171+ name:
4172+ description: Resource's name.
4173+ example: payments_api
4174+ type: string
4175+ type:
4176+ $ref: '#/components/schemas/ChangeEventCustomAttributesImpactedResourcesItemsType'
4177+ required:
4178+ - type
4179+ - name
4180+ type: object
4181+ ChangeEventCustomAttributesImpactedResourcesItemsType:
4182+ description: Resource's type.
4183+ enum:
4184+ - service
4185+ example: service
4186+ type: string
4187+ x-enum-varnames:
4188+ - SERVICE
39544189 ChargebackBreakdown:
39554190 description: Charges breakdown.
39564191 properties:
@@ -29664,6 +29899,47 @@ paths:
2966429899 operator: OR
2966529900 permissions:
2966629901 - events_read
29902+ post:
29903+ description: This endpoint allows you to post events. Only events with `change`
29904+ category are supported.
29905+ operationId: CreateEvent
29906+ requestBody:
29907+ content:
29908+ application/json:
29909+ schema:
29910+ $ref: '#/components/schemas/ChangeEventCreateRequestPayload'
29911+ description: Event request object
29912+ required: true
29913+ responses:
29914+ '200':
29915+ content:
29916+ application/json:
29917+ schema:
29918+ $ref: '#/components/schemas/ChangeEventCreateResponsePayload'
29919+ description: OK
29920+ '400':
29921+ content:
29922+ application/json:
29923+ schema:
29924+ $ref: '#/components/schemas/JSONAPIErrorResponse'
29925+ description: Bad request
29926+ '403':
29927+ content:
29928+ application/json:
29929+ schema:
29930+ $ref: '#/components/schemas/JSONAPIErrorResponse'
29931+ description: Forbidden
29932+ '429':
29933+ $ref: '#/components/responses/TooManyRequestsResponse'
29934+ security:
29935+ - apiKeyAuth: []
29936+ summary: Post a change event
29937+ tags:
29938+ - Events
29939+ x-codegen-request-body-name: body
29940+ x-unstable: '**Note**: This endpoint is in **Preview**.
29941+
29942+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2966729943 /api/v2/events/search:
2966829944 post:
2966929945 description: 'List endpoint returns events that match an events search query.
0 commit comments