Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit031b4dc

Browse files
committed
add coder_monitoring component
1 parentf42521d commit031b4dc

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

‎provider/monitoring.go‎

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func monitoringDataSource() *schema.Resource {
2525
return&schema.Resource{
2626
SchemaVersion:1,
2727

28-
Description:"Use this data source to configureeditable options for workspaces.",
28+
Description:"Use this data source to configuremonitoring for workspaces.",
2929
ReadContext:func(ctx context.Context,rd*schema.ResourceData,iinterface{}) diag.Diagnostics {
3030
rd.SetId(uuid.NewString())
3131

@@ -71,17 +71,17 @@ func monitoringDataSource() *schema.Resource {
7171
"threshold": {
7272
Type:schema.TypeInt,
7373
Optional:true,
74-
Description:"The threshold for the monitoring module.",
74+
Description:"The threshold for the monitoring module - expressed in percentage.",
7575
},
7676
"memory_threshold": {
7777
Type:schema.TypeInt,
7878
Optional:true,
79-
Description:"The memory threshold for the monitoring module.",
79+
Description:"The memory threshold for the monitoring module - expressed in percentage.",
8080
},
8181
"disk_threshold": {
8282
Type:schema.TypeInt,
8383
Optional:true,
84-
Description:"The disk threshold for the monitoring module.",
84+
Description:"The disk threshold for the monitoring module - expressed in percentage.",
8585
},
8686
"disks": {
8787
Type:schema.TypeList,
@@ -117,40 +117,19 @@ func monitoringDataSource() *schema.Resource {
117117
Type:schema.TypeList,
118118
MaxItems:1,
119119
Optional:true,
120-
Description:"Validate theinput ofa parameter.",
120+
Description:"Validate thevalues ofthe monitoring module.",
121121
Elem:&schema.Resource{
122122
Schema:map[string]*schema.Schema{
123123
"min": {
124124
Type:schema.TypeInt,
125125
Optional:true,
126126
Description:"The minimum of a number parameter.",
127127
},
128-
"min_disabled": {
129-
Type:schema.TypeBool,
130-
Computed:true,
131-
Description:"Helper field to check if min is present",
132-
},
133128
"max": {
134129
Type:schema.TypeInt,
135130
Optional:true,
136131
Description:"The maximum of a number parameter.",
137132
},
138-
"max_disabled": {
139-
Type:schema.TypeBool,
140-
Computed:true,
141-
Description:"Helper field to check if max is present",
142-
},
143-
"monotonic": {
144-
Type:schema.TypeString,
145-
Optional:true,
146-
Description:"Number monotonicity, either increasing or decreasing.",
147-
},
148-
"regex": {
149-
Type:schema.TypeString,
150-
ConflictsWith: []string{"validation.0.min","validation.0.max","validation.0.monotonic"},
151-
Description:"A regex for the input parameter to match against.",
152-
Optional:true,
153-
},
154133
"error": {
155134
Type:schema.TypeString,
156135
Optional:true,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp