describe_events
async
¶
describe_events(
*,
config_overrides: Optional[AsyncNeptuneClientConfig] = None,
source_identifier: Optional[String] = None,
source_type: Optional[SourceType] = None,
start_time: Optional[TStamp] = None,
end_time: Optional[TStamp] = None,
duration: Optional[IntegerOptional] = None,
event_categories: Optional[EventCategoriesList] = None,
filters: Optional[FilterList] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> EventsMessage
Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.
Parameters:
-
source_identifier(Optional[String], default:None) –The identifier of the event source for which events are returned. If not specified, then all sources are included in the response.
Constraints:
-
If SourceIdentifier is supplied, SourceType must also be provided.
-
If the source type is
DBInstance, then aDBInstanceIdentifiermust be supplied. -
If the source type is
DBSecurityGroup, aDBSecurityGroupNamemust be supplied. -
If the source type is
DBParameterGroup, aDBParameterGroupNamemust be supplied. -
If the source type is
DBSnapshot, aDBSnapshotIdentifiermust be supplied. -
Cannot end with a hyphen or contain two consecutive hyphens.
-
-
source_type(Optional[SourceType], default:None) –The event source to retrieve events for. If no value is specified, all events are returned.
-
start_time(Optional[TStamp], default:None) –The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.
Example: 2009-07-08T18:00Z
-
end_time(Optional[TStamp], default:None) –The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.
Example: 2009-07-08T18:00Z
-
duration(Optional[IntegerOptional], default:None) –The number of minutes to retrieve events for.
Default: 60
-
event_categories(Optional[EventCategoriesList], default:None) –A list of event categories that trigger notifications for a event notification subscription.
-
filters(Optional[FilterList], default:None) –This parameter is not currently supported.
-
max_records(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified
MaxRecordsvalue, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
-
marker(Optional[String], default:None) –An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune/_services/async_neptune.py
3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 | |