@@ -25,7 +25,7 @@ func monitoringDataSource() *schema.Resource {
2525 return & schema.Resource {
2626 SchemaVersion : 1 ,
2727
28- Description : "Use this data source to configure editable options for workspaces." ,
28+ Description : "Use this data source to configure monitoring for workspaces." ,
2929 ReadContext : func (ctx context.Context , rd * schema.ResourceData , i interface {}) 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 the input of a parameter ." ,
120+ Description : "Validate the values of the 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