This commit is contained in:
@@ -417,6 +417,17 @@ definitions:
|
||||
required:
|
||||
- path
|
||||
type: object
|
||||
internal_handlers.FailureRootCauseOut:
|
||||
properties:
|
||||
affected:
|
||||
$ref: '#/definitions/internal_handlers.ServiceStatusOut'
|
||||
dependency_chain:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
root_cause:
|
||||
$ref: '#/definitions/internal_handlers.ServiceStatusOut'
|
||||
type: object
|
||||
internal_handlers.InsertLogRequest:
|
||||
properties:
|
||||
agent:
|
||||
@@ -527,6 +538,17 @@ definitions:
|
||||
required:
|
||||
- token
|
||||
type: object
|
||||
internal_handlers.ServiceStatusOut:
|
||||
properties:
|
||||
healthy:
|
||||
type: boolean
|
||||
name:
|
||||
type: string
|
||||
node_id:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
type: object
|
||||
info:
|
||||
contact: {}
|
||||
paths:
|
||||
@@ -1220,6 +1242,38 @@ paths:
|
||||
summary: Check for cycles
|
||||
tags:
|
||||
- graph
|
||||
/graph/failure:
|
||||
get:
|
||||
description: Analyzes dependencies and service statuses to find the root cause
|
||||
of a failure
|
||||
parameters:
|
||||
- description: Node ID (agent label)
|
||||
in: query
|
||||
name: node_id
|
||||
type: string
|
||||
- description: Service name
|
||||
in: query
|
||||
name: service
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/internal_handlers.FailureRootCauseOut'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: Find failure root cause
|
||||
tags:
|
||||
- graph
|
||||
/graph/order:
|
||||
get:
|
||||
description: Returns the topologically sorted service startup order
|
||||
|
||||
Reference in New Issue
Block a user