Skip to content

Commit 47a6e27

Browse files
authored
docs(slo): Fixing value description getting inappropriately attributed to all value tags (#1720)
1 parent eccd600 commit 47a6e27

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

Diff for: docs/resources/slo.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ Optional:
218218

219219
Required:
220220

221-
- `key` (String)
222-
- `value` (String)
221+
- `key` (String) Key for filtering and identification
222+
- `value` (String) Templatable value
223223

224224

225225
<a id="nestedblock--alerting--fastburn"></a>
@@ -235,17 +235,17 @@ Optional:
235235

236236
Required:
237237

238-
- `key` (String)
239-
- `value` (String)
238+
- `key` (String) Key for filtering and identification
239+
- `value` (String) Templatable value
240240

241241

242242
<a id="nestedblock--alerting--fastburn--label"></a>
243243
### Nested Schema for `alerting.fastburn.label`
244244

245245
Required:
246246

247-
- `key` (String)
248-
- `value` (String)
247+
- `key` (String) Key for filtering and identification
248+
- `value` (String) Templatable value
249249

250250

251251

@@ -254,8 +254,8 @@ Required:
254254

255255
Required:
256256

257-
- `key` (String)
258-
- `value` (String)
257+
- `key` (String) Key for filtering and identification
258+
- `value` (String) Templatable value
259259

260260

261261
<a id="nestedblock--alerting--slowburn"></a>
@@ -271,17 +271,17 @@ Optional:
271271

272272
Required:
273273

274-
- `key` (String)
275-
- `value` (String)
274+
- `key` (String) Key for filtering and identification
275+
- `value` (String) Templatable value
276276

277277

278278
<a id="nestedblock--alerting--slowburn--label"></a>
279279
### Nested Schema for `alerting.slowburn.label`
280280

281281
Required:
282282

283-
- `key` (String)
284-
- `value` (String)
283+
- `key` (String) Key for filtering and identification
284+
- `value` (String) Templatable value
285285

286286

287287

@@ -299,8 +299,8 @@ Optional:
299299

300300
Required:
301301

302-
- `key` (String)
303-
- `value` (String)
302+
- `key` (String) Key for filtering and identification
303+
- `value` (String) Templatable value
304304

305305
## Import
306306

Diff for: internal/resources/slo/resource_slo.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,14 @@ Resource manages Grafana SLOs.
259259
var keyvalueSchema = &schema.Resource{
260260
Schema: map[string]*schema.Schema{
261261
"key": {
262-
Type: schema.TypeString,
263-
Required: true,
262+
Type: schema.TypeString,
263+
Required: true,
264+
Description: `Key for filtering and identification`,
264265
},
265266
"value": {
266-
Type: schema.TypeString,
267-
Required: true,
267+
Type: schema.TypeString,
268+
Required: true,
269+
Description: `Templatable value`,
268270
},
269271
},
270272
}

0 commit comments

Comments
 (0)