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,
operation_id: Optional[ClusterOperationId] = 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. -
operation_id(Optional[ClusterOperationId], default:None) –The unique identifier (UUID) of a cluster operation for which to filter events. If specified, only events associated with this operation are returned. This ID can be obtained from the
ListClusterOperationsoperation. -
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
19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 | |