Skip to content

Commit

Permalink
[fix]: [SRM-16226]: Adding health source deseralizr
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak-harness committed Nov 28, 2023
1 parent 2c07e50 commit 5d60c18
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
51 changes: 51 additions & 0 deletions examples/resources/harness_platform_monitored_service/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,23 @@ resource "harness_platform_monitored_service" "example3" {
},
metricType: "Custom",
metricName: "identifier2"
},
{
"type": "FailImmediately",
"spec": {
"action": "FailAfterOccurrence",
"spec": {
"count": 2
}
},
"criteria": {
"type": "Absolute",
"spec": {
"greaterThan": 100
}
},
"metricType": "Custom",
"metricName": "identifier2"
}
]
}
Expand Down Expand Up @@ -370,6 +387,23 @@ resource "harness_platform_monitored_service" "example5" {
},
metricType: "Custom",
metricName: "metric"
},
{
"type": "FailImmediately",
"spec": {
"action": "FailAfterOccurrence",
"spec": {
"count": 2
}
},
"criteria": {
"type": "Absolute",
"spec": {
"greaterThan": 100
}
},
"metricType": "Custom",
"metricName": "metric"
}]
},
{
Expand Down Expand Up @@ -503,6 +537,23 @@ resource "harness_platform_monitored_service" "example7" {
},
metricType: "Custom",
metricName: "Prometheus Metric"
},
{
"type": "FailImmediately",
"spec": {
"action": "FailAfterOccurrence",
"spec": {
"count": 2
}
},
"criteria": {
"type": "Absolute",
"spec": {
"greaterThan": 100
}
},
"metricType": "Custom",
"metricName": "Prometheus Metric"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,23 @@ func testAccSplunkSignalFXDataSourceMonitoredService(id string, name string) str
},
metricType: "Custom",
metricName: "identifier2"
},
{
"type": "FailImmediately",
"spec": {
"action": "FailAfterOccurrence",
"spec": {
"count": 2
}
},
"criteria": {
"type": "Absolute",
"spec": {
"greaterThan": 100
}
},
"metricType": "Custom",
"metricName": "identifier2"
}]
}
]})
Expand Down Expand Up @@ -677,6 +694,23 @@ func testAccAzureMetricsDataSourceMonitoredService(id string, name string) strin
},
metricType: "Custom",
metricName: "metric"
},
{
"type": "FailImmediately",
"spec": {
"action": "FailAfterOccurrence",
"spec": {
"count": 2
}
},
"criteria": {
"type": "Absolute",
"spec": {
"greaterThan": 100
}
},
"metricType": "Custom",
"metricName": "metric"
}
]
},
Expand Down Expand Up @@ -873,6 +907,23 @@ resource "harness_platform_monitored_service" "test" {
},
metricType: "Custom",
metricName: "Prometheus Metric"
},
{
"type": "FailImmediately",
"spec": {
"action": "FailAfterOccurrence",
"spec": {
"count": 2
}
},
"criteria": {
"type": "Absolute",
"spec": {
"greaterThan": 100
}
},
"metricType": "Custom",
"metricName": "Prometheus Metric"
}
]
}
Expand Down

0 comments on commit 5d60c18

Please sign in to comment.