-
Notifications
You must be signed in to change notification settings - Fork 6
/
metric-schema-api.yml
47 lines (47 loc) · 1.48 KB
/
metric-schema-api.yml
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
types:
definitions:
default-package: com.palantir.metric.schema
objects:
MetricSchema:
fields:
namespaces: map<string, MetricNamespace>
options:
docs: >
Additional pieces of information that do not change the overall declaration,
but may affect the way it is handled in a particular context. For example,
`javaPackage` will determine the package of the generated classes.
type: map<string, string>
MetricNamespace:
fields:
shortName:
docs: A short name describing the metrics. Used to construct the name of the generated utility class.
type: optional<string>
docs: Documentation
tags: list<TagDefinition>
metrics:
type: map<string,MetricDefinition>
MetricDefinition:
fields:
type: MetricType
tags: set<string>
tagDefinitions: list<TagDefinition>
docs: Documentation
MetricType:
values:
- COUNTER
- GAUGE
- METER
- TIMER
- HISTOGRAM
Documentation:
docs: Documentation describing an associated component. Markdown syntax may be used.
alias: string
TagDefinition:
fields:
name: string
docs: optional<Documentation>
values: set<TagValue>
TagValue:
fields:
value: string
docs: optional<Documentation>