tarunpandey23 69342d4783
Feat: update generate docs schema (#19372)
* Updated generate_docs_schema

* Updated generate_docs_schema

* Updated generate_docs_schema

* applied generate_docs_schema script

* Revert the changes in this file

---------

Co-authored-by: Tarun <tarun.p@deuexsolutions.com>
Co-authored-by: Prajwal214 <167504578+Prajwal214@users.noreply.github.com>
2025-01-15 17:46:55 +05:30

4.8 KiB

title slug
metric /main-concepts/metadata-standard/schemas/entity/data/metric

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.

Properties

Definitions

  • 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-01-15 09:05:41.923720+00:00.