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

Multiple Metric Health Rules #15

Open
HarryEMartland opened this issue Jul 30, 2020 · 2 comments
Open

Multiple Metric Health Rules #15

HarryEMartland opened this issue Jul 30, 2020 · 2 comments

Comments

@HarryEMartland
Copy link
Owner

No description provided.

@HarryEMartland HarryEMartland added this to the 0.2.0 milestone Jul 31, 2020
@HarryEMartland HarryEMartland removed this from the V0.5.1 milestone Aug 12, 2020
@HarryEMartland
Copy link
Owner Author

Waiting to hear if people want this

@onukumar24
Copy link

onukumar24 commented Feb 8, 2023

Currently I am unable to add multiple condition ( metric ) in health rule
image

Here is my code
resource "appdynamics_health_rule" "business_transaction_baseline" {
name = "Business Transaction Health Example"
application_id = var.application_id
affected_entity_type = var.affected_entity_type
business_transaction_scope = var.business_transaction_scope
dynamic "baseline" {
for_each = var.baseline_rule
content {
metric_aggregation_function = baseline.value.metric_aggregation_function
eval_detail_type = baseline.value.eval_detail_type
metric_path = baseline.value.metric_path
metric_eval_detail_type = baseline.value.metric_eval_detail_type
baseline_condition = baseline.value.baseline_condition
baseline_unit = baseline.value.baseline_unit
baseline_name = baseline.value.baseline_name
warn_compare_value = baseline.value.warn_compare_value
critical_compare_value = baseline.value.critical_compare_value
}

}
}

HERE IS MY tfvars.json file

{
"baseline_rule": [
{
"metric_aggregation_function" : "VALUE",
"eval_detail_type" : "SINGLE_METRIC",
"metric_eval_detail_type" : "BASELINE_TYPE",
"metric_path": "Average Response Time (ms)",
"baseline_condition": "GREATER_THAN_BASELINE",
"baseline_unit": "STANDARD_DEVIATIONS",
"baseline_name": "Default Baseline",
"warn_compare_value": 2,
"critical_compare_value": 3

        }

]
}

ERROR
dynamic "baseline" {

│ Blocks of type "baseline" are not expected here.

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

No branches or pull requests

2 participants