Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ingest Manager] Support DEGRADED state in fleet agent event #73104

Merged
merged 2 commits into from
Jul 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
17 changes: 10 additions & 7 deletions x-pack/plugins/ingest_manager/server/types/models/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ const AgentEventBase = {
]),
subtype: schema.oneOf([
// State
schema.literal('RUNNING'),
schema.literal('STARTING'),
schema.literal('IN_PROGRESS'),
schema.literal('CONFIG'),
schema.literal('FAILED'),
schema.literal('STOPPING'),
schema.literal('STOPPED'),
schema.oneOf([
schema.literal('RUNNING'),
schema.literal('STARTING'),
schema.literal('IN_PROGRESS'),
schema.literal('CONFIG'),
schema.literal('FAILED'),
schema.literal('STOPPING'),
schema.literal('STOPPED'),
schema.literal('DEGRADED'),
]),
// Action results
schema.literal('DATA_DUMP'),
// Actions
Expand Down