describe_events
¶
describe_events(
*,
config_overrides: Optional[NeptuneClientConfig] = 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/neptune.py
3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 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 | |