Skip to content

Commit

Permalink
Add TriggererStatus to OpenAPI spec to health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejeambrun committed May 27, 2023
1 parent f048aba commit 9a6a387
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions airflow/api_connexion/openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3082,6 +3082,8 @@ components:
$ref: '#/components/schemas/MetadatabaseStatus'
scheduler:
$ref: '#/components/schemas/SchedulerStatus'
triggerer:
$ref: '#/components/schemas/TriggererStatus'

MetadatabaseStatus:
type: object
Expand All @@ -3103,6 +3105,19 @@ components:
readOnly: true
nullable: true

TriggererStatus:
type: object
description: The status and the latest triggerer heartbeat.
properties:
status:
$ref: '#/components/schemas/HealthStatus'
latest_triggerer_heartbeat:
description: The time the triggerer last do a heartbeat.
type: string
format: datetime
readOnly: true
nullable: true

Pool:
description: The pool
type: object
Expand Down
13 changes: 13 additions & 0 deletions airflow/www/static/js/types/api-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,7 @@ export interface components {
HealthInfo: {
metadatabase?: components["schemas"]["MetadatabaseStatus"];
scheduler?: components["schemas"]["SchedulerStatus"];
triggerer?: components["schemas"]["TriggererStatus"];
};
/** @description The status of the metadatabase. */
MetadatabaseStatus: {
Expand All @@ -1205,6 +1206,15 @@ export interface components {
*/
latest_scheduler_heartbeat?: string | null;
};
/** @description The status and the latest triggerer heartbeat. */
TriggererStatus: {
status?: components["schemas"]["HealthStatus"];
/**
* Format: datetime
* @description The time the triggerer last do a heartbeat.
*/
latest_triggerer_heartbeat?: string | null;
};
/** @description The pool */
Pool: {
/** @description The name of pool. */
Expand Down Expand Up @@ -4650,6 +4660,9 @@ export type MetadatabaseStatus = CamelCasedPropertiesDeep<
export type SchedulerStatus = CamelCasedPropertiesDeep<
components["schemas"]["SchedulerStatus"]
>;
export type TriggererStatus = CamelCasedPropertiesDeep<
components["schemas"]["TriggererStatus"]
>;
export type Pool = CamelCasedPropertiesDeep<components["schemas"]["Pool"]>;
export type PoolCollection = CamelCasedPropertiesDeep<
components["schemas"]["PoolCollection"]
Expand Down

0 comments on commit 9a6a387

Please sign in to comment.