forked from viperproject/VerifiedSCION
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealth.gen.yml
98 lines (98 loc) · 2.4 KB
/
health.gen.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# GENERATED FILE DO NOT EDIT
openapi: 3.0.2
info:
description: Health API
title: API to retrieve service health information.
version: 0.0.1
paths:
/health:
get:
tags:
- health
summary: Indicate the service health.
description: Present the health of the service along with the executed health checks.
operationId: get-health
responses:
'200':
description: Service health information.
content:
application/json:
schema:
$ref: '#/components/schemas/HealthResponse'
'400':
$ref: '#/components/responses/BadRequest'
components:
schemas:
CheckData:
title: Free form additional data for the health check.
type: object
additionalProperties: true
Status:
title: Health status of the service.
type: string
example: passing
enum:
- passing
- degraded
- failing
Check:
title: Health Check.
type: object
required:
- name
- status
- data
properties:
name:
description: Name of health check.
type: string
example: valid signer available
status:
$ref: '#/components/schemas/Status'
data:
$ref: '#/components/schemas/CheckData'
reason:
description: Reason for check failure.
type: string
example: ''
detail:
description: Additional information.
type: string
example: ''
Health:
title: Summary of health status and checks.
type: object
required:
- status
- checks
properties:
status:
$ref: '#/components/schemas/Status'
checks:
description: List of health checks.
type: array
items:
$ref: '#/components/schemas/Check'
HealthResponse:
title: Service health information.
type: object
required:
- health
properties:
health:
$ref: '#/components/schemas/Health'
StandardError:
type: object
properties:
error:
type: string
description: Error message
required:
- error
responses:
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/StandardError'