Hierarchy

  • RumMetricsApi

Constructors

Properties

configuration: Configuration
requestFactory: RumMetricsApiRequestFactory
responseProcessor: RumMetricsApiResponseProcessor

Methods

  • Create a metric based on your organization's RUM data. The metric name is set in data.id, is unique within your organization, and cannot be changed after creation. The event_type, compute, and uniqueness settings cannot be changed after creation either. Only filter, group_by, and compute.include_percentiles can be changed with UpdateRumMetric. uniqueness is required when event_type is session or view, and must be omitted for any other event type. When aggregation_type is distribution, include_percentiles is required. When it is count, include_percentiles and path must be omitted. Returns the created RUM-based metric when the request is successful. The request returns a 409 Conflict error if a metric with the same name already exists.

    Parameters

    Returns Promise<RumMetricResponse>

  • Update a specific RUM-based metric from your organization. Only filter, group_by, and compute.include_percentiles can be updated. event_type, uniqueness, compute.aggregation_type, compute.path, and the metric name are immutable. To change them, delete the metric and create a new one. Omitted attributes keep their current value. When provided, filter.query replaces the whole filter query (an empty query is ignored) and group_by replaces the whole list of group by rules. data.id is required and must match the metric_id path parameter, otherwise the request returns a 409 Conflict error. The request also returns a 409 Conflict error when compute.include_percentiles is set on a metric whose aggregation_type is not distribution. Returns the updated RUM-based metric when the request is successful.

    Parameters

    Returns Promise<RumMetricResponse>

Generated using TypeDoc