-
Notifications
You must be signed in to change notification settings - Fork 3
/
payload.schema.json
33 lines (33 loc) · 1.04 KB
/
payload.schema.json
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
{
"$id": "https://github.com/IBM/mq2prom/payload.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Metric Payload",
"type": "array",
"items": {
"type": "object",
"description": "A single metric instance.",
"properties": {
"name": {
"type": "string",
"description": "The name of the metric",
"pattern": "^[a-zA-Z_:][a-zA-Z0-9_:]*$"
},
"value": {
"description": "Metric Value",
"type": "number"
},
"labels": {
"type": "object",
"description": "Labels with values for metric observation",
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"required": ["name", "value"]
}
}