SagemakerEdgeManager.Client.
send_heartbeat
(**kwargs)¶Use to get the current status of devices registered on SageMaker Edge Manager.
See also: AWS API Documentation
Request Syntax
response = client.send_heartbeat(
AgentMetrics=[
{
'Dimension': 'string',
'MetricName': 'string',
'Value': 123.0,
'Timestamp': datetime(2015, 1, 1)
},
],
Models=[
{
'ModelName': 'string',
'ModelVersion': 'string',
'LatestSampleTime': datetime(2015, 1, 1),
'LatestInference': datetime(2015, 1, 1),
'ModelMetrics': [
{
'Dimension': 'string',
'MetricName': 'string',
'Value': 123.0,
'Timestamp': datetime(2015, 1, 1)
},
]
},
],
AgentVersion='string',
DeviceName='string',
DeviceFleetName='string',
DeploymentResult={
'DeploymentName': 'string',
'DeploymentStatus': 'string',
'DeploymentStatusMessage': 'string',
'DeploymentStartTime': datetime(2015, 1, 1),
'DeploymentEndTime': datetime(2015, 1, 1),
'DeploymentModels': [
{
'ModelHandle': 'string',
'ModelName': 'string',
'ModelVersion': 'string',
'DesiredState': 'DEPLOY'|'UNDEPLOY',
'State': 'DEPLOY'|'UNDEPLOY',
'Status': 'SUCCESS'|'FAIL',
'StatusReason': 'string',
'RollbackFailureReason': 'string'
},
]
}
)
For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.
Information required for edge device metrics.
The dimension of metrics published.
Returns the name of the metric.
Returns the value of the metric.
Timestamp of when the metric was requested.
Returns a list of models deployed on the the device.
Information about a model deployed on an edge device that is registered with SageMaker Edge Manager.
The name of the model.
The version of the model.
The timestamp of the last data sample taken.
The timestamp of the last inference that was made.
Information required for model metrics.
Information required for edge device metrics.
The dimension of metrics published.
Returns the name of the metric.
Returns the value of the metric.
Timestamp of when the metric was requested.
[REQUIRED]
Returns the version of the agent.
[REQUIRED]
The unique name of the device.
[REQUIRED]
The name of the fleet that the device belongs to.
Returns the result of a deployment on the device.
The name and unique ID of the deployment.
Returns the bucket error code.
Returns the detailed error message.
The timestamp of when the deployment was started on the agent.
The timestamp of when the deployment was ended, and the agent got the deployment results.
Returns a list of models deployed on the agent.
The unique handle of the model.
The name of the model.
The version of the model.
The desired state of the model.
Returns the current state of the model.
Returns the deployment status of the model.
Returns the error message for the deployment status result.
Returns the error message if there is a rollback.
None
Exceptions
SagemakerEdgeManager.Client.exceptions.InternalServiceException