Skip to content

Commit

Permalink
update context, update default template
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Mar 2, 2023
1 parent 18bb3d5 commit e5ade23
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@ export function getTransformHealthRuleType(): RuleTypeModel<TransformHealthRuleP
Transform ID: \\{\\{transform_id\\}\\}
\\{\\{#description\\}\\}Transform description: \\{\\{description\\}\\}
\\{\\{/description\\}\\}\\{\\{#transform_state\\}\\}Transform state: \\{\\{transform_state\\}\\}
\\{\\{/transform_state\\}\\}\\{\\{#health\\}\\}Transform health: \\{\\{health\\}\\}
\\{\\{/health\\}\\}\\{\\{#failure_reason\\}\\}Failure reason: \\{\\{failure_reason\\}\\}
\\{\\{/transform_state\\}\\}\\{\\{#health_status\\}\\}Transform health status: \\{\\{health_status\\}\\}
\\{\\{/health_status\\}\\}\\{\\{#issues\\}\\}Issue: \\{\\{issue\\}\\}
Issue count: \\{\\{count\\}\\}
\\{\\{#details\\}\\}Issue details: \\{\\{details\\}\\}
\\{\\{/details\\}\\}\\{\\{#first_occurrence\\}\\}First occurrence: \\{\\{first_occurrence\\}\\}
\\{\\{/first_occurrence\\}\\}
\\{\\{/issues\\}\\}\\{\\{#failure_reason\\}\\}Failure reason: \\{\\{failure_reason\\}\\}
\\{\\{/failure_reason\\}\\}\\{\\{#notification_message\\}\\}Notification message: \\{\\{notification_message\\}\\}
\\{\\{/notification_message\\}\\}\\{\\{#node_name\\}\\}Node name: \\{\\{node_name\\}\\}
\\{\\{/node_name\\}\\}\\{\\{#timestamp\\}\\}Timestamp: \\{\\{timestamp\\}\\}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export interface TransformHealth {
export interface BaseTransformAlertResponse {
transform_id: string;
description?: string;
health: TransformHealth;
health_status: TransformHealth['status'];
issues?: TransformHealth['issues'];
}

export interface NotStartedTransformResponse extends BaseTransformAlertResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ export function transformHealthServiceProvider(
description: transformsDict.get(t.id)?.description,
transform_state: t.state,
node_name: t.node?.name,
health: t.health,
health_status: t.health.status,
issues: t.health.issues,
})),
(t) =>
t.transform_state !== TRANSFORM_STATE.STARTED &&
Expand Down Expand Up @@ -226,7 +227,8 @@ export function transformHealthServiceProvider(
transform_state: t.state,
node_name: t.node?.name,
description: transformsDict.get(t.id)?.description,
health: t.health,
health_status: t.health.status,
issues: t.health.issues,
};
});
},
Expand Down

0 comments on commit e5ade23

Please sign in to comment.