Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lloydmeta
Copy link
Member

@lloydmeta lloydmeta commented Jul 9, 2025

  • Add support for the resource based on OpenAPI docs
  • Updates SLO OpenAPI spec in this project to add discriminator.
  • Add tests
  • Generate docs

Closes #814

lloydmeta added 6 commits July 9, 2025 16:47
* Add support for the resource based on OpenAPI docs.
* Add tests
* Generate docs
* Fix up missing fields
* Remove check for equations
@lloydmeta lloydmeta changed the title [WIP] Add support for timeslice metrics indicator Add support for timeslice metrics indicator Jul 9, 2025
@lloydmeta lloydmeta marked this pull request as ready for review July 9, 2025 14:05
@lloydmeta lloydmeta requested a review from wandergeek July 9, 2025 14:05
@lloydmeta lloydmeta requested review from afharo and Copilot July 9, 2025 14:21
Copilot

This comment was marked as outdated.

@lloydmeta lloydmeta requested a review from Copilot July 10, 2025 01:34
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the timeslice_metric_indicator type in the Terraform provider for Elasticsearch/Kibana SLO resources. The implementation enables users to create SLOs with timeslice-based metrics that evaluate conditions across time windows.

Key changes:

  • Added the timeslice_metric_indicator schema and handling logic with support for various metric aggregations
  • Implemented comprehensive test coverage for different metric types (basic, percentile, doc_count, and mixed metrics)
  • Updated documentation and examples to include the new timeslice metric indicator

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/kibana/slo.go Added timeslice metric indicator schema, serialization, and deserialization logic
internal/kibana/slo_test.go Added comprehensive test coverage for all timeslice metric indicator scenarios
internal/clients/kibana/slo.go Added support for timeslice metric in response-to-request indicator conversion
examples/resources/elasticstack_kibana_slo/resource.tf Added example configuration for timeslice metric indicator
docs/resources/kibana_slo.md Added documentation for the new timeslice metric indicator schema

* Fix up filter sourcing and add tests

Signed-off-by: lloydmeta <[email protected]>
@lloydmeta lloydmeta force-pushed the feature/timeslice-metric-indicator-slo-support branch from 96c6bbe to bc991a8 Compare July 10, 2025 03:26
@lloydmeta lloydmeta self-assigned this Jul 10, 2025
@lloydmeta lloydmeta enabled auto-merge (squash) July 10, 2025 08:29
Copy link
Member

@tobio tobio left a comment

Choose a reason for hiding this comment

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

Are you able to add an entry to CHANGELOG.md for this too.

@lloydmeta lloydmeta requested a review from tobio July 10, 2025 10:29
Copy link
Contributor

@dimuon dimuon left a comment

Choose a reason for hiding this comment

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

Thanks for the PR 👍

@lloydmeta lloydmeta merged commit 6381497 into elastic:main Jul 10, 2025
23 checks passed
@lloydmeta lloydmeta deleted the feature/timeslice-metric-indicator-slo-support branch July 10, 2025 23:11
tobio added a commit that referenced this pull request Jul 18, 2025
* origin/main:
  Fix master timeout for serverless flavor (#1207)
  Add reroute processor data source for Elasticsearch ingest pipelines (#1204)
  chore(deps): update golang docker tag to v1.24.5 (#1202)
  chore(deps): update dependency go to v1.24.5 (#1200)
  Add support for timeslice metrics indicator (#1195)
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.

[Feature] Timeslice metric indicator for elasticstack_kibana_slo (supporting percentile aggregations)
3 participants