Skip to main content

events

Creates, updates, deletes, gets or lists an events resource.

Overview

Nameevents
TypeResource
Idaws.devops_guru.events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_sourcestringThe source, AWS_CLOUD_TRAIL or AWS_CODE_DEPLOY, where DevOps Guru analysis found the event. (AWS_CLOUD_TRAIL, AWS_CODE_DEPLOY)
event_classstringThe class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change. (INFRASTRUCTURE, DEPLOYMENT, SECURITY_CHANGE, CONFIG_CHANGE, SCHEMA_CHANGE)
event_sourcestringThe Amazon Web Services source that emitted the event. (pattern: <code>^[a-z]+[a-z0-9]*.amazonaws.com|aws.events$</code>)
idstringThe ID of the event.
namestringThe name of the event.
resource_collectionobjectA collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
resourcesarrayAn EventResource object that contains information about the resource that emitted the event.
timestring (date-time)A Timestamp that specifies the time the event occurred.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_eventsselectregionReturns a list of the events emitted by the resources that are evaluated by DevOps Guru. You can use filters to specify which events are returned.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of the events emitted by the resources that are evaluated by DevOps Guru. You can use filters to specify which events are returned.

SELECT
data_source,
event_class,
event_source,
id,
name,
resource_collection,
resources,
time
FROM aws.devops_guru.events
WHERE region = '{{ region }}' -- required
;