Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [SecuritySolution] Add enrichPolicyExecutionInterval to entity …
…enablement and init APIs (#207374) (#208223) # Backport This will backport the following commits from `main` to `8.x`: - [[SecuritySolution] Add enrichPolicyExecutionInterval to entity enablement and init APIs (#207374)](#207374) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Pablo Machado","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-24T13:09:12Z","message":"[SecuritySolution] Add enrichPolicyExecutionInterval to entity enablement and init APIs (#207374)\n\n## Summary\n\nAdd `enrichPolicyExecutionInterval`param to entity enablement and init\nAPIs\n\n### How to test?\n* Start kibana\n* Call the entity store enablement API with a short value for\n`enrichPolicyExecutionInterval` param\n* Check in the logs if the enrichment process is running frequently\n* Clear the entity store\n* Call the entity store enablement API without\n`enrichPolicyExecutionInterval` param\n* Check in the logs if the enrichment process is running less frequently\n\n\n**Enable Entity store API call:**\n```\nPOST kbn:/api/entity_store/enable {\n \"enrichPolicyExecutionInterval\": \"10s\"\n}\n```\n\n**Init Entity store API call:**\n```\nPOST kbn:/api/entity_store/engines/user/init {\n \"enrichPolicyExecutionInterval\": \"10s\"\n}\n\n```\n\n**Enrich policy log message:**\n```\n │ info [o.e.x.e.EnrichPolicyRunner] [...] Policy [entity_store_field_retention_user_default_v1.0.0]: Running enrich policy\n```\n\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [ ] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1ca4d967d926a3e6295cb08dcd55dcf1adbd351c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","Team: SecuritySolution","release_note:feature","Theme: entity_analytics","Feature:Entity Analytics","Team:Entity Analytics","backport:version","v8.18.0"],"title":"[SecuritySolution] Add enrichPolicyExecutionInterval to entity enablement and init APIs","number":207374,"url":"https://github.com/elastic/kibana/pull/207374","mergeCommit":{"message":"[SecuritySolution] Add enrichPolicyExecutionInterval to entity enablement and init APIs (#207374)\n\n## Summary\n\nAdd `enrichPolicyExecutionInterval`param to entity enablement and init\nAPIs\n\n### How to test?\n* Start kibana\n* Call the entity store enablement API with a short value for\n`enrichPolicyExecutionInterval` param\n* Check in the logs if the enrichment process is running frequently\n* Clear the entity store\n* Call the entity store enablement API without\n`enrichPolicyExecutionInterval` param\n* Check in the logs if the enrichment process is running less frequently\n\n\n**Enable Entity store API call:**\n```\nPOST kbn:/api/entity_store/enable {\n \"enrichPolicyExecutionInterval\": \"10s\"\n}\n```\n\n**Init Entity store API call:**\n```\nPOST kbn:/api/entity_store/engines/user/init {\n \"enrichPolicyExecutionInterval\": \"10s\"\n}\n\n```\n\n**Enrich policy log message:**\n```\n │ info [o.e.x.e.EnrichPolicyRunner] [...] Policy [entity_store_field_retention_user_default_v1.0.0]: Running enrich policy\n```\n\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [ ] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1ca4d967d926a3e6295cb08dcd55dcf1adbd351c"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/207374","number":207374,"mergeCommit":{"message":"[SecuritySolution] Add enrichPolicyExecutionInterval to entity enablement and init APIs (#207374)\n\n## Summary\n\nAdd `enrichPolicyExecutionInterval`param to entity enablement and init\nAPIs\n\n### How to test?\n* Start kibana\n* Call the entity store enablement API with a short value for\n`enrichPolicyExecutionInterval` param\n* Check in the logs if the enrichment process is running frequently\n* Clear the entity store\n* Call the entity store enablement API without\n`enrichPolicyExecutionInterval` param\n* Check in the logs if the enrichment process is running less frequently\n\n\n**Enable Entity store API call:**\n```\nPOST kbn:/api/entity_store/enable {\n \"enrichPolicyExecutionInterval\": \"10s\"\n}\n```\n\n**Init Entity store API call:**\n```\nPOST kbn:/api/entity_store/engines/user/init {\n \"enrichPolicyExecutionInterval\": \"10s\"\n}\n\n```\n\n**Enrich policy log message:**\n```\n │ info [o.e.x.e.EnrichPolicyRunner] [...] Policy [entity_store_field_retention_user_default_v1.0.0]: Running enrich policy\n```\n\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [ ] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1ca4d967d926a3e6295cb08dcd55dcf1adbd351c"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information