Fixes error in Swagger Documentation (#9417)
* OpenAPI docu error fixes
Timotej S committed
Jul 2, 2020 at 13:13 UTC
c27d12055e399260364465a7094a3d00e0c031fa
2 files changed
+62
web/api/netdata-swagger.json
+36
@@ -1977,6 +1977,42 @@
1977
"nullable": true
1978
}
1979
}
1980
+ },
1981
+ "alarms_values": {
1982
+ "type": "object",
1983
+ "properties": {
1984
+ "hostname": {
1985
+ "type": "string"
1986
+ },
1987
+ "alarms": {
1988
+ "type": "object",
1989
+ "description": "HashMap with keys being alarm names",
1990
+ "additionalProperties": {
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "id": {
1994
+ "type": "integer"
1995
+ },
1996
+ "value": {
1997
+ "type": "integer"
1998
+ },
1999
+ "status": {
2000
+ "type": "string",
2001
+ "enum": [
2002
+ "REMOVED",
2003
+ "UNDEFINED",
2004
+ "UNINITIALIZED",
2005
+ "CLEAR",
2006
+ "RAISED",
2007
+ "WARNING",
2008
+ "CRITICAL",
2009
+ "UNKNOWN"
2010
+ ]
2011
+ }
2012
+ }
2013
+ }
2014
+ }
2015
+ }
2016
}
2017
}
2018
}
web/api/netdata-swagger.yaml
+26
@@ -1544,3 +1544,29 @@ components:
1544
old_value:
1545
type: number
1546
nullable: true
1547
+ alarms_values:
1548
+ type: object
1549
+ properties:
1550
+ hostname:
1551
+ type: string
1552
+ alarms:
1553
+ type: object
1554
+ description: HashMap with keys being alarm names
1555
+ additionalProperties:
1556
+ type: object
1557
+ properties:
1558
+ id:
1559
+ type: integer
1560
+ value:
1561
+ type: integer
1562
+ status:
1563
+ type: string
1564
+ enum:
1565
+ - REMOVED
1566
+ - UNDEFINED
1567
+ - UNINITIALIZED
1568
+ - CLEAR
1569
+ - RAISED
1570
+ - WARNING
1571
+ - CRITICAL
1572
+ - UNKNOWN