-
Notifications
You must be signed in to change notification settings - Fork 117
Add support for timeslice metrics indicator #1195
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 support for timeslice metrics indicator #1195
Conversation
* Add support for the resource based on OpenAPI docs. * Add tests * Generate docs
* Fix up missing fields
* Remove check for equations
There was a problem hiding this 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]>
96c6bbe
to
bc991a8
Compare
There was a problem hiding this 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.
There was a problem hiding this 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 👍
* 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)
Closes #814