Skip to content

Commit

Permalink
[Ingest Manager] Support DEGRADED sstate in fleet agent event
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Jul 23, 2020
1 parent 06f142d commit 6ac65e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4203,6 +4203,7 @@
"FAILED",
"STOPPING",
"STOPPED",
"DEGRADED",
"DATA_DUMP",
"ACKNOWLEDGED",
"UNKNOWN"
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/ingest_manager/common/types/models/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface NewAgentEvent {
| 'FAILED'
| 'STOPPING'
| 'STOPPED'
| 'DEGRADED'
// Action results
| 'DATA_DUMP'
// Actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ export const SUBTYPE_LABEL: { [key in AgentEvent['subtype']]: JSX.Element } = {
/>
</EuiBadge>
),
DEGRADED: (
<EuiBadge color="hollow">
<FormattedMessage
id="xpack.ingestManager.agentEventSubtype.degradedLabel"
defaultMessage="Degraded"
/>
</EuiBadge>
),
DATA_DUMP: (
<EuiBadge color="hollow">
<FormattedMessage
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/ingest_manager/server/types/models/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const AgentEventBase = {
schema.literal('FAILED'),
schema.literal('STOPPING'),
schema.literal('STOPPED'),
schema.literal('DEGRADED'),
// Action results
schema.literal('DATA_DUMP'),
// Actions
Expand Down

0 comments on commit 6ac65e3

Please sign in to comment.