putTelemetryRecords method
Future<void>
putTelemetryRecords({
- required List<
TelemetryRecord> telemetryRecords, - String? eC2InstanceId,
- String? hostname,
- String? resourceARN,
Used by the AWS 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 {
ArgumentError.checkNotNull(telemetryRecords, 'telemetryRecords');
_s.validateStringLength(
'eC2InstanceId',
eC2InstanceId,
0,
20,
);
_s.validateStringLength(
'hostname',
hostname,
0,
255,
);
_s.validateStringLength(
'resourceARN',
resourceARN,
0,
500,
);
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,
);
}