list_cluster_events
async
¶
list_cluster_events(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
cluster_name: Optional[ClusterNameOrArn] = None,
instance_group_name: Optional[ClusterInstanceGroupName] = None,
node_id: Optional[ClusterNodeId] = None,
event_time_after: Optional[Timestamp] = None,
event_time_before: Optional[Timestamp] = None,
sort_by: Optional[EventSortBy] = None,
sort_order: Optional[SortOrder] = None,
resource_type: Optional[ClusterEventResourceType] = None,
max_results: Optional[ClusterEventMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListClusterEventsResponse
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 NodeProvisioningMode is set to Continuous.
Parameters:
-
cluster_name(Optional[ClusterNameOrArn], default:None) –The name or Amazon Resource Name (ARN) of the HyperPod cluster for which to list events.
-
instance_group_name(Optional[ClusterInstanceGroupName], default:None) –The name of the instance group to filter events. If specified, only events related to this instance group are returned.
-
node_id(Optional[ClusterNodeId], default:None) –The EC2 instance ID to filter events. If specified, only events related to this instance are returned.
-
event_time_after(Optional[Timestamp], default:None) –The start of the time range for filtering events. Only events that occurred after this time are included in the results.
-
event_time_before(Optional[Timestamp], default:None) –The end of the time range for filtering events. Only events that occurred before this time are included in the results.
-
sort_by(Optional[EventSortBy], default:None) –The field to use for sorting the event list. Currently, the only supported value is
EventTime. -
sort_order(Optional[SortOrder], default:None) –The order in which to sort the results. Valid values are
AscendingorDescending(the default isDescending). -
resource_type(Optional[ClusterEventResourceType], default:None) –The type of resource for which to filter events. Valid values are
Cluster,InstanceGroup, orInstance. -
max_results(Optional[ClusterEventMaxResults], default:None) –The maximum number of events to return in the response. Valid range is 1 to 100.
-
next_token(Optional[NextToken], default:None) –A token to retrieve the next set of results. This token is obtained from the output of a previous
ListClusterEventscall.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 | |