File: wrong_key.yamlx

package info (click to toggle)
glean-parser 15.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,260 kB
  • sloc: python: 7,033; ruby: 100; makefile: 87
file content (69 lines) | stat: -rw-r--r-- 1,535 bytes parent folder | download
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
# Any copyright is dedicated to the Public Domain.
# https://creativecommons.org/publicdomain/zero/1.0/

# Note: we're using YAML anchors to re-use the values
# defined in the first metric.
# Saves us some typing.
---
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0

wrong_key:
  datetime: &unit_defaults
    type: datetime
    # note: this _should_ have been time_unit
    unit: day
    lifetime: ping
    description: for testing
    bugs:
      - https://bugzilla.mozilla.org/1137353
    data_reviews:
      - http://example.com/
    notification_emails:
      - CHANGE-ME@example.com
    expires: never

  timing_distribution:
    <<: *unit_defaults
    type: timing_distribution

  timespan:
    <<: *unit_defaults
    type: timespan

both_keys:
  datetime:
    type: datetime
    # note: it has both keys
    unit: day
    time_unit: day
    lifetime: ping
    description: for testing
    bugs:
      - https://bugzilla.mozilla.org/1137353
    data_reviews:
      - http://example.com/
    notification_emails:
      - CHANGE-ME@example.com
    expires: never

missing_key:
  datetime: &defaults
    type: datetime
    # note: no unit specified. the `time_unit` is _optional_
    lifetime: ping
    description: for testing
    bugs:
      - https://bugzilla.mozilla.org/1137353
    data_reviews:
      - http://example.com/
    notification_emails:
      - CHANGE-ME@example.com
    expires: never

  timing_distribution:
    <<: *defaults
    type: timing_distribution

  timespan:
    <<: *defaults
    type: timespan