createVisualizationMetric
This page contains
Arguments
| input CreateVisualizationMetricInput! | Input sent to the createVisualizationMetric mutation | 
CreateVisualizationMetricInput fields
| name String! | The human-readable name of the metric | 
| productId ID! | The identifier (uuid) of the product that this metric belongs to | 
| datasetId ID! | The identifier of the dataset that this metric pertains to | 
| revisionId Int! | The dataset revision id that this metric pertains to | 
| filters [VisualizationMetricFilterInput] | The filters that are available for this metric to modify the metric query at runtime | 
| query String! | The SQL query that will be executed when this metric is executed | 
Return Fields
| metric VisualizationMetric | The new metric | 
| userErrors [CreateVisualizationMetricUserError!] | Error details while creating metric | 
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.