You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Changelog
2
2
3
+
## 0.2.2 / 2024-05-12
4
+
5
+
*[REVERT] Reverted schema validation mechanism of rules API. Use local schema validation instead of remote which was introduces in [v0.1.2](https://github.com/hayk96/prometheus-api/releases/tag/v0.1.2). #18
6
+
3
7
## 0.2.1 / 2024-05-07
4
8
5
9
*[CHANGE] Serve remote JS script through Cloudflare CDN. No API changes. #17
"description": "A string which is template-expanded before usage.",
29
+
"type": "string"
30
+
},
31
+
"annotations": {
32
+
"type": ["object", "null"],
33
+
"patternProperties": {
34
+
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
35
+
"$ref": "#/definitions/tmpl_string"
36
+
}
37
+
},
38
+
"additionalProperties": false
39
+
},
40
+
"recording_rule": {
41
+
"type": "object",
42
+
"properties": {
43
+
"record": {
44
+
"description": "The name of the time series to output to. Must be a valid metric name.",
45
+
"type": "string"
46
+
},
47
+
"expr": {
48
+
"description": "The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.",
49
+
"type": "string"
50
+
},
51
+
"labels": {
52
+
"$ref": "#/definitions/labels",
53
+
"description": "Labels to add or overwrite before storing the result."
54
+
}
55
+
},
56
+
"required": ["record", "expr"],
57
+
"additionalProperties": false
58
+
},
59
+
"alerting_rule": {
60
+
"type": "object",
61
+
"properties": {
62
+
"alert": {
63
+
"description": "The name of the alert. Must be a valid metric name.",
64
+
"type": "string"
65
+
},
66
+
"expr": {
67
+
"description": "The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts.",
68
+
"type": "string"
69
+
},
70
+
"for": {
71
+
"$ref": "#/definitions/duration",
72
+
"description": "Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending."
73
+
},
74
+
"keep_firing_for": {
75
+
"$ref": "#/definitions/duration",
76
+
"description": "How long an alert will continue firing after the condition that triggered it has cleared."
77
+
},
78
+
"labels": {
79
+
"$ref": "#/definitions/labels",
80
+
"description": "Labels to add or overwrite for each alert."
81
+
},
82
+
"annotations": {
83
+
"$ref": "#/definitions/annotations",
84
+
"description": "Annotations to add to each alert."
85
+
}
86
+
},
87
+
"required": ["alert", "expr"],
88
+
"additionalProperties": false
89
+
}
90
+
},
91
+
"description": "Prometheus rules file",
92
+
"properties": {
93
+
"groups": {
94
+
"type": ["array", "null"],
95
+
"items": {
96
+
"type": "object",
97
+
"properties": {
98
+
"name": {
99
+
"description": "The name of the group. Must be unique within a file.",
100
+
"type": "string"
101
+
},
102
+
"interval": {
103
+
"$ref": "#/definitions/duration",
104
+
"description": "How often rules in the group are evaluated."
105
+
},
106
+
"limit": {
107
+
"description": "Limit the number of alerts an alerting rule and series a recording rule can produce. 0 is no limit.",
0 commit comments