List metrics in definition

GET {{baseUrl}}/api/-/pulse/definitions/:definition_id/metrics?page_size=<integer>&page_token=<string>&enable_sorting=<boolean>&order_by=<string>&filter=<string>

Lists the metrics contained in a metric definition.

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

Permissions: Can be called by any user, but only returns definitions and metrics that the user has permissions to view. Permissions Overview

License: No additional license required.

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

Request Params

KeyDatatypeRequiredDescription
page_sizestringSpecifies the number of results in a paged response.

Example:

> GET .../subscriptions?pageSize=50

Combining Path Parameters: A page_size expression can be combined with other path parameters using an ampersand (&) as a separator, and is typically used along with a page number expression.

<a href='https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_paging.htm&#39; target='_blank'>Learn more about paginating the response</a>. | | page_token | string | | Specifies the page of items to be returned from a requested list. The value of page_token for the next page of returns is found in the next_page_token of the current response. If there are no further items to return, the value of next_page_token will be empty.

Example:

> GET .../definitions?pageToken={next_page_value}

Combining Path Parameters: A page_token expression can be combined with other path parameters using an ampersand (&) as a separator, and is typically used along with a page number expression.

<a href='https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_paging.htm&#39; target='_blank'>Learn more about paginating the response</a>. | | enable_sorting | string | | | | order_by | string | | | | filter | string | | |

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_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_UNSPECIFIED&quot;,&quot;range&quot;:&quot;RANGE_UNSPECIFIED&quot;},&quot;comparison&quot;:{&quot;comparison&quot;:&quot;TIME_COMPARISON_PREVIOUS_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;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_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;measurement_period&quot;:{&quot;granularity&quot;:&quot;GRANULARITY_BY_WEEK&quot;,&quot;range&quot;:&quot;RANGE_UNSPECIFIED&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;next_page_token&quot;:&quot;\u003cstring\u003e&quot;,&quot;total_available&quot;:&quot;\u003cinteger\u003e&quot;,&quot;offset&quot;:&quot;\u003cinteger\u003e&quot;}