Skip to content

Shared types

Reusable building blocks referenced by the schemas above. Documented once here.

metadata

The MetaData module is used to define the meta data of all element in UModel.

FieldTypeRequiredDefaultDescription
namestringyesThe name of the Element in UModel System. The value cannot be empty.The value format is lowercase alphanumeric characters.
display_namesemantic_string (i18n)The display name of the Element in UModel System. The value cannot be empty.
descriptionsemantic_string (i18n)The description of the Element in UModel System.
short_descriptionsemantic_string (i18n)The short description of the Element in UModel System.
domainstringyesThe domain of the Field. The value format is 'domain.domain'. it can be connected in the form of a dot.
launch_stageenum: preview, beta, ga, deprecatedpreviewThe launch stage of the Element. The default value is preview.
iconstringThe icon of the Element in UModel System. The value format is 'url'.
uristringThis field is used to represent the unique identifier of the Element.
tagsmap<string, string>This field is used to represent the tags of the Element.
propertiesmap<string, string>This field is used to represent the additional properties of the Element.
common_schema_infoobjectBackground: In the use of Alibaba Cloud Observability business, the built-in UModel data will be defaulted as a common UModel (CommonSchema), and the common UModel data will be configured as a reference (CommonSchemaR…
common_schema_info.groupstringThe group of the common schema
common_schema_info.versionstringThe version of the common schema

schema

The Schema module is used to define the version information of the Schema.

FieldTypeRequiredDefaultDescription
urlstringyesThe url of the schema. The Core part is "umodel.aliyun.com"
versionstringyesThe version of the schema. The format is "v1.2.3".

telemetry_data

The general representation of observable data, which is similar to the structure of a database table, but with the addition of time fields for the "observation" characteristics. Additionally, several fields are added…

FieldTypeRequiredDefaultDescription
fieldsarray<field_spec>The fields of the TelemetryData.
time_fieldstringThe time field of the TelemetryData. It is generally required to be a timestamp type, supporting seconds, milliseconds, microseconds, and nanoseconds.
display_fieldstringNote: This field is deprecated. Please use the name_fields field instead. The display field of the TelemetryData. It is the default displayed field.
name_fieldsarray<string>The name fields of the TelemetryData. It is recommended to configure the display fields in order of importance. Front-end, algorithms, etc. will freely choose according to the characteristics in various scenarios. For…
hidden_fieldsarray<string>The hidden fields of the TelemetryData.
tag_fieldsarray<string>The tag fields of the TelemetryData. The tag fields are aggregated by default for display and analysis.
ordered_fieldsarray<string>The ordered fields of the TelemetryData. It is the ordered field of the current data set.
default_orderenum: asc, descThe default order of the TelemetryData. The default value is asc.

The Link module is used to define the relationship between two entity set, data set, storage set and metric set. The Link module is the abstract module of all link module.

FieldTypeRequiredDefaultDescription
srcobjectThe identify of source Set. The value cannot be empty.
src.domainstringyesThe domain of the source Set.
src.kindstringyesThe type of the source Set. The value cannot be empty.
src.namestringyesThe name of the source Set. The value cannot be empty.
src.filterstringThe filter of the source Set. It is used for some Link scenarios, such as only entities with "region=cn-beijing" in the EntitySet have this association. This method is deprecated, please use filter_by_entity instead.
destobjectThe identify of the destination Set. The value cannot be empty.
dest.domainstringyesThe domain of the destination Set.
dest.kindstringyesThe type of the destination Set. The value cannot be empty.
dest.namestringyesThe name of the destination Set. The value cannot be empty.
filter_by_entitystringIn the Link that is only for some entities, used to identify the filtering conditions for these entities.
priorityinteger5The priority of the Link. The value can be empty. The default value is 5.

field_spec

The most basic definition of a field, which is the fundamental unit of data for logs, metrics, traces, entities, etc.

FieldTypeRequiredDefaultDescription
namestringyesThe name of the Field in UModel System. The value cannot be empty.The value format is lowercase alphanumeric characters.
display_namesemantic_string (i18n)The display name of the Element in UModel System. The value cannot be empty.
descriptionsemantic_string (i18n)The description of the Element in UModel System.
short_descriptionsemantic_string (i18n)The short description of the Element in UModel System.
launch_stageenum: preview, beta, ga, deprecatedpreviewThe launch stage of the Element. The default value is preview.
typeenum: string, integer, float, boolean, time, json_object, json_arrayyesThe type of the Field. The value must be one of the following: string, integer, float, boolean, time, json_object, json_array. The value cannot be empty.
value_mappingmap<string, string>For the mapping and interpretation of enumeration values, in order to better display the meaning of the mapping value, the value field of the mapping is defined separately. The value contains 4 fields: "name", "displa…
unitstringThe unit of the Metric. The value format is a string. Note: The unit is only used for display and will not be converted, such as ms will not be automatically converted to s. Best practice: First configure data_format,…
data_formatenum: KMB, milli, byte, bit, byte_ies_sec, bit_ies_sec, iops, reqps … (47 values)KMBThe formatting method for metrics, value format is string. Supported formatting options: Numeric formatting: - KMB: Thousands, millions, billions formatting, example: K,Mil,Bil - milli: Process as millisecond format,…
analysableboolfalseUsed to denote whether the field is analyzable, i.e., serving as a column for Group By. default value is false.
filterableboolfalseUsed to indicate whether this field can support filtering, i.e., it supports indexed filtering. default value is false.
orderableboolfalseUsed to indicate whether the field is sortable. default value is false.
default_orderenum: asc, descUsed to indicate the default sorting order of the field. The value must be one of the following: asc, desc. default value is asc.
patternstringRegular expression, used to define the range of values for this field (String).
max_lengthintegerThe max length of string value. Only valid for string type.
exampleanyexamples of the field value. The value can be empty.
max_valuenumberThe maximum value of the field. The value can be empty. Only valid for integer and float types.
min_valuenumberThe minimum value of the field. The value can be empty. Only valid for integer and float types.
default_valueanyThe default value of the field. The value can be empty.
iconstringThe icon of the Element in UModel System. The value format is 'url'.
uristringThis field is used to represent the unique identifier of the field.
tagsmap<string, string>This field is used to represent the tags of the Field.
propertiesmap<string, string>This field is used to represent the additional properties of the Field.

metric

The Metric module is used to define the metric information.

FieldTypeRequiredDefaultDescription
namestringyesThe name of the Metric. The value cannot be empty.
display_namesemantic_string (i18n)The display name of the Metric. The value cannot be empty.
descriptionsemantic_string (i18n)The description of the Metric.
short_descriptionsemantic_string (i18n)The short description of the Metric.
launch_stageenum: preview, beta, ga, deprecatedpreviewThe launch stage of the Element. The default value is preview.
unitstringThe unit of the Metric. The value format is a string. Note: The unit is only used for display and will not be converted, such as ms will not be automatically converted to s. Best practice: First configure data_format,…
data_formatenum: KMB, milli, byte, bit, byte_ies_sec, bit_ies_sec, iops, reqps … (47 values)KMBThe formatting method for metrics, value format is string. Supported formatting options: Numeric formatting: - KMB: Thousands, millions, billions formatting, example: K,Mil,Bil - milli: Process as millisecond format,…
max_valuenumberThe maximum value of the field. The value can be empty. Only valid for integer and float types.
min_valuenumberThe minimum value of the field. The value can be empty. Only valid for integer and float types.
default_valueanyThe default value of the field. The value can be empty.
iconstringThis field is used to represent the icon of the Metric.
labelsarray<field_spec>This field is used to represent the labels of the Metric. It is the additional labels of the Metric on top of the labels in the MetricSet.
golden_metricbooleanfalseWhether the metric is a golden metric.
generatorstringThis field represents the generator of the Metric. If the mode is PromMode, this field is a PromQL statement that can be executed to get a Measure type metric directly. For example: rate(request_count{}[1m]). If the m…
aggregatorstringThe aggregation method of the metric. If the metric is already aggregated, and the aggregation method is consistent in multiple dimension combinations, this field does not need to be configured, otherwise it needs to…
interval_usobjectThe interval of the metric, value format is integer or array of integers, in microseconds. - When single integer: represents a fixed collection interval - When array of integers: represents multiple collection interva…
typestringgaugeThis field indicates the metric type. For metrics that do not need to be processed again, this field should be fixed to gauge.
query_modeenum: range, instant, bothThis metric query mode. The value must be one of the following: range, instant, both.
display_typestringThis metric display type.
statisticsarray<string>The statistics method when generating this metric, that is, the metric has multiple generation methods. It is currently only used in the cloud monitor service scenario.
tagsmap<string, string>This field is used to represent the tags of the Metric.
propertiesmap<string, string>This field is used to represent the additional properties of the Metric.
default_fill_policystringThe default fill policy of the Metric. The value can be null, 0, last, next.

observation

Observation configuration definition for phenomenon observation and conclusion judgment.

FieldTypeRequiredDefaultDescription
namestringyesObservation name, must be unique within the same RunbookSet.
display_namesemantic_string (i18n)yesObservation display name.
short_descriptionsemantic_string (i18n)yesObservation short description.
descriptionsemantic_string (i18n)Observation detailed description.
phenomenonobjectyesPhenomenon definition, describing what to observe and how.
phenomenon.phenomenon_typestringyesPhenomenon type such as query, action, dashboard, event.
phenomenon.inputsarray<object>Phenomenon related input configurations, used to guide the upper layer to select default parameters for filling in. Including Dashboard variables, Query input parameters, etc.
phenomenon.outputsarray<object>Optional, phenomenon related output configurations, used to guide the upper layer to parse the query results.
phenomenon.propertiesmap<string, string>Phenomenon related properties, freely extensible based on type.
conclusionsarray<object>yesList of conclusion configurations based on phenomenon observation results.
conclusions.condition_typestringyesCondition type for conclusion activation. Can be bool expression calculated after query/action execution, or prompts for LLM to judge.
conclusions.conditionstringyesCondition for conclusion activation.
conclusions.severityenum: info, warning, error, fatalyesConclusion severity level.
conclusions.display_namesemantic_string (i18n)yesConclusion display name.
conclusions.short_descriptionsemantic_string (i18n)yesConclusion short description.
conclusions.descriptionsemantic_string (i18n)Conclusion detailed description.
conclusions.groupstringyesConclusion group. In the same conclusion group, only the highest level of conclusion is returned.
conclusions.propertiesmap<string, string>Conclusion related properties.
propertiesmap<string, string>Observation property configurations.
tagsmap<string, string>Observation tags.

value_mapping

The ValueMapping module is used to define the value mapping relationship.

FieldTypeRequiredDefaultDescription
namestringyesThe name of the Element in UModel System. The value cannot be empty.The value format is lowercase alphanumeric characters.
display_namesemantic_string (i18n)The display name of the Element in UModel System. The value cannot be empty.
descriptionsemantic_string (i18n)The description of the Element in UModel System.
short_descriptionsemantic_string (i18n)The short description of the Element in UModel System.

Released under the Apache-2.0 License.