4
4
"context"
5
5
"net/http"
6
6
"net/url"
7
+ "time"
7
8
8
9
"go.opentelemetry.io/otel/attribute"
9
10
"go.opentelemetry.io/otel/trace"
@@ -14,6 +15,8 @@ type Notifier struct {
14
15
ID string `json:"id"`
15
16
// Name is the name of the notifier.
16
17
Name string `json:"name"`
18
+ // DisabledUntil sets the notifier's disabled until property.
19
+ DisabledUntil time.Time `json:"disabledUntil"`
17
20
// Properties of the notifier.
18
21
Properties NotifierProperties `json:"properties"`
19
22
}
@@ -33,6 +36,8 @@ type NotifierProperties struct {
33
36
Slack * SlackConfig `json:"slack,omitempty"`
34
37
// Webhook configuration.
35
38
Webhook * WebhookConfig `json:"webhook,omitempty"`
39
+ // MicrosoftTeams configuration.
40
+ MicrosoftTeams * MicrosoftTeams `json:"microsoftTeams,omitempty"`
36
41
}
37
42
38
43
type DiscordConfig struct {
@@ -76,6 +81,11 @@ type WebhookConfig struct {
76
81
URL string `json:"url,omitempty"`
77
82
}
78
83
84
+ type MicrosoftTeams struct {
85
+ // URL is the URL to send the message to.
86
+ URL string `json:"microsoftTeamsUrl,omitempty"`
87
+ }
88
+
79
89
// Axiom API Reference: /v2/notifiers
80
90
type NotifiersService service
81
91
0 commit comments