mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Security Solution] add unsupported type to Endpoint Policy response (#91295)
* add unsupported type * update types Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
d4f3420b41
commit
5686d85ac1
7 changed files with 12 additions and 1 deletions
|
@ -101,6 +101,7 @@ const POLICY_RESPONSE_STATUSES: HostPolicyResponseActionStatus[] = [
|
|||
HostPolicyResponseActionStatus.success,
|
||||
HostPolicyResponseActionStatus.failure,
|
||||
HostPolicyResponseActionStatus.warning,
|
||||
HostPolicyResponseActionStatus.unsupported,
|
||||
];
|
||||
|
||||
const APPLIED_POLICIES: Array<{
|
||||
|
@ -1492,7 +1493,7 @@ export class EndpointDocGenerator {
|
|||
{
|
||||
name: 'workflow',
|
||||
message: 'Failed to apply a portion of the configuration (kernel)',
|
||||
status: HostPolicyResponseActionStatus.success,
|
||||
status: HostPolicyResponseActionStatus.unsupported,
|
||||
},
|
||||
{
|
||||
name: 'download_model',
|
||||
|
@ -1637,6 +1638,7 @@ export class EndpointDocGenerator {
|
|||
HostPolicyResponseActionStatus.failure,
|
||||
HostPolicyResponseActionStatus.success,
|
||||
HostPolicyResponseActionStatus.warning,
|
||||
HostPolicyResponseActionStatus.unsupported,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -933,6 +933,7 @@ export enum HostPolicyResponseActionStatus {
|
|||
success = 'success',
|
||||
failure = 'failure',
|
||||
warning = 'warning',
|
||||
unsupported = 'unsupported',
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,6 +13,7 @@ export enum HostPolicyResponseActionStatus {
|
|||
success = 'success',
|
||||
failure = 'failure',
|
||||
warning = 'warning',
|
||||
unsupported = 'unsupported',
|
||||
}
|
||||
|
||||
export enum HostsFields {
|
||||
|
|
|
@ -273,6 +273,7 @@ export enum HostPolicyResponseActionStatus {
|
|||
success = 'success',
|
||||
failure = 'failure',
|
||||
warning = 'warning',
|
||||
unsupported = 'unsupported',
|
||||
}
|
||||
|
||||
export enum TimelineType {
|
||||
|
|
|
@ -25,6 +25,7 @@ export const POLICY_STATUS_TO_HEALTH_COLOR = Object.freeze<
|
|||
success: 'success',
|
||||
warning: 'warning',
|
||||
failure: 'danger',
|
||||
unsupported: 'subdued',
|
||||
});
|
||||
|
||||
export const POLICY_STATUS_TO_TEXT = Object.freeze<
|
||||
|
@ -39,4 +40,7 @@ export const POLICY_STATUS_TO_TEXT = Object.freeze<
|
|||
failure: i18n.translate('xpack.securitySolution.policyStatusText.failure', {
|
||||
defaultMessage: 'Failure',
|
||||
}),
|
||||
unsupported: i18n.translate('xpack.securitySolution.policyStatusText.unsupported', {
|
||||
defaultMessage: 'Unsupported',
|
||||
}),
|
||||
});
|
||||
|
|
|
@ -50,6 +50,7 @@ export const hostsSchema = gql`
|
|||
success
|
||||
failure
|
||||
warning
|
||||
unsupported
|
||||
}
|
||||
|
||||
type EndpointFields {
|
||||
|
|
|
@ -275,6 +275,7 @@ export enum HostPolicyResponseActionStatus {
|
|||
success = 'success',
|
||||
failure = 'failure',
|
||||
warning = 'warning',
|
||||
unsupported = 'unsupported',
|
||||
}
|
||||
|
||||
export enum TimelineType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue