describe_events
async
¶
describe_events(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = 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,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> EventsMessage
Returns events related to clusters, cache security groups, and cache parameter groups. You can obtain events specific to a particular cluster, cache security group, or cache parameter group by providing the name as a parameter.
By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days' worth of events if necessary.
Parameters:
-
source_identifier(Optional[String], default:None) –The identifier of the event source for which events are returned. If not specified, all sources are included in the response.
-
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.
Example: 2017-03-30T07:03:49.555Z
-
end_time(Optional[TStamp], default:None) –The end of the time interval for which to retrieve events, specified in ISO 8601 format.
Example: 2017-03-30T07:03:49.555Z
-
duration(Optional[IntegerOptional], default:None) –The number of minutes worth of events to retrieve.
-
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 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 marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords.
Raises:
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
DescribeEvents Describes all the cache-cluster events for the past 120 minutes.
>>> await client.describe_events(source_type='cache-cluster', duration=360)
DescribeEvents
Describes all the replication-group events from 3:00P to 5:00P on November 11, 2016.
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 | |