Skip to content

Commit 6ac65e3

Browse files
committed
[Ingest Manager] Support DEGRADED sstate in fleet agent event
1 parent 06f142d commit 6ac65e3

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

x-pack/plugins/ingest_manager/common/openapi/spec_oas3.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4203,6 +4203,7 @@
42034203
"FAILED",
42044204
"STOPPING",
42054205
"STOPPED",
4206+
"DEGRADED",
42064207
"DATA_DUMP",
42074208
"ACKNOWLEDGED",
42084209
"UNKNOWN"

x-pack/plugins/ingest_manager/common/types/models/agent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export interface NewAgentEvent {
5353
| 'FAILED'
5454
| 'STOPPING'
5555
| 'STOPPED'
56+
| 'DEGRADED'
5657
// Action results
5758
| 'DATA_DUMP'
5859
// Actions

x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/fleet/agent_details_page/components/type_labels.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ export const SUBTYPE_LABEL: { [key in AgentEvent['subtype']]: JSX.Element } = {
9595
/>
9696
</EuiBadge>
9797
),
98+
DEGRADED: (
99+
<EuiBadge color="hollow">
100+
<FormattedMessage
101+
id="xpack.ingestManager.agentEventSubtype.degradedLabel"
102+
defaultMessage="Degraded"
103+
/>
104+
</EuiBadge>
105+
),
98106
DATA_DUMP: (
99107
<EuiBadge color="hollow">
100108
<FormattedMessage

x-pack/plugins/ingest_manager/server/types/models/agent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const AgentEventBase = {
2929
schema.literal('FAILED'),
3030
schema.literal('STOPPING'),
3131
schema.literal('STOPPED'),
32+
schema.literal('DEGRADED'),
3233
// Action results
3334
schema.literal('DATA_DUMP'),
3435
// Actions

0 commit comments

Comments
 (0)