Versions in this module Expand all Collapse all v0 v0.0.1 Jul 26, 2023 Changes in this version + const ErrAlerting + const ErrError + const ErrOK + const NoData + const NoDataAlerting + const NoDataOk + func ExtractHeadersFromJSONData(jsonData, secureJSONData map[string]interface{}) (map[string]interface{}, map[string]interface{}, map[string]string) + func ForceDeleteFolderRules() url.Values + func JSONDataWithHeaders(jsonData, secureJSONData map[string]interface{}, headers map[string]string) (map[string]interface{}, map[string]interface{}) + type Alert struct + DashboardID int64 + DashboardSlug string + DashboardUID string + EvalDate string + ExecutionError string + ID int64 + Name string + NewStateDate string + PanelID int64 + State string + URL string + type AlertNotification struct + DisableResolveMessage bool + Frequency string + ID int64 + IsDefault bool + Name string + SecureFields interface{} + SecureSettings interface{} + SendReminder bool + Settings interface{} + Type string + UID string + type AlertQuery struct + DatasourceUID string + Model interface{} + QueryType string + RefID string + RelativeTimeRange RelativeTimeRange + type AlertRule struct + Annotations map[string]string + Condition string + Data []*AlertQuery + ExecErrState ExecErrState + FolderUID string + For string + ForDuration time.Duration + ID int64 + IsPaused bool + Labels map[string]string + NoDataState NoDataState + OrgID int64 + Provenance string + RuleGroup string + Title string + UID string + Updated time.Time + type Alerting struct + Annotations []Label + FastBurn *AlertingMetadata + Labels []Label + SlowBurn *AlertingMetadata + type AlertingMessageTemplate struct + Name string + Template string + type AlertingMetadata struct + Annotations []Label + Labels []Label + type Annotation struct + AlertID int64 + DashboardID int64 + DashboardUID string + ID int64 + IsRegion bool + Metric string + NewState string + PanelID int64 + PrevState string + RegionID int64 + Tags []string + Text string + Time int64 + TimeEnd int64 + Type string + UserID int64 + UserName string + type BuiltInRoleAssignment struct + BuiltinRole string + Global bool + RoleUID string + type Client struct + func New(baseURL string, cfg Config) (*Client, error) + func (c *Client) AddDatasourcePermission(id int64, item *DatasourcePermissionAddPayload) error + func (c *Client) AddOrgUser(orgID int64, user, role string) error + func (c *Client) AddTeam(name string, email string) (int64, error) + func (c *Client) AddTeamMember(id int64, userID int64) error + func (c *Client) Alert(id int64) (Alert, error) + func (c *Client) AlertNotification(id int64) (*AlertNotification, error) + func (c *Client) AlertNotifications() ([]AlertNotification, error) + func (c *Client) AlertRule(uid string) (AlertRule, error) + func (c *Client) AlertRuleGroup(folderUID string, name string) (RuleGroup, error) + func (c *Client) AlertRules() ([]AlertRule, error) + func (c *Client) Alerts(params url.Values) ([]Alert, error) + func (c *Client) Annotations(params url.Values) ([]Annotation, error) + func (c *Client) CloudAccessPolicies(region string) (CloudAccessPolicyItems, error) + func (c *Client) CloudAccessPolicyByID(region, id string) (CloudAccessPolicy, error) + func (c *Client) CloudAccessPolicyTokenByID(region, id string) (CloudAccessPolicyToken, error) + func (c *Client) CloudAccessPolicyTokens(region, accessPolicyID string) (CloudAccessPolicyTokenItems, error) + func (c *Client) ContactPoint(uid string) (ContactPoint, error) + func (c *Client) ContactPoints() ([]ContactPoint, error) + func (c *Client) ContactPointsByName(name string) ([]ContactPoint, error) + func (c *Client) CreateAPIKey(request CreateAPIKeyRequest) (CreateAPIKeyResponse, error) + func (c *Client) CreateCloudAPIKey(org string, input *CreateCloudAPIKeyInput) (*CloudAPIKey, error) + func (c *Client) CreateCloudAccessPolicy(region string, input CreateCloudAccessPolicyInput) (CloudAccessPolicy, error) + func (c *Client) CreateCloudAccessPolicyToken(region string, input CreateCloudAccessPolicyTokenInput) (CloudAccessPolicyToken, error) + func (c *Client) CreateGrafanaAPIKeyFromCloud(stack string, input *CreateAPIKeyRequest) (*CreateAPIKeyResponse, error) + func (c *Client) CreateGrafanaServiceAccountFromCloud(stack string, input *CreateServiceAccountRequest) (*ServiceAccountDTO, error) + func (c *Client) CreateGrafanaServiceAccountTokenFromCloud(stack string, input *CreateServiceAccountTokenRequest) (*CreateServiceAccountTokenResponse, error) + func (c *Client) CreateServiceAccount(request CreateServiceAccountRequest) (*ServiceAccountDTO, error) + func (c *Client) CreateServiceAccountToken(request CreateServiceAccountTokenRequest) (*CreateServiceAccountTokenResponse, error) + func (c *Client) CreateSlo(slo Slo) (CreateSLOResponse, error) + func (c *Client) CreateTemporaryStackGrafanaClient(stackSlug, tempSaPrefix string, tempKeyDuration time.Duration) (tempClient *Client, cleanup func() error, err error) + func (c *Client) CreateUser(user User) (int64, error) + func (c *Client) Dashboard(slug string) (*Dashboard, error) + func (c *Client) DashboardByUID(uid string) (*Dashboard, error) + func (c *Client) DashboardPermissions(id int64) ([]*DashboardPermission, error) + func (c *Client) DashboardPermissionsByUID(uid string) ([]*DashboardPermission, error) + func (c *Client) Dashboards() ([]FolderDashboardSearchResponse, error) + func (c *Client) DashboardsByIDs(ids []int64) ([]FolderDashboardSearchResponse, error) + func (c *Client) DataSource(id int64) (*DataSource, error) + func (c *Client) DataSourceByUID(uid string) (*DataSource, error) + func (c *Client) DataSourceIDByName(name string) (int64, error) + func (c *Client) DataSources() ([]*DataSource, error) + func (c *Client) DatasourcePermissions(id int64) (*DatasourcePermissionsResponse, error) + func (c *Client) DeleteAPIKey(id int64) (DeleteAPIKeyResponse, error) + func (c *Client) DeleteAlertNotification(id int64) error + func (c *Client) DeleteAlertRule(uid string) error + func (c *Client) DeleteAnnotation(id int64) (string, error) + func (c *Client) DeleteAnnotationByRegionID(id int64) (string, error) + func (c *Client) DeleteBuiltInRoleAssignment(builtInRole BuiltInRoleAssignment) error + func (c *Client) DeleteCloudAPIKey(org string, keyName string) error + func (c *Client) DeleteCloudAccessPolicy(region, id string) error + func (c *Client) DeleteCloudAccessPolicyToken(region, id string) error + func (c *Client) DeleteContactPoint(uid string) error + func (c *Client) DeleteDashboard(slug string) error + func (c *Client) DeleteDashboardByUID(uid string) error + func (c *Client) DeleteDataSource(id int64) error + func (c *Client) DeleteDataSourceByName(name string) error + func (c *Client) DeleteFolder(id string, optionalQueryParams ...url.Values) error + func (c *Client) DeleteLibraryPanel(uid string) (*LibraryPanelDeleteResponse, error) + func (c *Client) DeleteMessageTemplate(name string) error + func (c *Client) DeleteMuteTiming(name string) error + func (c *Client) DeleteOrg(id int64) error + func (c *Client) DeletePlaylist(idOrUID string) error + func (c *Client) DeleteReport(id int64) error + func (c *Client) DeleteRole(uid string, global bool) error + func (c *Client) DeleteServiceAccount(serviceAccountID int64) (*DeleteServiceAccountResponse, error) + func (c *Client) DeleteServiceAccountToken(serviceAccountID, tokenID int64) (*DeleteServiceAccountResponse, error) + func (c *Client) DeleteSlo(uuid string) error + func (c *Client) DeleteStack(stackSlug string) error + func (c *Client) DeleteTeam(id int64) error + func (c *Client) DeleteTeamGroup(id int64, groupID string) error + func (c *Client) DeleteUser(id int64) error + func (c *Client) DisableDatasourcePermissions(id int64) error + func (c *Client) EnableDatasourcePermissions(id int64) error + func (c *Client) Folder(id int64) (*Folder, error) + func (c *Client) FolderByUID(uid string) (*Folder, error) + func (c *Client) FolderDashboardSearch(params url.Values) (resp []FolderDashboardSearchResponse, err error) + func (c *Client) FolderPermissions(fid string) ([]*FolderPermission, error) + func (c *Client) Folders() ([]Folder, error) + func (c *Client) GetAPIKeys(includeExpired bool) ([]*GetAPIKeysResponse, error) + func (c *Client) GetBuiltInRoleAssignments() (map[string][]*Role, error) + func (c *Client) GetCloudOrg(org string) (CloudOrg, error) + func (c *Client) GetCloudPluginInstallation(stackSlug string, pluginSlug string) (*CloudPluginInstallation, error) + func (c *Client) GetCloudRegionBySlug(slug string) (CloudRegion, error) + func (c *Client) GetCloudRegions() (CloudRegionsResponse, error) + func (c *Client) GetRole(uid string) (*Role, error) + func (c *Client) GetRoleAssignments(uid string) (*RoleAssignments, error) + func (c *Client) GetRoles() ([]Role, error) + func (c *Client) GetServiceAccountPermissions(id int64) ([]*ServiceAccountPermission, error) + func (c *Client) GetServiceAccountTokens(serviceAccountID int64) ([]GetServiceAccountTokensResponse, error) + func (c *Client) GetServiceAccounts() ([]ServiceAccountDTO, error) + func (c *Client) GetSlo(uuid string) (Slo, error) + func (c *Client) Health() (HealthResponse, error) + func (c *Client) InstallCloudPlugin(stackSlug string, pluginSlug string, pluginVersion string) (*CloudPluginInstallation, error) + func (c *Client) IsCloudPluginInstalled(stackSlug string, pluginSlug string) (bool, error) + func (c *Client) LibraryPanelByName(name string) (*LibraryPanel, error) + func (c *Client) LibraryPanelByUID(uid string) (*LibraryPanel, error) + func (c *Client) LibraryPanelConnectedDashboards(uid string) ([]FolderDashboardSearchResponse, error) + func (c *Client) LibraryPanelConnections(uid string) (*[]LibraryPanelConnection, error) + func (c *Client) LibraryPanels() ([]LibraryPanel, error) + func (c *Client) ListCloudAPIKeys(org string) (*ListCloudAPIKeysOutput, error) + func (c *Client) ListSlos() (Slos, error) + func (c *Client) MessageTemplate(name string) (*AlertingMessageTemplate, error) + func (c *Client) MessageTemplates() ([]AlertingMessageTemplate, error) + func (c *Client) MuteTiming(name string) (MuteTiming, error) + func (c *Client) MuteTimings() ([]MuteTiming, error) + func (c *Client) NewAlertNotification(a *AlertNotification) (int64, error) + func (c *Client) NewAlertRule(ar *AlertRule) (string, error) + func (c *Client) NewAnnotation(a *Annotation) (int64, error) + func (c *Client) NewBuiltInRoleAssignment(builtInRoleAssignment BuiltInRoleAssignment) (*BuiltInRoleAssignment, error) + func (c *Client) NewContactPoint(p *ContactPoint) (string, error) + func (c *Client) NewDashboard(dashboard Dashboard) (*DashboardSaveResponse, error) + func (c *Client) NewDataSource(s *DataSource) (int64, error) + func (c *Client) NewFolder(title string, uid ...string) (Folder, error) + func (c *Client) NewGraphiteAnnotation(gfa *GraphiteAnnotation) (int64, error) + func (c *Client) NewLibraryPanel(panel LibraryPanel) (*LibraryPanel, error) + func (c *Client) NewMuteTiming(mt *MuteTiming) error + func (c *Client) NewOrg(name string) (int64, error) + func (c *Client) NewPlaylist(playlist Playlist) (string, error) + func (c *Client) NewReport(report Report) (int64, error) + func (c *Client) NewRole(role Role) (*Role, error) + func (c *Client) NewSnapshot(snapshot Snapshot) (*SnapshotCreateResponse, error) + func (c *Client) NewStack(stack *CreateStackInput) (int64, error) + func (c *Client) NewTeamGroup(id int64, groupID string) error + func (c *Client) NotificationPolicyTree() (NotificationPolicyTree, error) + func (c *Client) Org(id int64) (Org, error) + func (c *Client) OrgByName(name string) (Org, error) + func (c *Client) OrgPreferences() (Preferences, error) + func (c *Client) OrgUsers(orgID int64) ([]OrgUser, error) + func (c *Client) OrgUsersCurrent() ([]OrgUser, error) + func (c *Client) Orgs() ([]Org, error) + func (c *Client) PatchAnnotation(id int64, a *Annotation) (string, error) + func (c *Client) PatchLibraryPanel(uid string, panel LibraryPanel) (*LibraryPanel, error) + func (c *Client) PauseAlert(id int64) (PauseAlertResponse, error) + func (c *Client) PauseAllAlerts() (PauseAllAlertsResponse, error) + func (c *Client) Playlist(idOrUID string) (*Playlist, error) + func (c *Client) PluginByID(pluginID int64) (*Plugin, error) + func (c *Client) PluginBySlug(slug string) (*Plugin, error) + func (c *Client) RemoveDatasourcePermission(id, permissionID int64) error + func (c *Client) RemoveMemberFromTeam(id int64, userID int64) error + func (c *Client) RemoveOrgUser(orgID, userID int64) error + func (c *Client) Report(id int64) (*Report, error) + func (c *Client) ResetNotificationPolicyTree() error + func (c *Client) SaveDashboard(model map[string]interface{}, overwrite bool) (*DashboardSaveResponse, error) + func (c *Client) SearchTeam(query string) (*SearchTeam, error) + func (c *Client) SetAlertRuleGroup(group RuleGroup) error + func (c *Client) SetMessageTemplate(name, content string) error + func (c *Client) SetNotificationPolicyTree(np *NotificationPolicyTree) error + func (c *Client) StackByID(id int64) (Stack, error) + func (c *Client) StackBySlug(slug string) (Stack, error) + func (c *Client) Stacks() (StackItems, error) + func (c *Client) Team(id int64) (*Team, error) + func (c *Client) TeamGroups(id int64) ([]TeamGroup, error) + func (c *Client) TeamMembers(id int64) ([]*TeamMember, error) + func (c *Client) TeamPreferences(id int64) (*Preferences, error) + func (c *Client) UninstallCloudPlugin(stackSlug string, pluginSlug string) error + func (c *Client) UpdateAlertNotification(a *AlertNotification) error + func (c *Client) UpdateAlertRule(ar *AlertRule) error + func (c *Client) UpdateAllOrgPreferences(p Preferences) (UpdateOrgPreferencesResponse, error) + func (c *Client) UpdateAnnotation(id int64, a *Annotation) (string, error) + func (c *Client) UpdateCloudAccessPolicy(region, id string, input UpdateCloudAccessPolicyInput) (CloudAccessPolicy, error) + func (c *Client) UpdateCloudAccessPolicyToken(region, id string, input UpdateCloudAccessPolicyTokenInput) (CloudAccessPolicyToken, error) + func (c *Client) UpdateContactPoint(p *ContactPoint) error + func (c *Client) UpdateDashboardPermissions(id int64, items *PermissionItems) error + func (c *Client) UpdateDashboardPermissionsByUID(uid string, items *PermissionItems) error + func (c *Client) UpdateDataSource(s *DataSource) error + func (c *Client) UpdateDataSourceByUID(s *DataSource) error + func (c *Client) UpdateFolder(uid string, title string, newUID ...string) error + func (c *Client) UpdateFolderPermissions(fid string, items *PermissionItems) error + func (c *Client) UpdateMuteTiming(mt *MuteTiming) error + func (c *Client) UpdateOrg(id int64, name string) error + func (c *Client) UpdateOrgPreferences(p Preferences) (UpdateOrgPreferencesResponse, error) + func (c *Client) UpdateOrgUser(orgID, userID int64, role string) error + func (c *Client) UpdatePlaylist(playlist Playlist) error + func (c *Client) UpdateReport(report Report) error + func (c *Client) UpdateRole(role Role) error + func (c *Client) UpdateRoleAssignments(ra *RoleAssignments) (*RoleAssignments, error) + func (c *Client) UpdateServiceAccount(serviceAccountID int64, request UpdateServiceAccountRequest) (*ServiceAccountDTO, error) + func (c *Client) UpdateServiceAccountPermissions(id int64, items *ServiceAccountPermissionItems) error + func (c *Client) UpdateSlo(uuid string, slo Slo) error + func (c *Client) UpdateStack(id int64, stack *UpdateStackInput) error + func (c *Client) UpdateTeam(id int64, name string, email string) error + func (c *Client) UpdateTeamPreferences(id int64, preferences Preferences) error + func (c *Client) UpdateUserPassword(id int64, password string) error + func (c *Client) UpdateUserPermissions(id int64, isAdmin bool) error + func (c *Client) User(id int64) (user User, err error) + func (c *Client) UserByEmail(email string) (user User, err error) + func (c *Client) UserUpdate(u User) error + func (c *Client) Users() (users []UserSearch, err error) + func (c Client) WithOrgID(orgID int64) *Client + type CloudAPIKey struct + Expiration string + ID int + Name string + Role string + Token string + type CloudAccessPolicy struct + CreatedAt time.Time + DisplayName string + ID string + Name string + OrgID string + Realms []CloudAccessPolicyRealm + Scopes []string + UpdatedAt time.Time + type CloudAccessPolicyItems struct + Items []*CloudAccessPolicy + type CloudAccessPolicyLabelPolicy struct + Selector string + type CloudAccessPolicyRealm struct + Identifier string + LabelPolicies []CloudAccessPolicyLabelPolicy + Type string + type CloudAccessPolicyToken struct + AccessPolicyID string + CreatedAt time.Time + DisplayName string + ExpiresAt *time.Time + FirstUsedAt time.Time + ID string + Name string + Token string + UpdatedAt *time.Time + type CloudAccessPolicyTokenItems struct + Items []*CloudAccessPolicyToken + type CloudOrg struct + CreatedAt time.Time + ID int64 + Name string + Slug string + URL string + UpdatedAt time.Time + type CloudPluginInstallation struct + ID int + InstanceID int + InstanceSlug string + InstanceURL string + PluginID int + PluginName string + PluginSlug string + Version string + type CloudRegion struct + AMClusterID int + AMClusterName string + AMClusterSlug string + AMClusterURL string + CreatedAt string + Description string + HGClusterID int + HGClusterName string + HGClusterSlug string + HGClusterURL string + HLClusterID int + HLClusterName string + HLClusterSlug string + HLClusterURL string + HMGraphiteClusterID int + HMGraphiteClusterName string + HMGraphiteClusterSlug string + HMGraphiteClusterURL string + HMPromClusterID int + HMPromClusterName string + HMPromClusterSlug string + HMPromClusterURL string + HTClusterID int + HTClusterName string + HTClusterSlug string + HTClusterURL string + HostedExportersAPIURL string + ID int + IncidentsAPIURL string + IntegrationsAPIURL string + MachineLearningAPIURL string + Name string + Slug string + StackStateServiceURL string + Status string + SyntheticMonitoringAPIURL string + UpdatedAt string + Visibility string + type CloudRegionsResponse struct + Items []CloudRegion + type Config struct + APIKey string + BasicAuth *url.Userinfo + Client *http.Client + HTTPHeaders map[string]string + NumRetries int + OrgID int64 + RetryStatusCodes []string + RetryTimeout time.Duration + type ContactPoint struct + DisableResolveMessage bool + Name string + Provenance string + Settings map[string]interface{} + Type string + UID string + type CreateAPIKeyRequest struct + Name string + Role string + SecondsToLive int64 + type CreateAPIKeyResponse struct + ID int64 + Key string + Name string + type CreateCloudAPIKeyInput struct + Name string + Role string + type CreateCloudAccessPolicyInput struct + DisplayName string + Name string + Realms []CloudAccessPolicyRealm + Scopes []string + type CreateCloudAccessPolicyTokenInput struct + AccessPolicyID string + DisplayName string + ExpiresAt *time.Time + Name string + type CreateSLOResponse struct + Message string + UUID string + type CreateServiceAccountRequest struct + IsDisabled *bool + Name string + Role string + type CreateServiceAccountTokenRequest struct + Name string + SecondsToLive int64 + ServiceAccountID int64 + type CreateServiceAccountTokenResponse struct + ID int64 + Key string + Name string + type CreateStackInput struct + Description string + Name string + Region string + Slug string + URL string + type Dashboard struct + FolderID int64 + FolderUID string + Message string + Meta DashboardMeta + Model map[string]interface{} + Overwrite bool + type DashboardMeta struct + Folder int64 + FolderUID string + IsStarred bool + Slug string + URL string + type DashboardPermission struct + DashboardID int64 + DashboardUID string + Inherited bool + IsFolder bool + Permission int64 + PermissionName string + Role string + TeamID int64 + UserID int64 + type DashboardRef struct + UID string + type DashboardSaveResponse struct + ID int64 + Slug string + Status string + UID string + Version int64 + type DataSource struct + Access string + BasicAuth bool + BasicAuthUser string + Database string + ID int64 + IsDefault bool + JSONData map[string]interface{} + Name string + OrgID int64 + ReadOnly bool + SecureJSONData map[string]interface{} + Type string + UID string + URL string + User string + type DatasourcePermission struct + BuiltInRole string + DatasourceID int64 + ID int64 + Permission DatasourcePermissionType + PermissionName string + TeamID int64 + UserEmail string + UserID int64 + type DatasourcePermissionAddPayload struct + BuiltInRole string + Permission DatasourcePermissionType + TeamID int64 + UserID int64 + type DatasourcePermissionType int + const DatasourcePermissionEdit + const DatasourcePermissionQuery + type DatasourcePermissionsResponse struct + DatasourceID int64 + Enabled bool + Permissions []*DatasourcePermission + type DayOfMonthRange string + type DeleteAPIKeyResponse struct + Message string + type DeleteServiceAccountResponse struct + Message string + type ExecErrState string + type Folder struct + ID int64 + Title string + UID string + URL string + type FolderDashboardSearchResponse struct + FolderID uint + FolderTitle string + FolderUID string + FolderURL string + ID uint + IsStarred bool + Slug string + Tags []string + Title string + Type string + UID string + URI string + URL string + type FolderPayload struct + Overwrite bool + Title string + UID string + type FolderPermission struct + DashboardID int64 + FolderID int64 + FolderUID string + ID int64 + IsFolder bool + Permission int64 + PermissionName string + Role string + TeamID int64 + UserID int64 + type FreeformQuery struct + Query string + type GetAPIKeysResponse struct + Expiration time.Time + ID int64 + Name string + Role string + type GetServiceAccountTokensResponse struct + Created time.Time + Expiration *time.Time + HasExpired bool + ID int64 + Name string + SecondsUntilExpiration *float64 + type GraphiteAnnotation struct + Data string + Tags []string + What string + When int64 + type HealthResponse struct + Commit string + Database string + Version string + type HistogramQuery struct + GroupByLabels []string + Metric MetricDef + Percentile float64 + Threshold Threshold + type Label struct + Key string + Value string + type LibraryPanel struct + Description string + Folder int64 + ID int64 + Kind int64 + Meta LibraryPanelMeta + Model map[string]interface{} + Name string + OrgID int64 + Type string + UID string + Version int64 + type LibraryPanelConnection struct + Created time.Time + CreatedBy LibraryPanelMetaUser + DashboardID int64 + ID int64 + Kind int64 + PanelID int64 + type LibraryPanelCreateResponse struct + Result LibraryPanel + type LibraryPanelDeleteResponse struct + ID int64 + Message string + type LibraryPanelGetAllResponse struct + Elements []LibraryPanel + Page int64 + PerPage int64 + TotalCount int64 + type LibraryPanelMeta struct + ConnectedDashboards int64 + Created time.Time + CreatedBy LibraryPanelMetaUser + FolderName string + FolderUID string + Updated time.Time + UpdatedBy LibraryPanelMetaUser + type LibraryPanelMetaUser struct + AvatarURL string + ID int64 + Name string + type ListCloudAPIKeysOutput struct + Items []*CloudAPIKey + type MatchType int + const MatchEqual + const MatchNotEqual + const MatchNotRegexp + const MatchRegexp + func (m MatchType) String() string + type Matcher struct + Name string + Type MatchType + Value string + type Matchers []Matcher + func (m *Matchers) UnmarshalJSON(data []byte) error + func (m Matchers) MarshalJSON() ([]byte, error) + type MetricDef struct + PrometheusMetric string + Type *string + type MonthRange string + type MuteTiming struct + Name string + Provenance string + TimeIntervals []TimeInterval + type NavLink struct + ID string + Target string + Text string + URL string + type NavbarPreference struct + SavedItems []NavLink + type NoDataState string + type NotificationPolicyTree struct + GroupBy []string + GroupInterval string + GroupWait string + Provenance string + Receiver string + RepeatInterval string + Routes []SpecificPolicy + type Objective struct + Value float64 + Window string + type Org struct + ID int64 + Name string + type OrgUser struct + Email string + Login string + OrgID int64 + Role string + UserID int64 + type PauseAlertRequest struct + Paused bool + type PauseAlertResponse struct + AlertID int64 + Message string + State string + type PauseAllAlertsResponse struct + AlertsAffected int64 + Message string + State string + type Permission struct + Action string + Scope string + type PermissionItem struct + Permission int64 + Role string + TeamID int64 + UserID int64 + type PermissionItems struct + Items []*PermissionItem + type Playlist struct + ID int + Interval string + Items []PlaylistItem + Name string + UID string + func (p *Playlist) QueryID() string + type PlaylistItem struct + Order int + Title string + Type string + Value string + type Plugin struct + Description string + ID int + Name string + Slug string + Version string + type Preferences struct + HomeDashboardID int64 + HomeDashboardUID string + Locale string + Navbar NavbarPreference + QueryHistory QueryHistoryPreference + Theme string + Timezone string + WeekStart string + type Query struct + Freeform *FreeformQuery + Histogram *HistogramQuery + Ratio *RatioQuery + Threshold *ThresholdQuery + Type QueryType + type QueryHistoryPreference struct + HomeTab string + type QueryType string + const QueryTypeFreeform + const QueryTypeHistogram + const QueryTypeRatio + const QueryTypeThreshold + type RatioQuery struct + GroupByLabels []string + SuccessMetric MetricDef + TotalMetric MetricDef + type RelativeTimeRange struct + From time.Duration + To time.Duration + type Report struct + Dashboards []ReportDashboard + EnableCSV bool + EnableDashboardURL bool + Formats []string + ID int64 + Message string + Name string + Options ReportOptions + OrgID int64 + Recipients string + ReplyTo string + ScaleFactor int64 + Schedule ReportSchedule + State string + UserID int64 + type ReportDashboard struct + Dashboard ReportDashboardIdentifier + TimeRange ReportDashboardTimeRange + Variables map[string]string + type ReportDashboardIdentifier struct + ID int64 + Name string + UID string + type ReportDashboardTimeRange struct + From string + To string + type ReportOptions struct + Layout string + Orientation string + type ReportSchedule struct + DayOfMonth string + EndDate *time.Time + Frequency string + IntervalAmount int64 + IntervalFrequency string + StartDate *time.Time + TimeZone string + WorkdaysOnly bool + type RetrieveServiceAccountResponse struct + Page int64 + PerPage int64 + ServiceAccounts []ServiceAccountDTO + TotalCount int64 + type Role struct + Description string + DisplayName string + Global bool + Group string + Hidden bool + Name string + Permissions []Permission + UID string + Version int64 + type RoleAssignments struct + RoleUID string + ServiceAccounts []int + Teams []int + Users []int + type RuleGroup struct + FolderUID string + Interval int64 + Rules []AlertRule + Title string + type SearchTeam struct + Page int64 + PerPage int64 + Teams []*Team + TotalCount int64 + type ServiceAccountDTO struct + AvatarURL string + ID int64 + IsDisabled bool + Login string + Name string + OrgID int64 + Role string + Tokens int64 + type ServiceAccountPermission struct + ID int64 + IsManaged bool + Permission string + TeamID int64 + UserID int64 + type ServiceAccountPermissionItem struct + Permission string + TeamID int64 + UserID int64 + type ServiceAccountPermissionItems struct + Permissions []*ServiceAccountPermissionItem + type Slo struct + Alerting *Alerting + Description string + DrillDownDashboardRef *DashboardRef + Labels []Label + Name string + Objectives []Objective + Query Query + UUID string + type Slos struct + Slos []Slo + type Snapshot struct + Expires int64 + Model map[string]interface{} + type SnapshotCreateResponse struct + DeleteKey string + DeleteURL string + ID int64 + Key string + URL string + type SpecificPolicy struct + Continue bool + GroupBy []string + GroupInterval string + GroupWait string + MuteTimeIntervals []string + ObjectMatchers Matchers + Receiver string + RepeatInterval string + Routes []SpecificPolicy + type Stack struct + AlertQuota int + AmInstanceGeneratorURL string + AmInstanceID int + AmInstanceName string + AmInstanceStatus string + AmInstanceURL string + BillableUserCnt int + BillingActiveUsers int + BillingEndDate time.Time + BillingStartDate time.Time + ClusterID int + ClusterName string + ClusterSlug string + CreatedAt time.Time + CreatedBy string + CurrentActiveAdminUsers int + CurrentActiveEditorUsers int + CurrentActiveUsers int + CurrentActiveViewerUsers int + CustomAuth bool + CustomDomain bool + DailyAdminCnt int + DailyEditorCnt int + DailyUserCnt int + DailyViewerCnt int + DashboardCnt int + DashboardQuota int + DatasourceCnts struct{} + Description string + Gateway string + HlInstanceCurrentUsage float64 + HlInstanceID int + HlInstanceName string + HlInstanceStatus string + HlInstanceURL string + HmInstanceGraphiteCurrentUsage float64 + HmInstanceGraphiteID int + HmInstanceGraphiteName string + HmInstanceGraphiteStatus string + HmInstanceGraphiteType string + HmInstanceGraphiteURL string + HmInstancePromCurrentActiveSeries int + HmInstancePromCurrentUsage float64 + HmInstancePromID int + HmInstancePromName string + HmInstancePromStatus string + HmInstancePromURL string + HtInstanceID int + HtInstanceName string + HtInstanceStatus string + HtInstanceURL string + ID int64 + Links []struct{ ... } + MachineLearning int + Name string + OrgID int64 + OrgName string + OrgSlug string + Plan string + PlanName string + RegionID int + RegionSlug string + RunningVersion string + Slug string + Ssl bool + Status string + Support bool + Trial int + TrialExpiresAt time.Time + URL string + UpdatedAt time.Time + UpdatedBy string + UserQuota int + Version string + type StackItems struct + Items []*Stack + type Team struct + AvatarURL string + Email string + ID int64 + MemberCount int64 + Name string + OrgID int64 + Permission int64 + type TeamGroup struct + GroupID string + OrgID int64 + TeamID int64 + type TeamMember struct + AvatarURL string + Email string + Labels []string + Login string + OrgID int64 + Permission int64 + TeamID int64 + UserID int64 + type Threshold struct + Operator ThresholdOperator + Value float64 + type ThresholdOperator string + const ThresholdOperatorEmpty + const ThresholdOperatorEqualEqual + const ThresholdOperatorN1 + const ThresholdOperatorN2 + const ThresholdOperatorN3 + type ThresholdQuery struct + GroupByLabels []string + Metric MetricDef + Threshold Threshold + type TimeInterval struct + DaysOfMonth []DayOfMonthRange + Months []MonthRange + Times []TimeRange + Weekdays []WeekdayRange + Years []YearRange + type TimeRange struct + EndMinute string + StartMinute string + type UpdateCloudAccessPolicyInput struct + DisplayName string + Realms []CloudAccessPolicyRealm + Scopes []string + type UpdateCloudAccessPolicyTokenInput struct + DisplayName string + type UpdateOrgPreferencesResponse struct + Message string + type UpdateServiceAccountRequest struct + IsDisabled *bool + Name string + Role string + type UpdateStackInput struct + Description string + Name string + Slug string + type User struct + AuthLabels []string + AvatarURL string + CreatedAt time.Time + Email string + ID int64 + IsAdmin bool + IsDisabled bool + IsExternal bool + Login string + Name string + OrgID int64 + Password string + Theme string + UpdatedAt time.Time + type UserSearch struct + AuthLabels []string + AvatarURL string + Email string + ID int64 + IsAdmin bool + IsDisabled bool + LastSeenAt time.Time + LastSeenAtAge string + Login string + Name string + type WeekdayRange string + type YearRange string