list_cluster_events
¶
list_cluster_events(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 | |