diff --git a/jobs/resource_job.go b/jobs/resource_job.go index 128576cf86..c46bd9689c 100644 --- a/jobs/resource_job.go +++ b/jobs/resource_job.go @@ -158,7 +158,7 @@ type GitSource struct { type JobHealthRule struct { Metric string `json:"metric,omitempty"` Operation string `json:"op,omitempty"` - Value int32 `json:"value,omitempty"` + Value int64 `json:"value,omitempty"` } type JobHealth struct { diff --git a/jobs/resource_job_test.go b/jobs/resource_job_test.go index 453389971b..3219275624 100644 --- a/jobs/resource_job_test.go +++ b/jobs/resource_job_test.go @@ -171,7 +171,7 @@ func TestResourceJobCreate_MultiTask(t *testing.T) { { Metric: "RUN_DURATION_SECONDS", Operation: "GREATER_THAN", - Value: 3600, + Value: 50000000000, // 5 * 10^10 }, }, }, @@ -260,7 +260,7 @@ func TestResourceJobCreate_MultiTask(t *testing.T) { rules { metric = "RUN_DURATION_SECONDS" op = "GREATER_THAN" - value = 3600 + value = 50000000000 } }