File tree Expand file tree Collapse file tree 4 files changed +20
-7
lines changed
x-pack/plugins/ingest_manager
public/applications/ingest_manager/sections/fleet/agent_details_page/components Expand file tree Collapse file tree 4 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 42034203 " FAILED" ,
42044204 " STOPPING" ,
42054205 " STOPPED" ,
4206+ " DEGRADED" ,
42064207 " DATA_DUMP" ,
42074208 " ACKNOWLEDGED" ,
42084209 " UNKNOWN"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments