main-concepts

No menu items for this category
OpenMetadata Documentation

Metric

This schema defines the Metrics entity. Metrics are measurements computed from data such as Monthly Active Users. Some of the metrics that measures used to determine performance against an objective are called KPIs or Key Performance Indicators, such as User Retention.

  • id: Unique identifier that identifies this Metric instance. Refer to ../../type/basic.json#/definitions/uuid.
  • name: Name that identifies this Metric instance uniquely. Refer to ../../type/basic.json#/definitions/entityName.
  • fullyQualifiedName: A unique name that identifies a metric in the format 'ServiceName.MetricName'. Refer to ../../type/basic.json#/definitions/fullyQualifiedEntityName.
  • displayName (string): Display Name that identifies this metric.
  • description: Description of metrics instance, what it is, and how to use it. Refer to ../../type/basic.json#/definitions/markdown.
  • metricExpression: Expression used to compute the metric. Refer to #/definitions/metricExpression.
  • metricType: Type of the metric. Refer to #/definitions/metricType.
  • unitOfMeasurement: Unit of measurement for the metric. Refer to #/definitions/unitOfMeasurement.
  • granularity: Metric's granularity. Refer to #/definitions/metricGranularity.
  • relatedMetrics: Related Metrics. Refer to ../../type/entityReferenceList.json.
  • version: Metadata version of the entity. Refer to ../../type/entityHistory.json#/definitions/entityVersion.
  • updatedAt: Last update time corresponding to the new version of the entity in Unix epoch time milliseconds. Refer to ../../type/basic.json#/definitions/timestamp.
  • updatedBy (string): User who made the update.
  • href: Link to the resource corresponding to this entity. Refer to ../../type/basic.json#/definitions/href.
  • owners: Owners of this metrics. Refer to ../../type/entityReferenceList.json.
  • followers: Followers of this API Collection. Refer to ../../type/entityReferenceList.json.
  • tags (array): Tags for this chart. Default: [].
    • Items: Refer to ../../type/tagLabel.json.
  • changeDescription: Change that lead to this version of the entity. Refer to ../../type/entityHistory.json#/definitions/changeDescription.
  • incrementalChangeDescription: Change that lead to this version of the entity. Refer to ../../type/entityHistory.json#/definitions/changeDescription.
  • deleted (boolean): When true indicates the entity has been soft deleted. Default: False.
  • domains: Domains the Glossary belongs to. Refer to ../../type/entityReferenceList.json.
  • dataProducts: List of data products this entity is part of. Refer to ../../type/entityReferenceList.json.
  • votes: Votes on the entity. Refer to ../../type/votes.json.
  • extension: Entity extension data with custom attributes added to the entity. Refer to ../../type/basic.json#/definitions/entityExtension.
  • certification: Refer to ../../type/assetCertification.json.
  • metricExpression (object): Cannot contain additional properties.
    • language (string): This schema defines the type of the language used for Metric Expression Code. Must be one of: ['SQL', 'Java', 'JavaScript', 'Python', 'External'].
    • code (string): This schema defines the type of the language used for Metric Formula's Code.
  • metricType (string): This schema defines the type of Metric. Must be one of: ['COUNT', 'SUM', 'AVERAGE', 'RATIO', 'PERCENTAGE', 'MIN', 'MAX', 'MEDIAN', 'MODE', 'STANDARD_DEVIATION', 'VARIANCE', 'OTHER'].
  • unitOfMeasurement (string): This schema defines the type of Metric's unit of measurement. Must be one of: ['COUNT', 'DOLLARS', 'PERCENTAGE', 'TIMESTAMP', 'SIZE', 'REQUESTS', 'EVENTS', 'TRANSACTIONS'].
  • metricGranularity (string): This schema defines the type of Metric's granularity. Must be one of: ['SECOND', 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'QUARTER', 'YEAR'].

Documentation file automatically generated at 2025-08-12 05:39:47.683420+00:00.