getAttributesByScope method

Future<List<AttributeKvEntry>> getAttributesByScope(
  1. EntityId entityId,
  2. String scope,
  3. List<String> keys, {
  4. RequestConfig? requestConfig,
})

Implementation

Future<List<AttributeKvEntry>> getAttributesByScope(
    EntityId entityId, String scope, List<String> keys,
    {RequestConfig? requestConfig}) async {
  var response = await _tbClient.get<List<dynamic>>(
      '/api/plugins/telemetry/${entityId.entityType.toShortString()}/${entityId.id}/values/attributes/$scope',
      queryParameters: {'keys': keys.join(',')},
      options: defaultHttpOptionsFromConfig(requestConfig));
  return RestJsonConverter.toAttributes(response.data);
}