Skip to content

[SIEM] [Detection engine] add status to rule details#54812

Merged
XavierM merged 2 commits intoelastic:masterfrom
XavierM:detection-engine-rule-status
Jan 14, 2020
Merged

[SIEM] [Detection engine] add status to rule details#54812
XavierM merged 2 commits intoelastic:masterfrom
XavierM:detection-engine-rule-status

Conversation

@XavierM
Copy link
Copy Markdown
Contributor

@XavierM XavierM commented Jan 14, 2020

Summary

Add Status to rule details

image

image

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/siem (Team:SIEM)

export const DETECTION_ENGINE_PRIVILEGES_URL = `${DETECTION_ENGINE_URL}/privileges`;
export const DETECTION_ENGINE_INDEX_URL = `${DETECTION_ENGINE_URL}/index`;
export const DETECTION_ENGINE_TAGS_URL = `${DETECTION_ENGINE_URL}/tags`;
export const DETECTION_ENGINE_RULES_STATUS = `${DETECTION_ENGINE_URL}/rules/_find_statuses`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be updated to utilize

export const DETECTION_ENGINE_RULES_URL = `${DETECTION_ENGINE_URL}/rules`;

so the new const would just be ${DETECTION_ENGINE_RULES_URL}/_find_statuses?

t.partial({
last_failure_at: t.string,
last_failure_message: t.string,
output_index: t.string,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should last_success_at and last_success_message be included in this? Does not have to be, but just wondering.

Copy link
Copy Markdown
Contributor

@dhurley14 dhurley14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two questions but other than those LGTM! Thanks for getting this out so swiftly.

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Comment thread x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx
Copy link
Copy Markdown
Contributor

@FrankHassanabad FrankHassanabad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked at the code, tested the code, and everything looks great here.

LGTM

@XavierM XavierM merged commit daeddfd into elastic:master Jan 14, 2020
XavierM added a commit to XavierM/kibana that referenced this pull request Jan 14, 2020
jkelastic pushed a commit to jkelastic/kibana that referenced this pull request Jan 17, 2020
@XavierM XavierM deleted the detection-engine-rule-status branch June 4, 2020 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants