Skip to content

Commit 33ab341

Browse files
authored
[Ingest Manager] Support DEGRADED state in fleet agent event (#73104) (#73194)
1 parent 5917b57 commit 33ab341

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

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: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ const AgentEventBase = {
2222
]),
2323
subtype: schema.oneOf([
2424
// State
25-
schema.literal('RUNNING'),
26-
schema.literal('STARTING'),
27-
schema.literal('IN_PROGRESS'),
28-
schema.literal('CONFIG'),
29-
schema.literal('FAILED'),
30-
schema.literal('STOPPING'),
31-
schema.literal('STOPPED'),
25+
schema.oneOf([
26+
schema.literal('RUNNING'),
27+
schema.literal('STARTING'),
28+
schema.literal('IN_PROGRESS'),
29+
schema.literal('CONFIG'),
30+
schema.literal('FAILED'),
31+
schema.literal('STOPPING'),
32+
schema.literal('STOPPED'),
33+
schema.literal('DEGRADED'),
34+
]),
3235
// Action results
3336
schema.literal('DATA_DUMP'),
3437
// Actions

0 commit comments

Comments
 (0)