Skip to content

Commit b9acb96

Browse files
committed
Update version to 1.4.8 and add new dashboard resource in example configuration
1 parent a9fe711 commit b9acb96

2 files changed

Lines changed: 24 additions & 7 deletions

File tree

axiom/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
var providerVersion = "dev"
2020

2121
func providerUserAgent() string {
22-
version := strings.TrimSpace(providerVersion)
22+
version := strings.TrimSpace(providerVersion)
2323
if version == "" {
2424
version = "dev"
2525
}

example/main.tf

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,27 @@ provider "axiom" {
1212
}
1313

1414
resource "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+
1936
resource "axiom_notifier" "test_slack_notifier" {
2037
name = "test_slack_notifier"
2138
properties = {
@@ -28,25 +45,25 @@ resource "axiom_notifier" "test_slack_notifier" {
2845
resource "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

3552
resource "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

4562
resource "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

Comments
 (0)