Batch list metrics

GET {{baseUrl}}/api/-/pulse/metrics:batchGet?enable_sorting=<boolean>&metric_ids=<string>

Gets a batch of metrics from a definition, specified in a comma delimited list.

Version: Available in API 3.21 (Tableau Cloud December 2023) and later. Not available for Tableau Server. Versioning Overview

Permissions: Any user can get a batch of metrics as long as the user has read or connect access to the data source used in the definition that contains them. Permissions Overview

License: No additional license required.

Access Scope: tableau:insight_metrics:read
Access Scopes Overview: Cloud

Request Params

KeyDatatypeRequiredDescription
enable_sortingstring(Required) If true, the metrics will be sorted by the metric name. If false, the metrics will be returned in the order they were requested.
metric_idsstring(Required) The metrics to get, formatted as a comma separated list of LUIDs.

HEADERS

KeyDatatypeRequiredDescription
X-Tableau-AuthstringThe Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request.
The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource.
Acceptstring

RESPONSES

status: OK

{&quot;metrics&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;specification&quot;:{&quot;filters&quot;:[{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;operator&quot;:&quot;OPERATOR_UNSPECIFIED&quot;,&quot;categorical_values&quot;:[{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;}]},{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;operator&quot;:&quot;OPERATOR_UNSPECIFIED&quot;,&quot;categorical_values&quot;:[{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;}]}],&quot;measurement_period&quot;:{&quot;granularity&quot;:&quot;GRANULARITY_BY_QUARTER&quot;,&quot;range&quot;:&quot;RANGE_CURRENT_PARTIAL&quot;},&quot;comparison&quot;:{&quot;comparison&quot;:&quot;TIME_COMPARISON_UNSPECIFIED&quot;}},&quot;definition_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_default&quot;:&quot;\u003cboolean\u003e&quot;,&quot;schema_version&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;specification&quot;:{&quot;filters&quot;:[{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;operator&quot;:&quot;OPERATOR_NOT_EQUAL&quot;,&quot;categorical_values&quot;:[{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;}]},{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;operator&quot;:&quot;OPERATOR_UNSPECIFIED&quot;,&quot;categorical_values&quot;:[{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;string_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;bool_value&quot;:&quot;\u003cboolean\u003e&quot;,&quot;null_value&quot;:&quot;\u003cstring\u003e&quot;}]}],&quot;measurement_period&quot;:{&quot;granularity&quot;:&quot;GRANULARITY_BY_DAY&quot;,&quot;range&quot;:&quot;RANGE_CURRENT_PARTIAL&quot;},&quot;comparison&quot;:{&quot;comparison&quot;:&quot;TIME_COMPARISON_YEAR_AGO_PERIOD&quot;}},&quot;definition_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_default&quot;:&quot;\u003cboolean\u003e&quot;,&quot;schema_version&quot;:&quot;\u003cstring\u003e&quot;}],&quot;errors&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;error&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;error&quot;:&quot;\u003cstring\u003e&quot;}]}