describe_events
¶
describe_events(
*,
config_overrides: Optional[ElastiCacheClientConfig] = 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.
>>> 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/elasti_cache.py
3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 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 | |