Builder

class Builder

Properties

Link copied to clipboard

Use this field only if you are sending the metric to CloudWatch.

Link copied to clipboard

The pattern that defines the metric, specified as a JSON object. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination.

Link copied to clipboard
var name: String?

The name for the metric that is defined in this structure. For custom metrics, you can specify any name that you like. For extended metrics, valid values are the following:

Link copied to clipboard

If this structure is for a custom metric instead of an extended metrics, use this parameter to define the metric namespace for that custom metric. Do not specify this parameter if this structure is for an extended metric.

Link copied to clipboard

The CloudWatch metric unit to use for this metric. If you omit this field, the metric is recorded with no unit.

Link copied to clipboard

The field within the event object that the metric value is sourced from.