@@ -25,7 +25,7 @@ func monitoringDataSource() *schema.Resource {
25
25
return & schema.Resource {
26
26
SchemaVersion : 1 ,
27
27
28
- Description : "Use this data source to configure editable options for workspaces." ,
28
+ Description : "Use this data source to configure monitoring for workspaces." ,
29
29
ReadContext : func (ctx context.Context , rd * schema.ResourceData , i interface {}) diag.Diagnostics {
30
30
rd .SetId (uuid .NewString ())
31
31
@@ -71,17 +71,17 @@ func monitoringDataSource() *schema.Resource {
71
71
"threshold" : {
72
72
Type : schema .TypeInt ,
73
73
Optional : true ,
74
- Description : "The threshold for the monitoring module." ,
74
+ Description : "The threshold for the monitoring module - expressed in percentage ." ,
75
75
},
76
76
"memory_threshold" : {
77
77
Type : schema .TypeInt ,
78
78
Optional : true ,
79
- Description : "The memory threshold for the monitoring module." ,
79
+ Description : "The memory threshold for the monitoring module - expressed in percentage ." ,
80
80
},
81
81
"disk_threshold" : {
82
82
Type : schema .TypeInt ,
83
83
Optional : true ,
84
- Description : "The disk threshold for the monitoring module." ,
84
+ Description : "The disk threshold for the monitoring module - expressed in percentage ." ,
85
85
},
86
86
"disks" : {
87
87
Type : schema .TypeList ,
@@ -117,40 +117,19 @@ func monitoringDataSource() *schema.Resource {
117
117
Type : schema .TypeList ,
118
118
MaxItems : 1 ,
119
119
Optional : true ,
120
- Description : "Validate the input of a parameter ." ,
120
+ Description : "Validate the values of the monitoring module ." ,
121
121
Elem : & schema.Resource {
122
122
Schema : map [string ]* schema.Schema {
123
123
"min" : {
124
124
Type : schema .TypeInt ,
125
125
Optional : true ,
126
126
Description : "The minimum of a number parameter." ,
127
127
},
128
- "min_disabled" : {
129
- Type : schema .TypeBool ,
130
- Computed : true ,
131
- Description : "Helper field to check if min is present" ,
132
- },
133
128
"max" : {
134
129
Type : schema .TypeInt ,
135
130
Optional : true ,
136
131
Description : "The maximum of a number parameter." ,
137
132
},
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
- },
154
133
"error" : {
155
134
Type : schema .TypeString ,
156
135
Optional : true ,
0 commit comments