SageMaker / Client / list_cluster_events
list_cluster_events¶
- SageMaker.Client.list_cluster_events(**kwargs)¶
- Retrieves a list of event summaries for a specified HyperPod cluster. The operation supports filtering, sorting, and pagination of results. This functionality is only supported when the - NodeProvisioningModeis set to- Continuous.- See also: AWS API Documentation - Request Syntax- response = client.list_cluster_events( ClusterName='string', InstanceGroupName='string', NodeId='string', EventTimeAfter=datetime(2015, 1, 1), EventTimeBefore=datetime(2015, 1, 1), SortBy='EventTime', SortOrder='Ascending'|'Descending', ResourceType='Cluster'|'InstanceGroup'|'Instance', MaxResults=123, NextToken='string' ) - Parameters:
- ClusterName (string) – - [REQUIRED] - The name or Amazon Resource Name (ARN) of the HyperPod cluster for which to list events. 
- InstanceGroupName (string) – The name of the instance group to filter events. If specified, only events related to this instance group are returned. 
- NodeId (string) – The EC2 instance ID to filter events. If specified, only events related to this instance are returned. 
- EventTimeAfter (datetime) – The start of the time range for filtering events. Only events that occurred after this time are included in the results. 
- EventTimeBefore (datetime) – The end of the time range for filtering events. Only events that occurred before this time are included in the results. 
- SortBy (string) – The field to use for sorting the event list. Currently, the only supported value is - EventTime.
- SortOrder (string) – The order in which to sort the results. Valid values are - Ascendingor- Descending(the default is- Descending).
- ResourceType (string) – The type of resource for which to filter events. Valid values are - Cluster,- InstanceGroup, or- Instance.
- MaxResults (integer) – The maximum number of events to return in the response. Valid range is 1 to 100. 
- NextToken (string) – A token to retrieve the next set of results. This token is obtained from the output of a previous - ListClusterEventscall.
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'NextToken': 'string', 'Events': [ { 'EventId': 'string', 'ClusterArn': 'string', 'ClusterName': 'string', 'InstanceGroupName': 'string', 'InstanceId': 'string', 'ResourceType': 'Cluster'|'InstanceGroup'|'Instance', 'EventTime': datetime(2015, 1, 1), 'Description': 'string' }, ] } - Response Structure- (dict) – - NextToken (string) – - A token to retrieve the next set of results. Include this token in subsequent - ListClusterEventscalls to fetch more events.
- Events (list) – - A list of event summaries matching the specified criteria. - (dict) – - A summary of an event in a HyperPod cluster. - EventId (string) – - The unique identifier (UUID) of the event. 
- ClusterArn (string) – - The Amazon Resource Name (ARN) of the HyperPod cluster associated with the event. 
- ClusterName (string) – - The name of the HyperPod cluster associated with the event. 
- InstanceGroupName (string) – - The name of the instance group associated with the event, if applicable. 
- InstanceId (string) – - The Amazon Elastic Compute Cloud (EC2) instance ID associated with the event, if applicable. 
- ResourceType (string) – - The type of resource associated with the event. Valid values are - Cluster,- InstanceGroup, or- Instance.
- EventTime (datetime) – - The timestamp when the event occurred. 
- Description (string) – - A brief, human-readable description of the event. 
 
 
 
 
 - Exceptions- SageMaker.Client.exceptions.ResourceNotFound