Top.Mail.Ru
Dimensions and Measures in YAML
CTRL+K

Dimensions and Measures in YAML

In this article
  • Dimensions and Measures in YAML
  • The value Key
  • The value Key in eventMeasures
  • The value Key in transitionMeasures
  • The value Key in Process Metrics
  • The value Key in Process Dimensions
  • The value Key in Process Measures

Dimensions and measures are defined in YAML format under the value key. This page describes the key-value pairs used within this key.

The value Key

The table below lists values for standard dimensions and measures in widgets.

KeyTypeDefinition
modeenumFormula type:
- TEMPLATE
- FORMULA
dbTypeenumDatabase type
Only for TEMPLATE: CH
tableNamestringTable name
Only for TEMPLATE
columnNamestringColumn name
Only for TEMPLATE
templateNamestringPredefined formula name
Only for TEMPLATE
formulastringFormula
Only for FORMULA mode

Example of standard dimensions and measures:

value:
  mode: TEMPLATE
  templateName: countDistinct
  dbType: CH
  tableName: case_table
  columnName: incident_id

The set of available predefined formulas (templateName) depends on the dimension and measure data type.

Data TypeDimension FormulaMeasure Formula
STRINGcount
countDistinct
INTEGERavg
median
count
countDistinct
min
max
sum
FLOATavg
median
count
countDistinct
min
max
sum
DATEdate
year
yearAndQuarter
quarter
yearAndMonth
month
dayOfMonth
week
dayOfWeek
count
countDistinct
median
min
max
DATETIMEdateTime
date
year
yearAndQuarter
quarter
yearAndMonth
month
dayOfMonth
week
dayOfWeek
hour
count
countDistinct
median
min
max
DATETIME64dateTime
date
year
yearAndQuarter
quarter
yearAndMonth
month
dayOfMonth
week
dayOfWeek
hour
count
countDistinct
median
min
max
BOOLEANcount
countDistinct
OTHERcount
countDistinct

Settings for process-based dimensions and measures are described separately.

The value Key in eventMeasures

The eventMeasures key is used in the Process explorer and Sphere of processes widgets. The table below lists dimension and measure values defined in eventMeasures.

KeyTypeDefinition
modeenumFormula type:
- TEMPLATE
- FORMULA
dbTypeenumDatabase type
Only for TEMPLATE: CH
templateNamestringTemplate name
Only for TEMPLATE
Available templates:
1. eventsCount (Number of events)
2. overtimesCount (Number of overtimes)
formulastringFormula
Only for FORMULA mode

The value Key in transitionMeasures

The transitionMeasures key is used in the Process explorer and Sphere of processes widgets. The table below lists dimension and measure values defined in transitionMeasures.

KeyTypeDefinition
modeenumFormula type:
- TEMPLATE
- FORMULA
dbTypeenumDatabase type
Only for TEMPLATE: CH
templateNamestringTemplate name
Only for TEMPLATE
Available templates:
1. transitionsCount (Number of transitions)
2. medianTime (Median time)
formulastringFormula
Only for FORMULA mode

The value Key in Process Metrics

The value block contains information about process metrics used as local indicators.

The value Key in Process Dimensions

Start Time and End Time

KeyTypeDefinition
templateNameenumPredefined template (dateTime)
modeenumFormula type:

- START_TIME — start time
- END_TIME — end time
eventTimeFormulastringValue specified in the Time parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
eventNameFormulastringValue specified in the Event parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
caseCaseIdFormulastringValue specified in the CaseTable.CaseID parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
filtersPredefined filters (optional key)
eventNamestringEvent name
processNamestringProcess name

Aggregations in Dimensions

Number of Executions or Overtimes
KeyTypeDefinition
templateNameenumPredefined template

- countExecutions — number of executions
- countOvertimes — number of overtimes

Key values for custom aggregation:

- top — most frequent value in column
- firstValue — first value
- lastValue — last value
modeenumFormula type:

- AGGREGATION — aggregation
eventNamestringEvent name
processNamestringProcess name
caseCaseIdFormulastringValue specified in the CaseTable.CaseID parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
eventNameFormulastringValue specified in the Event parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
filtersPredefined filters (optional key)
Custom Aggregation in Dimension
KeyTypeDefinition
templateNameenumPredefined template

- top — most frequent value in column
- firstValue — first value
- lastValue — last value
modeenumFormula type:

- AGGREGATION — aggregation
eventNamestringEvent name
processNamestringProcess name
caseCaseIdFormulastringValue specified in the CaseTable.CaseID parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
eventNameFormulastringValue specified in the Event parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
filtersPredefined filters (optional key)
tableNamestringTable name
columnNamestringColumn name
eventTimeFormulastringValue specified in the Time parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'

If the value is absent, specify null

The value Key in Process Measures

Conversion and Duration

KeyTypeDefinition
templateNamestringPredefined template
Only for DURATION

Available templates:
- avg — average duration
- median — median duration
modeenumFormula type:

- CONVERSION — conversion
- DURATION — duration
startEventAppearancesenumOnly for DURATION

Event occurrence

- FIRST — first occurrence
- LAST — last occurrence
startEventProcessNamestringStart process name
startEventNameFormulastringStart event

Specified in the format '"Table_Name"."Column_Name"'
startEventNamestringStart event name
startEventTimeFormulastringValue specified in the Time parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
startEventFiltersPredefined filters for start event (optional key)
endEventNameFormulastringEnd event

Specified in the format '"Table_Name"."Column_Name"'
endEventAppearancesenumOnly for DURATION

Event occurrence

- FIRST — first occurrence
- LAST — last occurrence
endEventProcessNamestringEnd process name
endEventNamestringEnd event name
endEventTimeFormulastringValue specified in the Time parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
endEventFiltersPredefined filters for end event (optional key)
endCaseCaseIdFormulastringValue specified in the CaseTable.CaseID parameter of the used end process

Specified in the format '"Table_Name"."Column_Name"'

Aggregations in Measures

Number of Executions and Overtimes
KeyTypeDefinition
outerAggregationenumUsed predefined formula

Available options: avg, median, count, count (distinct), min, max, sum
templateNameenumPredefined template

- countExecutions — number of executions
- countOvertimes — number of overtimes
modeenumFormula type:

- AGGREGATION — aggregation
eventNamestringEvent name
processNamestringProcess name
caseCaseIdFormulastringValue specified in the CaseTable.CaseID parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
eventNameFormulastringValue specified in the Event parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
filtersPredefined filters (optional key)
Custom Aggregation in Measure
KeyTypeDefinition
outerAggregationenumUsed predefined formula

Available options: avg, median, count, count (distinct), min, max, sum
templateNameenumPredefined template

- top — most frequent value in column
- firstValue — first value
- lastValue — last value
- countIf — count
- countIfDistinct — count of distinct selected values
modeenumFormula type:

- AGGREGATION — aggregation
eventNamestringEvent name
processNamestringProcess name
caseCaseIdFormulastringValue specified in the CaseTable.CaseID parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
eventNameFormulastringValue specified in the Event parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'
filtersPredefined filters (optional key)
tableNamestringTable name
columnNamestringColumn name
eventTimeFormulastringValue specified in the Time parameter of the used process

Specified in the format '"Table_Name"."Column_Name"'

If the value is absent, specify null

Was the article helpful?

Yes
No
Previous
Widget Configuration in YAML
We use cookies to improve our website for you.