summaryrefslogtreecommitdiff
path: root/config/metrics/schema.json
blob: 53e52c215452b503754b1f57fb996fc1cf750190 (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
{
  "type": "object",
  "required": ["key_path", "description", "value_type", "status", "product_group", "time_frame", "data_source", "distribution", "tier"],
  "properties": {
    "key_path": {
      "type": "string"
    },
    "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"]
    },
    "status": {
      "type": ["string"],
      "enum": ["data_available", "planned", "in_progress", "implemented"]
    },
    "milestone": {
      "type": ["number", "null"]
    },
    "milestone_removed": {
      "type": ["number", "null"]
    },
    "introduced_by_url": {
      "type": ["string", "null"]
    },
    "time_frame": {
      "type": "string",
      "enum": ["7d", "28d", "all", "none"]
    },
    "data_source": {
      "type": "string",
      "enum": ["database", "redis", "redis_hll", "prometheus", "ruby"]
    },
    "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"
    }
  }
}