Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ilm explain api #5

Merged
merged 2 commits into from
Jan 7, 2023

Conversation

angorayc
Copy link
Collaborator

@angorayc angorayc commented Jan 5, 2023

Summary

This is a part of https://github.com/elastic/security-team/issues/5578

Request:

GET /internal/data_quality/ilm_explain/{indexPattern}

example: GET /internal/data_quality/ilm_explain/auditbeat-*

Response:

{
    "auditbeat-7.15.1-2023.01.04-000001": {
        "index": "auditbeat-7.15.1-2023.01.04-000001",
        "managed": true,
        "policy": "auditbeat",
        "index_creation_date_millis": 1672843977429,
        "time_since_index_creation": "20.05h",
        "lifecycle_date_millis": 1672843977429,
        "age": "20.05h",
        "phase": "hot",
        "phase_time_millis": 1672843989756,
        "action": "rollover",
        "action_time_millis": 1672843998078,
        "step": "check-rollover-ready",
        "step_time_millis": 1672843998078,
        "phase_execution": {
            "policy": "auditbeat",
            "phase_definition": {
                "min_age": "0ms",
                "actions": {
                    "rollover": {
                        "max_size": "50gb",
                        "max_age": "30d"
                    }
                }
            },
            "version": 1,
            "modified_date_in_millis": 1672843969315
        }
    }
}

Checklist

Delete any items that are not applicable to this PR.

Copy link
Owner

@andrew-goldstein andrew-goldstein left a comment

Choose a reason for hiding this comment

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

Thanks @angorayc for implementing this API 🙏
✅ desk tested locally
LGTM 🚀

@angorayc angorayc merged this pull request into andrew-goldstein:data-quality-dashboard Jan 7, 2023
andrew-goldstein added a commit that referenced this pull request May 10, 2023
…k and New chat button #5

- adds the useSecurityAssistantQuery hook
- adds a `New chat` button that renders a query in a popover
andrew-goldstein added a commit that referenced this pull request Aug 28, 2023
```
Test Failures
[job] [logs] Jest Integration Tests #5 / checking migration metadata changes on all registered SO types detecting migration related changes in registered types
[job] [logs] Jest Integration Tests elastic#6 / incompatible_cluster_routing_allocation retries the INIT action with a descriptive message when cluster settings are incompatible
[job] [logs] Jest Integration Tests elastic#6 / migrating from 7.3.0-xpack which used v1 migrations copies all the document of the previous index to the new one
[job] [logs] Jest Integration Tests elastic#6 / migrating from 7.3.0-xpack which used v1 migrations creates the new index and the correct aliases
[job] [logs] Jest Integration Tests elastic#6 / migrating from 7.3.0-xpack which used v1 migrations migrates the documents to the highest version
[job] [logs] Jest Integration Tests elastic#6 / migration v2 - read batch size does not reduce the read batchSize in half if no batches exceeded maxReadBatchSizeBytes
[job] [logs] Jest Integration Tests elastic#6 / migration v2 - read batch size reduces the read batchSize in half if a batch exceeds maxReadBatchSizeBytes
[job] [logs] Jest Integration Tests #5 / migration v2 fails with a descriptive message when maxBatchSizeBytes exceeds ES http.max_content_length
[job] [logs] Jest Integration Tests #5 / migration v2 with corrupt saved object documents collects corrupt saved object documents across batches
[job] [logs] Jest Integration Tests elastic#6 / SO default search fields make sure management types have the correct mappings for default search fields
[job] [logs] Jest Integration Tests elastic#6 / SO type registrations does not remove types from registrations without updating excludeOnUpgradeQuery
[job] [logs] Jest Integration Tests #4 / split .kibana index into multiple system indices when migrating from a legacy version performs v1 migration and then relocates saved objects into different indices, depending on their types
[job] [logs] Jest Integration Tests #4 / split .kibana index into multiple system indices when multiple Kibana migrators run in parallel correctly migrates 7.7.2_xpack_100k_obj.zip archive
[job] [logs] Jest Integration Tests elastic#6 / when splitting .kibana into multiple indices and one clone fails after resolving the problem and retrying the migration completes successfully
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants