{{ "ops.watch.manualNote" | t }}

{{ "ops.watch.list.title" | t }}

@if (watchesState() === "loading") {

{{ "status.loading" | t }}

} @if (watchesState() === "error") { } @if (watchesState() === "ok") { @if (watches().length === 0) {

{{ "ops.watch.list.empty" | t }}

} @else {
@for (w of watches(); track w.watch_id) { @if (runOutcome(w.watch_id); as outcome) { } }
{{ "ops.watch.list.caption" | t }}
{{ "ops.watch.col.id" | t }} {{ "ops.watch.col.workload" | t }} {{ "ops.watch.col.platform" | t }} {{ "ops.watch.col.rule" | t }} {{ "ops.watch.col.interval" | t }} {{ "ops.watch.col.severity" | t }} {{ "ops.watch.col.state" | t }} {{ "ops.watch.col.actions" | t }}
{{ w.watch_id }} {{ w.workload }} {{ w.platform }} {{ w.rule }} {{ w.interval_s }} {{ w.severity }} @if (w.enabled) { {{ "ops.watch.enabled" | t }} } @else { {{ "ops.watch.disabled" | t }} } @if (pendingDelete() === w.watch_id) {
} @else {
@if (w.enabled) { } @else { }
}
@if (outcome.state === "loading") { {{ "ops.watch.running" | t }} } @if (outcome.state === "error") { {{ "ops.watch.actionError" | t }} @if (outcome.detail) { {{ outcome.detail }} } } @if (outcome.state === "ok") { @if (outcome.alerts.length === 0) { {{ "ops.watch.runNone" | t }} } @else { {{ outcome.alerts.length }} {{ "ops.watch.runResult" | t }}
    @for (a of outcome.alerts; track a.alert_id) {
  • {{ a.severity }} {{ a.kind }} {{ a.message }} @if (a.recovered) { ({{ "ops.watch.recovered.yes" | t }}) }
  • }
} }
} } @if (actionError(); as detail) { }

{{ "ops.watch.create.title" | t }}

{{ "ops.watch.create.sourceNote" | t }}

@for (p of platformHints; track p) { }
@if ( form.controls.interval_s.invalid && form.controls.interval_s.touched ) { }
@for (m of metricHints; track m) { }

{{ "ops.watch.create.metricsHint" | t }}

@if (createError(); as detail) { } @if (createdId(); as id) {

{{ "ops.watch.create.created" | t }} {{ id }}

}

{{ "ops.watch.alerts.title" | t }}

{{ "ops.watch.alerts.hint" | t }}

@if (alertsState() === "loading") {

{{ "status.loading" | t }}

} @if (alertsState() === "error") { } @if (alertsState() === "ok") { @if (alerts().length === 0) {

{{ "ops.watch.alerts.empty" | t }}

} @else {
@for (a of alerts(); track a.alert_id) { }
{{ "ops.watch.alerts.caption" | t }}
{{ "ops.watch.col.severity" | t }} {{ "ops.watch.col.kind" | t }} {{ "ops.watch.col.watch" | t }} {{ "ops.watch.col.message" | t }} {{ "ops.watch.col.ts" | t }} {{ "ops.watch.col.recovered" | t }}
{{ a.severity }} {{ a.kind }} {{ a.watch_id }} {{ a.message }} {{ formatTs(a.ts) }} {{ (a.recovered ? "ops.watch.recovered.yes" : "ops.watch.recovered.no" ) | t }}
} }