Skip to content

Commit d10843b

Browse files
Add import to the SM check documentation (#333)
1 parent 4b9f71c commit d10843b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/resources/synthetic_monitoring_check.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,4 +614,10 @@ Optional:
614614
- **max_unknown_hops** (Number) Maximum number of hosts to travers that give no response Defaults to `15`.
615615
- **ptr_lookup** (Boolean) Reverse lookup hostnames from IP addresses Defaults to `true`.
616616

617+
## Import
617618

619+
Import is supported using the following syntax:
620+
621+
```shell
622+
terraform import grafana_synthetic_monitoring_check.check {{check-id}}
623+
```

templates/resources/synthetic_monitoring_check.md.tmpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ description: |-
5454

5555
{{ .SchemaMarkdown | trimspace }}
5656

57-
{{ if .HasImport -}}
5857
## Import
5958

6059
Import is supported using the following syntax:
6160

62-
{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
63-
{{- end }}
61+
{{ codefile "shell" "examples/resources/grafana_synthetic_monitoring_check/import.sh" }}

0 commit comments

Comments
 (0)