Skip to content

Commit a4024f4

Browse files
committed
feat: implement cron monitor management
1 parent f15ac71 commit a4024f4

File tree

11 files changed

+1787
-7
lines changed

11 files changed

+1787
-7
lines changed

docs/resources/monitor.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "sentry_monitor Resource - terraform-provider-sentry"
4+
subcategory: ""
5+
description: |-
6+
Return a client monitor bound to a project.
7+
---
8+
9+
# sentry_monitor (Resource)
10+
11+
Return a client monitor bound to a project.
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `config` (Attributes) (see [below for nested schema](#nestedatt--config))
21+
- `name` (String)
22+
- `organization` (String) The organization of this resource.
23+
- `project` (String) The project of this resource.
24+
- `slug` (String)
25+
26+
### Optional
27+
28+
- `is_muted` (Boolean)
29+
- `owner` (String)
30+
- `status` (String)
31+
32+
### Read-Only
33+
34+
- `id` (String) The ID of this resource.
35+
36+
<a id="nestedatt--config"></a>
37+
### Nested Schema for `config`
38+
39+
Optional:
40+
41+
- `alert_rule_id` (Number)
42+
- `checkin_margin` (Number)
43+
- `failure_issue_threshold` (Number)
44+
- `max_runtime` (Number)
45+
- `recovery_threshold` (Number)
46+
- `schedule_crontab` (String)
47+
- `schedule_interval` (Attributes) (see [below for nested schema](#nestedatt--config--schedule_interval))
48+
- `timezone` (String)
49+
50+
<a id="nestedatt--config--schedule_interval"></a>
51+
### Nested Schema for `config.schedule_interval`
52+
53+
Optional:
54+
55+
- `day` (Number)
56+
- `hour` (Number)
57+
- `minute` (Number)
58+
- `month` (Number)
59+
- `week` (Number)
60+
- `year` (Number)

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ require (
2121
github.com/orange-cloudavenue/terraform-plugin-framework-superschema v1.11.0
2222
github.com/orange-cloudavenue/terraform-plugin-framework-supertypes v1.2.0
2323
github.com/peterhellberg/link v1.2.0
24+
github.com/stretchr/testify v1.10.0
2425
golang.org/x/sync v0.14.0
2526
)
2627

@@ -38,6 +39,7 @@ require (
3839
github.com/bgentry/speakeasy v0.1.0 // indirect
3940
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
4041
github.com/cloudflare/circl v1.3.7 // indirect
42+
github.com/davecgh/go-spew v1.1.1 // indirect
4143
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
4244
github.com/fatih/color v1.18.0 // indirect
4345
github.com/getkin/kin-openapi v0.127.0 // indirect
@@ -81,6 +83,7 @@ require (
8183
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
8284
github.com/oklog/run v1.1.0 // indirect
8385
github.com/perimeterx/marshmallow v1.1.5 // indirect
86+
github.com/pmezard/go-difflib v1.0.0 // indirect
8487
github.com/posener/complete v1.2.3 // indirect
8588
github.com/shopspring/decimal v1.3.1 // indirect
8689
github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ github.com/hashicorp/terraform-plugin-framework v1.14.1 h1:jaT1yvU/kEKEsxnbrn4ZH
142142
github.com/hashicorp/terraform-plugin-framework v1.14.1/go.mod h1:xNUKmvTs6ldbwTuId5euAtg37dTxuyj3LHS3uj7BHQ4=
143143
github.com/hashicorp/terraform-plugin-framework-timeouts v0.5.0 h1:I/N0g/eLZ1ZkLZXUQ0oRSXa8YG/EF0CEuQP1wXdrzKw=
144144
github.com/hashicorp/terraform-plugin-framework-timeouts v0.5.0/go.mod h1:t339KhmxnaF4SzdpxmqW8HnQBHVGYazwtfxU0qCs4eE=
145+
github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0 h1:v3DapR8gsp3EM8fKMh6up9cJUFQ2iRaFsYLP8UJnCco=
146+
github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0/go.mod h1:c3PnGE9pHBDfdEVG9t1S1C9ia5LW+gkFR0CygXlM8ak=
145147
github.com/hashicorp/terraform-plugin-framework-validators v0.17.0 h1:0uYQcqqgW3BMyyve07WJgpKorXST3zkpzvrOnf3mpbg=
146148
github.com/hashicorp/terraform-plugin-framework-validators v0.17.0/go.mod h1:VwdfgE/5Zxm43flraNa0VjcvKQOGVrcO4X8peIri0T0=
147149
github.com/hashicorp/terraform-plugin-go v0.26.0 h1:cuIzCv4qwigug3OS7iKhpGAbZTiypAfFQmw8aE65O2M=
@@ -241,8 +243,6 @@ github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE=
241243
github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg=
242244
github.com/orange-cloudavenue/terraform-plugin-framework-superschema v1.11.0 h1:uezhiY+wp4khq2i9z2jbr26e816BQYKFolCjsZlLIzU=
243245
github.com/orange-cloudavenue/terraform-plugin-framework-superschema v1.11.0/go.mod h1:2R4+FiimXRb6we3IP4Jy4XwkmPG17isxcjUfYEWLJ44=
244-
github.com/orange-cloudavenue/terraform-plugin-framework-supertypes v1.1.1 h1:5r0bXWxmY/p8YtYsS0ZQNE+fJ5BhUVSVGtVbvENad1c=
245-
github.com/orange-cloudavenue/terraform-plugin-framework-supertypes v1.1.1/go.mod h1:iIp5TGuiJnDvcSCYq7mWYIn4HSmjntHv+IJGMK0MsZw=
246246
github.com/orange-cloudavenue/terraform-plugin-framework-supertypes v1.2.0 h1:tvDLBfqkKQdlcPyb3dZsZMM52mpzVpys2a9ar/38ulE=
247247
github.com/orange-cloudavenue/terraform-plugin-framework-supertypes v1.2.0/go.mod h1:5SJrMDAHcQopy+p9Oq3anoaqclPZgTs27b0WQ3J97E0=
248248
github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s=
@@ -343,8 +343,6 @@ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJ
343343
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
344344
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
345345
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
346-
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
347-
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
348346
golang.org/x/sync v0.14.0 h1:woo0S4Yywslg6hp4eUFjTVOyKt0RookbpAHG4c1HmhQ=
349347
golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
350348
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

0 commit comments

Comments
 (0)