[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:
Kevin Logan 2021-02-16 13:41:34 -05:00 committed by GitHub
parent d4f3420b41
commit 5686d85ac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 1 deletions

View file

@ -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,
]);
}

View file

@ -933,6 +933,7 @@ export enum HostPolicyResponseActionStatus {
success = 'success',
failure = 'failure',
warning = 'warning',
unsupported = 'unsupported',
}
/**

View file

@ -13,6 +13,7 @@ export enum HostPolicyResponseActionStatus {
success = 'success',
failure = 'failure',
warning = 'warning',
unsupported = 'unsupported',
}
export enum HostsFields {

View file

@ -273,6 +273,7 @@ export enum HostPolicyResponseActionStatus {
success = 'success',
failure = 'failure',
warning = 'warning',
unsupported = 'unsupported',
}
export enum TimelineType {

View file

@ -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',
}),
});

View file

@ -50,6 +50,7 @@ export const hostsSchema = gql`
success
failure
warning
unsupported
}
type EndpointFields {

View file

@ -275,6 +275,7 @@ export enum HostPolicyResponseActionStatus {
success = 'success',
failure = 'failure',
warning = 'warning',
unsupported = 'unsupported',
}
export enum TimelineType {