putTelemetryRecords method
Used by the Amazon Web Services X-Ray daemon to upload telemetry.
May throw InvalidRequestException.
May throw ThrottledException.
Parameter telemetryRecords :
Parameter eC2InstanceId :
Parameter hostname :
Parameter resourceARN :
Implementation
Future<void> putTelemetryRecords({
required List<TelemetryRecord> telemetryRecords,
String? eC2InstanceId,
String? hostname,
String? resourceARN,
}) async {
final $payload = <String, dynamic>{
'TelemetryRecords': telemetryRecords,
if (eC2InstanceId != null) 'EC2InstanceId': eC2InstanceId,
if (hostname != null) 'Hostname': hostname,
if (resourceARN != null) 'ResourceARN': resourceARN,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/TelemetryRecords',
exceptionFnMap: _exceptionFns,
);
}