Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Commit

Permalink
improve NrqlAlertCondition tests with violation_time_limit_seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Valler committed Nov 12, 2019
1 parent c7d29a8 commit 592d46d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/alert_nrql_conditions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func TestQueryAlertNrqlConditions(t *testing.T) {
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"enabled": true,
"violation_time_limit_seconds": 3600,
"terms": [
{
"duration": "10",
Expand Down Expand Up @@ -65,6 +66,7 @@ func TestGetAlertNrqlCondition(t *testing.T) {
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"enabled": true,
"violation_time_limit_seconds": 3600,
"terms": [
{
"duration": "10",
Expand Down Expand Up @@ -110,6 +112,7 @@ func TestListAlertNrqlConditions(t *testing.T) {
"id": 12345,
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"violation_time_limit_seconds": 3600,
"enabled": true,
"terms": [
{
Expand Down Expand Up @@ -155,6 +158,7 @@ func TestCreateAlertNrqlCondition(t *testing.T) {
"id": 12345,
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"violation_time_limit_seconds": 3600,
"enabled": true,
"terms": [
{
Expand Down Expand Up @@ -235,6 +239,7 @@ func TestCreateAlertNrqlStaticCondition(t *testing.T) {
"type": "static",
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"violation_time_limit_seconds": 3600,
"enabled": true,
"terms": [
{
Expand Down Expand Up @@ -319,6 +324,7 @@ func TestCreateAlertNrqlBaselineCondition(t *testing.T) {
"type": "baseline",
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"violation_time_limit_seconds": 3600,
"enabled": true,
"terms": [
{
Expand Down Expand Up @@ -409,6 +415,7 @@ func TestCreateAlertNrqlOutlierCondition(t *testing.T) {
"type": "outlier",
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"violation_time_limit_seconds": 3600,
"enabled": true,
"terms": [
{
Expand Down Expand Up @@ -493,6 +500,7 @@ func TestUpdateAlertNrqlCondition(t *testing.T) {
"id": 12345,
"name": "NRQL Condition",
"runbook_url": "https://example.com/runbook.md",
"violation_time_limit_seconds": 3600,
"enabled": true,
"terms": [
{
Expand Down

0 comments on commit 592d46d

Please sign in to comment.