updateAgentStatus method
Update the status of the agent.
May throw DependencyException.
May throw InvalidParameterException.
May throw ResourceNotFoundException.
Parameter agentId :
UUID of agent to update.
Parameter aggregateStatus :
Aggregate status for agent.
Parameter componentStatuses :
List of component statuses for agent.
Parameter taskId :
GUID of agent task.
Implementation
Future<UpdateAgentStatusResponse> updateAgentStatus({
required String agentId,
required AggregateStatus aggregateStatus,
required List<ComponentStatusData> componentStatuses,
required String taskId,
}) async {
final $payload = <String, dynamic>{
'aggregateStatus': aggregateStatus,
'componentStatuses': componentStatuses,
'taskId': taskId,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/agent/${Uri.encodeComponent(agentId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateAgentStatusResponse.fromJson(response);
}