Skip to main content

createPolicy

Creates a new Policy granting an Application access to a Metric's data.

Arguments

  • input required CreatePolicyInput

    The fields for creating a Policy.

    • input.metric required ID

      The Metric to which the Policy will be applied.

    • input.type required PolicyType

      The type of Policy to create.

      The types of Policies that can be applied to a Metric.

      • ALL_ACCESS

        Grants access to all Metric data.

      • TENANT_ACCESS

        Grants access to a specified tenant's Metric data.

    • input.application required ID

      The Application that will be granted access to the Metric.


Returns

Nullable PolicyResponse

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