Fixes error in Swagger Documentation (#9417)

* OpenAPI docu error fixes
This commit is contained in:
Timotej S 2020-07-02 13:13:13 +02:00 committed by GitHub
parent 05077450d1
commit c27d12055e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 0 deletions

View File

@ -1977,6 +1977,42 @@
"nullable": true
}
}
},
"alarms_values": {
"type": "object",
"properties": {
"hostname": {
"type": "string"
},
"alarms": {
"type": "object",
"description": "HashMap with keys being alarm names",
"additionalProperties": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"value": {
"type": "integer"
},
"status": {
"type": "string",
"enum": [
"REMOVED",
"UNDEFINED",
"UNINITIALIZED",
"CLEAR",
"RAISED",
"WARNING",
"CRITICAL",
"UNKNOWN"
]
}
}
}
}
}
}
}
}

View File

@ -1544,3 +1544,29 @@ components:
old_value:
type: number
nullable: true
alarms_values:
type: object
properties:
hostname:
type: string
alarms:
type: object
description: HashMap with keys being alarm names
additionalProperties:
type: object
properties:
id:
type: integer
value:
type: integer
status:
type: string
enum:
- REMOVED
- UNDEFINED
- UNINITIALIZED
- CLEAR
- RAISED
- WARNING
- CRITICAL
- UNKNOWN