MetricDimensionBuilder
Declares a Dimension that Metrics can be broken down by.
Remarks
Section titled “Remarks”Dimension values are Items of the subject Templates or Unions. Attach the Dimension to a Metric with MetricBuilder.addDimension together with a handler that resolves the value for each Event.
Extends
Section titled “Extends”Properties
Section titled “Properties”key:
string
Dimension key within its App.
readonlyprn:string
Platform Resource Name of the declared resource, derived from the App key and resource key.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”addSubject()
Section titled “addSubject()”addSubject(
subject):this
Adds a Template or Union whose Items are values of this Dimension.
Parameters
Section titled “Parameters”subject
Section titled “subject”TemplateBuilder | UnionBuilder
Template or Union to add.
Returns
Section titled “Returns”this
This builder for chaining.
Remarks
Section titled “Remarks”A country Template, for example, makes each country Item in the Workspace a Dimension value.
setDescription()
Section titled “setDescription()”setDescription(
description):this
Sets the description emitted into the definition and rendered in generated reference and application assets.
Parameters
Section titled “Parameters”description
Section titled “description”string
Human-readable description of the resource.
Returns
Section titled “Returns”this
This builder for chaining.
Inherited from
Section titled “Inherited from”toDefinition()
Section titled “toDefinition()”toDefinition():
MetricDimensionDefinition
Emits the Definition of this Dimension.

