<commit_before>package gapi

import (
	"bytes"
	"encoding/json"
	"fmt"
)

// AlertNotification represents a Grafana alert notification.
type AlertNotification struct {
	ID                    int64       `json:"id,omitempty"`
	UID                   string      `json:"uid"`
	Name                  string      `json:"name"`
	Type                  string      `json:"type"`
	IsDefault             bool        `json:"isDefault"`
	DisableResolveMessage bool        `json:"disableResolveMessage"`
	SendReminder          bool        `json:"sendReminder"`
	Frequency             string      `json:"frequency"`
	Settings              interface{} `json:"settings"`
}

// AlertNotifications fetches and returns Grafana alert notifications.<commit_msg>updated with secureSettings and secureFields for tf provider support (#21)<commit_after>package gapi

import (
	"bytes"
	"encoding/json"
	"fmt"
)

// AlertNotification represents a Grafana alert notification.
type AlertNotification struct {
	ID                    int64       `json:"id,omitempty"`
	UID                   string      `json:"uid"`
	Name                  string      `json:"name"`
	Type                  string      `json:"type"`
	IsDefault             bool        `json:"isDefault"`
	DisableResolveMessage bool        `json:"disableResolveMessage"`
	SendReminder          bool        `json:"sendReminder"`
	Frequency             string      `json:"frequency"`
	Settings              interface{} `json:"settings"`
	SecureFields          interface{} `json:"secureFields,omitempty"`
	SecureSettings        interface{} `json:"secureSettings,omitempty"`
}

// AlertNotifications fetches and returns Grafana alert notifications.
{'fraction_non_alphanumeric': 0.09242695289206918, 'fraction_numerical': 0.0035778175313059034, 'mean_word_length': 2.264591439688716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2088571', 'n_tokens_mistral': 427, 'n_tokens_neox': 411, 'n_words': 112}