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,
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/sage_maker.py
19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 | |