Skip to content

Conversation

afharo
Copy link
Member

@afharo afharo commented Nov 30, 2023

SLO client updated from OAS + adding tags support

@afharo afharo force-pushed the kibana-slo/add-tags-support branch from fd7de03 to e509e5d Compare November 30, 2023 11:35
@afharo afharo force-pushed the kibana-slo/add-tags-support branch from b4821b8 to b6c9c3c Compare November 30, 2023 12:27
Comment on lines +479 to +480
Good: d.Get(indicatorType + ".0.good").(string),
Total: d.Get(indicatorType + ".0.total").(string),
Copy link
Member Author

Choose a reason for hiding this comment

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

types changed 🤷

Type: indicatorAddressToType[indicatorType],
Params: slo.IndicatorPropertiesCustomMetricParams{
Filter: d.Get(indicatorType + ".0.filter").(string),
Filter: getOrNilString(indicatorType+".0.filter", d),
Copy link
Member Author

Choose a reason for hiding this comment

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

types changed 🤷

resource.TestCheckResourceAttr("elasticstack_kibana_slo.test_slo", "settings.0.sync_delay", "1m"),
resource.TestCheckResourceAttr("elasticstack_kibana_slo.test_slo", "settings.0.frequency", "1m"),
resource.TestCheckResourceAttr("elasticstack_kibana_slo.test_slo", "space_id", "default"),
resource.TestCheckResourceAttr("elasticstack_kibana_slo.test_slo", "group_by", "some.field"),
Copy link
Member Author

Choose a reason for hiding this comment

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

group_by is not compatible with 8.9.0, but it didn't fail before because our CreateSlo method didn't include it in the request (added here)

tobio
tobio previously approved these changes Dec 1, 2023
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.

LGTM

Co-authored-by: Toby Brain <tobio85@gmail.com>
@afharo afharo enabled auto-merge (squash) December 1, 2023 07:17
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.

🎉

@afharo afharo merged commit 88e23d9 into elastic:main Dec 1, 2023
@afharo afharo deleted the kibana-slo/add-tags-support branch December 1, 2023 07:57
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.

3 participants