@@ -12,10 +12,27 @@ provider "axiom" {
1212}
1313
1414resource "axiom_dataset" "test_dataset" {
15- name = " test_dataset"
15+ name = " test_dataset"
1616 description = " This is a test dataset created by Terraform."
1717}
1818
19+ resource "axiom_dashboard" "test_dashboard" {
20+ uid = " terraform-example-dashboard"
21+ overwrite = false
22+
23+ dashboard = jsonencode ({
24+ name = " Terraform Example Dashboard"
25+ description = " Basic dashboard managed by Terraform"
26+ owner = " X-AXIOM-EVERYONE"
27+ refreshTime = 60
28+ schemaVersion = 2
29+ timeWindowStart = " qr-now-1h"
30+ timeWindowEnd = " qr-now"
31+ charts = []
32+ layout = []
33+ })
34+ }
35+
1936resource "axiom_notifier" "test_slack_notifier" {
2037 name = " test_slack_notifier"
2138 properties = {
@@ -28,25 +45,25 @@ resource "axiom_notifier" "test_slack_notifier" {
2845resource "axiom_virtual_field" "test" {
2946 name = " VF"
3047 description = " my virtual field"
31- expression = " a * b"
32- dataset = " terraform-provider-dataset"
48+ expression = " a * b"
49+ dataset = " terraform-provider-dataset"
3350}
3451
3552resource "axiom_notifier" "test_discord_notifier" {
3653 name = " test_discord_notifier"
3754 properties = {
3855 discord = {
3956 discord_channel = " DISCORD_CHANNEL"
40- discord_token = " DISCORD_TOKEN"
57+ discord_token = " DISCORD_TOKEN"
4158 }
4259 }
4360}
4461
4562resource "axiom_notifier" "test_email_notifier" {
4663 name = " test_email_notifier"
4764 properties = {
48- email= {
49- emails = [" EMAIL1" ," EMAIL2" ]
65+ email = {
66+ emails = [" EMAIL1" , " EMAIL2" ]
5067 }
5168 }
5269}
0 commit comments