# README

Grafana Notification Policy

To set a Grafana notification policy tree:

setupGrafanaNotificationPolicy := grafana_notification_policies.GrafanaNotificationPolicyTree{
            GroupBy:        []string{"hello-world", "alertname"},
            GroupInterval:  "5m",
            GroupWait:      "10s",
            Receiver:       grafanaDefaultReceiver,
            RepeatInterval: "5h",
            Routes: []grafana_notification_policies.GrafanaNotificationPolicy{
            {
            Receiver:       grafanaDefaultReceiver,
            ObjectMatchers: grafana_notification_policies.MatchersObj{grafana_notification_policies.MatcherObj{"hello", "=", "darkness"}},
            Continue:       true,
            },
            {
            Receiver:       grafanaDefaultReceiver,
                    ObjectMatchers: grafana_notification_policies.MatchersObj{grafana_notification_policies.MatcherObj{"my", "=~", "oldfriend.*"}},
                    Continue:       false,
                },
            },
        }
client, err := grafana_alerts.New(apiToken, server.URL)
err = client.SetupGrafanaNotificationPolicyTree(setupGrafanaNotificationPolicy)
functionfunc name
set grafana notification policy treefunc (c *GrafanaNotificationPolicyClient) SetupGrafanaNotificationPolicyTree(payload GrafanaNotificationPolicyTree) error
get grafana notification policy treefunc (c *GrafanaNotificationPolicyClient) GetGrafanaNotificationPolicyTree() (GrafanaNotificationPolicyTree, error)
reset grafana notification policy treefunc (c *GrafanaNotificationPolicyClient) ResetGrafanaNotificationPolicyTree() error

# Functions

No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author