Skip to main content

createSumMetric

This mutation creates a new Sum Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

A Metric is a business indicator measured over time. A Sum Metric returns the sum of the values found in the underlying data over a specific time period.

Arguments

  • input optional CreateSumMetricInput

    The fields for creating a new Sum Metric.

    • input.dataPool required ID

      The Data Pool that powers this Metric.

    • input.uniqueName optional String

      The Metric's unique name. If not specified, Propel will set the ID as unique name.

    • input.description optional String

      The Metric's description.

    • input.filters optional array of FilterInput

      The Metric's Filters. Metric Filters allow defining a Metric with a subset of records from the given Data Pool. If no Filters are present, all records will be included.

    • input.dimensions optional array of DimensionInput

      The Metric's Dimensions. Dimensions define the columns that will be available to filter the Metric at query time.

    • input.measure required DimensionInput

      The column to be summed.


Returns

Nullable MetricResponse

The result of a mutation which creates or modifies a Metric.