summaryrefslogtreecommitdiff
path: root/config/metrics/schema.json
blob: e9a4a16ecd3b9350fc0b6ee9303f751412adac0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
  "type": "object",
  "required": ["key_path", "description", "value_type", "status", "product_group", "time_frame", "data_source", "distribution", "tier"],
  "properties": {
    "key_path": {
      "type": "string"
    },
    "name": {
      "type": ["string", "null"],
      "pattern": "^([a-z]+_)*[a-z]+$"
    },
    "description": {
      "type": "string"
    },
    "product_section": {
      "type": ["string", "null"]
    },
    "product_stage": {
      "type": ["string", "null"]
    },
    "product_group": {
      "type": "string"
    },
    "product_category": {
      "type": ["string", "null"]
    },
    "value_type": {
      "type": "string",
      "enum": ["string", "number", "boolean", "object"]
    },
    "status": {
      "type": ["string"],
      "enum": ["data_available", "implemented", "not_used", "deprecated", "removed"]
    },
    "milestone": {
      "type": ["string", "null"],
      "pattern": "^[0-9]+\\.[0-9]+$"
    },
    "milestone_removed": {
      "type": ["string", "null"],
      "pattern": "^[0-9]+\\.[0-9]+$"
    },
    "introduced_by_url": {
      "type": ["string", "null"]
    },
    "extra": {
      "type": "object"
    },
    "time_frame": {
      "type": "string",
      "enum": ["7d", "28d", "all", "none"]
    },
    "data_source": {
      "type": "string",
      "enum": ["database", "redis", "redis_hll", "prometheus", "system"]
    },
    "instrumentation_class": {
      "type": "string",
      "pattern": "^(([A-Z][a-z]+)+::)*(([A-Z][a-z]+)+)$"
    },
    "distribution": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["ee", "ce"]
      }
    },
    "tier": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["free", "starter", "premium", "ultimate", "bronze", "silver", "gold"]
      }
    },
    "skip_validation": {
      "type": "boolean"
    },
    "value_json_schema": {
      "type": "string"
    }
  }
}