models

package
v0.0.0-...-4958bdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation ¶

Index ¶

Constants ¶

View Source
const (

	// AddAPIKeyCommandRoleNone captures enum value "None"
	AddAPIKeyCommandRoleNone string = "None"

	// AddAPIKeyCommandRoleViewer captures enum value "Viewer"
	AddAPIKeyCommandRoleViewer string = "Viewer"

	// AddAPIKeyCommandRoleEditor captures enum value "Editor"
	AddAPIKeyCommandRoleEditor string = "Editor"

	// AddAPIKeyCommandRoleAdmin captures enum value "Admin"
	AddAPIKeyCommandRoleAdmin string = "Admin"
)
View Source
const (

	// AddInviteFormRoleNone captures enum value "None"
	AddInviteFormRoleNone string = "None"

	// AddInviteFormRoleViewer captures enum value "Viewer"
	AddInviteFormRoleViewer string = "Viewer"

	// AddInviteFormRoleEditor captures enum value "Editor"
	AddInviteFormRoleEditor string = "Editor"

	// AddInviteFormRoleAdmin captures enum value "Admin"
	AddInviteFormRoleAdmin string = "Admin"
)
View Source
const (

	// AddOrgUserCommandRoleNone captures enum value "None"
	AddOrgUserCommandRoleNone string = "None"

	// AddOrgUserCommandRoleViewer captures enum value "Viewer"
	AddOrgUserCommandRoleViewer string = "Viewer"

	// AddOrgUserCommandRoleEditor captures enum value "Editor"
	AddOrgUserCommandRoleEditor string = "Editor"

	// AddOrgUserCommandRoleAdmin captures enum value "Admin"
	AddOrgUserCommandRoleAdmin string = "Admin"
)
View Source
const (

	// AlertRuleExportExecErrStateOK captures enum value "OK"
	AlertRuleExportExecErrStateOK string = "OK"

	// AlertRuleExportExecErrStateAlerting captures enum value "Alerting"
	AlertRuleExportExecErrStateAlerting string = "Alerting"

	// AlertRuleExportExecErrStateError captures enum value "Error"
	AlertRuleExportExecErrStateError string = "Error"
)
View Source
const (

	// AlertRuleExportNoDataStateAlerting captures enum value "Alerting"
	AlertRuleExportNoDataStateAlerting string = "Alerting"

	// AlertRuleExportNoDataStateNoData captures enum value "NoData"
	AlertRuleExportNoDataStateNoData string = "NoData"

	// AlertRuleExportNoDataStateOK captures enum value "OK"
	AlertRuleExportNoDataStateOK string = "OK"
)
View Source
const (

	// APIKeyDTORoleNone captures enum value "None"
	APIKeyDTORoleNone string = "None"

	// APIKeyDTORoleViewer captures enum value "Viewer"
	APIKeyDTORoleViewer string = "Viewer"

	// APIKeyDTORoleEditor captures enum value "Editor"
	APIKeyDTORoleEditor string = "Editor"

	// APIKeyDTORoleAdmin captures enum value "Admin"
	APIKeyDTORoleAdmin string = "Admin"
)
View Source
const (

	// CalculateDashboardDiffParamsBodyDiffTypeBasic captures enum value "basic"
	CalculateDashboardDiffParamsBodyDiffTypeBasic string = "basic"

	// CalculateDashboardDiffParamsBodyDiffTypeJSON captures enum value "json"
	CalculateDashboardDiffParamsBodyDiffTypeJSON string = "json"
)
View Source
const (

	// CreateServiceAccountFormRoleNone captures enum value "None"
	CreateServiceAccountFormRoleNone string = "None"

	// CreateServiceAccountFormRoleViewer captures enum value "Viewer"
	CreateServiceAccountFormRoleViewer string = "Viewer"

	// CreateServiceAccountFormRoleEditor captures enum value "Editor"
	CreateServiceAccountFormRoleEditor string = "Editor"

	// CreateServiceAccountFormRoleAdmin captures enum value "Admin"
	CreateServiceAccountFormRoleAdmin string = "Admin"
)
View Source
const (

	// DashboardACLInfoDTORoleNone captures enum value "None"
	DashboardACLInfoDTORoleNone string = "None"

	// DashboardACLInfoDTORoleViewer captures enum value "Viewer"
	DashboardACLInfoDTORoleViewer string = "Viewer"

	// DashboardACLInfoDTORoleEditor captures enum value "Editor"
	DashboardACLInfoDTORoleEditor string = "Editor"

	// DashboardACLInfoDTORoleAdmin captures enum value "Admin"
	DashboardACLInfoDTORoleAdmin string = "Admin"
)
View Source
const (

	// DashboardACLUpdateItemRoleNone captures enum value "None"
	DashboardACLUpdateItemRoleNone string = "None"

	// DashboardACLUpdateItemRoleViewer captures enum value "Viewer"
	DashboardACLUpdateItemRoleViewer string = "Viewer"

	// DashboardACLUpdateItemRoleEditor captures enum value "Editor"
	DashboardACLUpdateItemRoleEditor string = "Editor"

	// DashboardACLUpdateItemRoleAdmin captures enum value "Admin"
	DashboardACLUpdateItemRoleAdmin string = "Admin"
)
View Source
const (

	// EmbeddedContactPointTypeAlertmanager captures enum value "alertmanager"
	EmbeddedContactPointTypeAlertmanager string = "alertmanager"

	// EmbeddedContactPointTypeDingding captures enum value " dingding"
	EmbeddedContactPointTypeDingding string = " dingding"

	// EmbeddedContactPointTypeDiscord captures enum value " discord"
	EmbeddedContactPointTypeDiscord string = " discord"

	// EmbeddedContactPointTypeEmail captures enum value " email"
	EmbeddedContactPointTypeEmail string = " email"

	// EmbeddedContactPointTypeGooglechat captures enum value " googlechat"
	EmbeddedContactPointTypeGooglechat string = " googlechat"

	// EmbeddedContactPointTypeKafka captures enum value " kafka"
	EmbeddedContactPointTypeKafka string = " kafka"

	// EmbeddedContactPointTypeLine captures enum value " line"
	EmbeddedContactPointTypeLine string = " line"

	// EmbeddedContactPointTypeOpsgenie captures enum value " opsgenie"
	EmbeddedContactPointTypeOpsgenie string = " opsgenie"

	// EmbeddedContactPointTypePagerduty captures enum value " pagerduty"
	EmbeddedContactPointTypePagerduty string = " pagerduty"

	// EmbeddedContactPointTypePushover captures enum value " pushover"
	EmbeddedContactPointTypePushover string = " pushover"

	// EmbeddedContactPointTypeSensugo captures enum value " sensugo"
	EmbeddedContactPointTypeSensugo string = " sensugo"

	// EmbeddedContactPointTypeSlack captures enum value " slack"
	EmbeddedContactPointTypeSlack string = " slack"

	// EmbeddedContactPointTypeTeams captures enum value " teams"
	EmbeddedContactPointTypeTeams string = " teams"

	// EmbeddedContactPointTypeTelegram captures enum value " telegram"
	EmbeddedContactPointTypeTelegram string = " telegram"

	// EmbeddedContactPointTypeThreema captures enum value " threema"
	EmbeddedContactPointTypeThreema string = " threema"

	// EmbeddedContactPointTypeVictorops captures enum value " victorops"
	EmbeddedContactPointTypeVictorops string = " victorops"

	// EmbeddedContactPointTypeWebhook captures enum value " webhook"
	EmbeddedContactPointTypeWebhook string = " webhook"

	// EmbeddedContactPointTypeWecom captures enum value " wecom"
	EmbeddedContactPointTypeWecom string = " wecom"
)
View Source
const (

	// GettableGrafanaRuleExecErrStateOK captures enum value "OK"
	GettableGrafanaRuleExecErrStateOK string = "OK"

	// GettableGrafanaRuleExecErrStateAlerting captures enum value "Alerting"
	GettableGrafanaRuleExecErrStateAlerting string = "Alerting"

	// GettableGrafanaRuleExecErrStateError captures enum value "Error"
	GettableGrafanaRuleExecErrStateError string = "Error"
)
View Source
const (

	// GettableGrafanaRuleNoDataStateAlerting captures enum value "Alerting"
	GettableGrafanaRuleNoDataStateAlerting string = "Alerting"

	// GettableGrafanaRuleNoDataStateNoData captures enum value "NoData"
	GettableGrafanaRuleNoDataStateNoData string = "NoData"

	// GettableGrafanaRuleNoDataStateOK captures enum value "OK"
	GettableGrafanaRuleNoDataStateOK string = "OK"
)
View Source
const (

	// PatchPrefsCmdThemeLight captures enum value "light"
	PatchPrefsCmdThemeLight string = "light"

	// PatchPrefsCmdThemeDark captures enum value "dark"
	PatchPrefsCmdThemeDark string = "dark"
)
View Source
const (

	// PatchPrefsCmdTimezoneUtc captures enum value "utc"
	PatchPrefsCmdTimezoneUtc string = "utc"

	// PatchPrefsCmdTimezoneBrowser captures enum value "browser"
	PatchPrefsCmdTimezoneBrowser string = "browser"
)
View Source
const (

	// PostableGrafanaRuleExecErrStateOK captures enum value "OK"
	PostableGrafanaRuleExecErrStateOK string = "OK"

	// PostableGrafanaRuleExecErrStateAlerting captures enum value "Alerting"
	PostableGrafanaRuleExecErrStateAlerting string = "Alerting"

	// PostableGrafanaRuleExecErrStateError captures enum value "Error"
	PostableGrafanaRuleExecErrStateError string = "Error"
)
View Source
const (

	// PostableGrafanaRuleNoDataStateAlerting captures enum value "Alerting"
	PostableGrafanaRuleNoDataStateAlerting string = "Alerting"

	// PostableGrafanaRuleNoDataStateNoData captures enum value "NoData"
	PostableGrafanaRuleNoDataStateNoData string = "NoData"

	// PostableGrafanaRuleNoDataStateOK captures enum value "OK"
	PostableGrafanaRuleNoDataStateOK string = "OK"
)
View Source
const (

	// ProvisionedAlertRuleExecErrStateOK captures enum value "OK"
	ProvisionedAlertRuleExecErrStateOK string = "OK"

	// ProvisionedAlertRuleExecErrStateAlerting captures enum value "Alerting"
	ProvisionedAlertRuleExecErrStateAlerting string = "Alerting"

	// ProvisionedAlertRuleExecErrStateError captures enum value "Error"
	ProvisionedAlertRuleExecErrStateError string = "Error"
)
View Source
const (

	// ProvisionedAlertRuleNoDataStateAlerting captures enum value "Alerting"
	ProvisionedAlertRuleNoDataStateAlerting string = "Alerting"

	// ProvisionedAlertRuleNoDataStateNoData captures enum value "NoData"
	ProvisionedAlertRuleNoDataStateNoData string = "NoData"

	// ProvisionedAlertRuleNoDataStateOK captures enum value "OK"
	ProvisionedAlertRuleNoDataStateOK string = "OK"
)
View Source
const (

	// TempUserDTORoleNone captures enum value "None"
	TempUserDTORoleNone string = "None"

	// TempUserDTORoleViewer captures enum value "Viewer"
	TempUserDTORoleViewer string = "Viewer"

	// TempUserDTORoleEditor captures enum value "Editor"
	TempUserDTORoleEditor string = "Editor"

	// TempUserDTORoleAdmin captures enum value "Admin"
	TempUserDTORoleAdmin string = "Admin"
)
View Source
const (

	// TestTemplatesErrorResultKindInvalidTemplate captures enum value "invalid_template"
	TestTemplatesErrorResultKindInvalidTemplate string = "invalid_template"

	// TestTemplatesErrorResultKindExecutionError captures enum value "execution_error"
	TestTemplatesErrorResultKindExecutionError string = "execution_error"
)
View Source
const (

	// TransformationTypeRegex captures enum value "regex"
	TransformationTypeRegex string = "regex"

	// TransformationTypeLogfmt captures enum value "logfmt"
	TransformationTypeLogfmt string = "logfmt"
)
View Source
const (

	// UpdateOrgUserCommandRoleNone captures enum value "None"
	UpdateOrgUserCommandRoleNone string = "None"

	// UpdateOrgUserCommandRoleViewer captures enum value "Viewer"
	UpdateOrgUserCommandRoleViewer string = "Viewer"

	// UpdateOrgUserCommandRoleEditor captures enum value "Editor"
	UpdateOrgUserCommandRoleEditor string = "Editor"

	// UpdateOrgUserCommandRoleAdmin captures enum value "Admin"
	UpdateOrgUserCommandRoleAdmin string = "Admin"
)
View Source
const (

	// UpdatePrefsCmdThemeLight captures enum value "light"
	UpdatePrefsCmdThemeLight string = "light"

	// UpdatePrefsCmdThemeDark captures enum value "dark"
	UpdatePrefsCmdThemeDark string = "dark"

	// UpdatePrefsCmdThemeSystem captures enum value "system"
	UpdatePrefsCmdThemeSystem string = "system"
)
View Source
const (

	// UpdatePrefsCmdTimezoneUtc captures enum value "utc"
	UpdatePrefsCmdTimezoneUtc string = "utc"

	// UpdatePrefsCmdTimezoneBrowser captures enum value "browser"
	UpdatePrefsCmdTimezoneBrowser string = "browser"
)
View Source
const (

	// UpdateServiceAccountFormRoleNone captures enum value "None"
	UpdateServiceAccountFormRoleNone string = "None"

	// UpdateServiceAccountFormRoleViewer captures enum value "Viewer"
	UpdateServiceAccountFormRoleViewer string = "Viewer"

	// UpdateServiceAccountFormRoleEditor captures enum value "Editor"
	UpdateServiceAccountFormRoleEditor string = "Editor"

	// UpdateServiceAccountFormRoleAdmin captures enum value "Admin"
	UpdateServiceAccountFormRoleAdmin string = "Admin"
)
View Source
const (

	// UserOrgDTORoleNone captures enum value "None"
	UserOrgDTORoleNone string = "None"

	// UserOrgDTORoleViewer captures enum value "Viewer"
	UserOrgDTORoleViewer string = "Viewer"

	// UserOrgDTORoleEditor captures enum value "Editor"
	UserOrgDTORoleEditor string = "Editor"

	// UserOrgDTORoleAdmin captures enum value "Admin"
	UserOrgDTORoleAdmin string = "Admin"
)
View Source
const (

	// AlertStatusStateUnprocessedActiveSuppressed captures enum value "[unprocessed active suppressed]"
	AlertStatusStateUnprocessedActiveSuppressed string = "[unprocessed active suppressed]"
)
View Source
const (

	// ClusterStatusStatusReadySettlingDisabled captures enum value "[ready settling disabled]"
	ClusterStatusStatusReadySettlingDisabled string = "[ready settling disabled]"
)
View Source
const (

	// SilenceStatusStateExpiredActivePending captures enum value "[expired active pending]"
	SilenceStatusStateExpiredActivePending string = "[expired active pending]"
)

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type APIKeyDTO ¶

type APIKeyDTO struct {

	// access control
	AccessControl Metadata `json:"accessControl,omitempty"`

	// expiration
	// Format: date-time
	Expiration strfmt.DateTime `json:"expiration,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// last used at
	// Format: date-time
	LastUsedAt strfmt.DateTime `json:"lastUsedAt,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`
}

APIKeyDTO Api key DTO

swagger:model ApiKeyDTO

func (*APIKeyDTO) ContextValidate ¶

func (m *APIKeyDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Api key DTO based on the context it is used

func (*APIKeyDTO) MarshalBinary ¶

func (m *APIKeyDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIKeyDTO) UnmarshalBinary ¶

func (m *APIKeyDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIKeyDTO) Validate ¶

func (m *APIKeyDTO) Validate(formats strfmt.Registry) error

Validate validates this Api key DTO

type Ack ¶

type Ack interface{}

Ack ack

swagger:model Ack

type ActiveSyncStatusDTO ¶

type ActiveSyncStatusDTO struct {

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// next sync
	// Format: date-time
	NextSync strfmt.DateTime `json:"nextSync,omitempty"`

	// prev sync
	PrevSync *SyncResult `json:"prevSync,omitempty"`

	// schedule
	Schedule string `json:"schedule,omitempty"`
}

ActiveSyncStatusDTO ActiveSyncStatusDTO holds the information for LDAP background Sync

swagger:model ActiveSyncStatusDTO

func (*ActiveSyncStatusDTO) ContextValidate ¶

func (m *ActiveSyncStatusDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this active sync status DTO based on the context it is used

func (*ActiveSyncStatusDTO) MarshalBinary ¶

func (m *ActiveSyncStatusDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActiveSyncStatusDTO) UnmarshalBinary ¶

func (m *ActiveSyncStatusDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActiveSyncStatusDTO) Validate ¶

func (m *ActiveSyncStatusDTO) Validate(formats strfmt.Registry) error

Validate validates this active sync status DTO

type ActiveUserStats ¶

type ActiveUserStats struct {

	// active admins and editors
	ActiveAdminsAndEditors int64 `json:"active_admins_and_editors,omitempty"`

	// active anonymous devices
	ActiveAnonymousDevices int64 `json:"active_anonymous_devices,omitempty"`

	// active users
	ActiveUsers int64 `json:"active_users,omitempty"`

	// active viewers
	ActiveViewers int64 `json:"active_viewers,omitempty"`
}

ActiveUserStats active user stats

swagger:model ActiveUserStats

func (*ActiveUserStats) ContextValidate ¶

func (m *ActiveUserStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this active user stats based on context it is used

func (*ActiveUserStats) MarshalBinary ¶

func (m *ActiveUserStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActiveUserStats) UnmarshalBinary ¶

func (m *ActiveUserStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActiveUserStats) Validate ¶

func (m *ActiveUserStats) Validate(formats strfmt.Registry) error

Validate validates this active user stats

type AddAPIKeyCommand ¶

type AddAPIKeyCommand struct {

	// name
	Name string `json:"name,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`

	// seconds to live
	SecondsToLive int64 `json:"secondsToLive,omitempty"`
}

AddAPIKeyCommand add API key command

swagger:model AddAPIKeyCommand

func (*AddAPIKeyCommand) ContextValidate ¶

func (m *AddAPIKeyCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add API key command based on context it is used

func (*AddAPIKeyCommand) MarshalBinary ¶

func (m *AddAPIKeyCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddAPIKeyCommand) UnmarshalBinary ¶

func (m *AddAPIKeyCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddAPIKeyCommand) Validate ¶

func (m *AddAPIKeyCommand) Validate(formats strfmt.Registry) error

Validate validates this add API key command

type AddDataSourceCommand ¶

type AddDataSourceCommand struct {

	// access
	Access DsAccess `json:"access,omitempty"`

	// basic auth
	BasicAuth bool `json:"basicAuth,omitempty"`

	// basic auth user
	BasicAuthUser string `json:"basicAuthUser,omitempty"`

	// database
	Database string `json:"database,omitempty"`

	// is default
	IsDefault bool `json:"isDefault,omitempty"`

	// json data
	JSONData JSON `json:"jsonData,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// secure Json data
	SecureJSONData map[string]string `json:"secureJsonData,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// user
	User string `json:"user,omitempty"`

	// with credentials
	WithCredentials bool `json:"withCredentials,omitempty"`
}

AddDataSourceCommand Also acts as api DTO

swagger:model AddDataSourceCommand

func (*AddDataSourceCommand) ContextValidate ¶

func (m *AddDataSourceCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this add data source command based on the context it is used

func (*AddDataSourceCommand) MarshalBinary ¶

func (m *AddDataSourceCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddDataSourceCommand) UnmarshalBinary ¶

func (m *AddDataSourceCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddDataSourceCommand) Validate ¶

func (m *AddDataSourceCommand) Validate(formats strfmt.Registry) error

Validate validates this add data source command

type AddDataSourceOKBody ¶

type AddDataSourceOKBody struct {

	// datasource
	// Required: true
	Datasource *DataSource `json:"datasource"`

	// ID Identifier of the new data source.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the deleted dashboard.
	// Example: Data source added
	// Required: true
	Message *string `json:"message"`

	// Name of the new data source.
	// Example: My Data source
	// Required: true
	Name *string `json:"name"`
}

AddDataSourceOKBody add data source Ok body

swagger:model addDataSourceOkBody

func (*AddDataSourceOKBody) ContextValidate ¶

func (m *AddDataSourceOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this add data source Ok body based on the context it is used

func (*AddDataSourceOKBody) MarshalBinary ¶

func (m *AddDataSourceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddDataSourceOKBody) UnmarshalBinary ¶

func (m *AddDataSourceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddDataSourceOKBody) Validate ¶

func (m *AddDataSourceOKBody) Validate(formats strfmt.Registry) error

Validate validates this add data source Ok body

type AddInviteForm ¶

type AddInviteForm struct {

	// login or email
	LoginOrEmail string `json:"loginOrEmail,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`

	// send email
	SendEmail bool `json:"sendEmail,omitempty"`
}

AddInviteForm add invite form

swagger:model AddInviteForm

func (*AddInviteForm) ContextValidate ¶

func (m *AddInviteForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add invite form based on context it is used

func (*AddInviteForm) MarshalBinary ¶

func (m *AddInviteForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddInviteForm) UnmarshalBinary ¶

func (m *AddInviteForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddInviteForm) Validate ¶

func (m *AddInviteForm) Validate(formats strfmt.Registry) error

Validate validates this add invite form

type AddOrgUserCommand ¶

type AddOrgUserCommand struct {

	// login or email
	LoginOrEmail string `json:"loginOrEmail,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`
}

AddOrgUserCommand add org user command

swagger:model AddOrgUserCommand

func (*AddOrgUserCommand) ContextValidate ¶

func (m *AddOrgUserCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add org user command based on context it is used

func (*AddOrgUserCommand) MarshalBinary ¶

func (m *AddOrgUserCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddOrgUserCommand) UnmarshalBinary ¶

func (m *AddOrgUserCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddOrgUserCommand) Validate ¶

func (m *AddOrgUserCommand) Validate(formats strfmt.Registry) error

Validate validates this add org user command

type AddServiceAccountTokenCommand ¶

type AddServiceAccountTokenCommand struct {

	// name
	Name string `json:"name,omitempty"`

	// seconds to live
	SecondsToLive int64 `json:"secondsToLive,omitempty"`
}

AddServiceAccountTokenCommand add service account token command

swagger:model AddServiceAccountTokenCommand

func (*AddServiceAccountTokenCommand) ContextValidate ¶

func (m *AddServiceAccountTokenCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add service account token command based on context it is used

func (*AddServiceAccountTokenCommand) MarshalBinary ¶

func (m *AddServiceAccountTokenCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddServiceAccountTokenCommand) UnmarshalBinary ¶

func (m *AddServiceAccountTokenCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddServiceAccountTokenCommand) Validate ¶

func (m *AddServiceAccountTokenCommand) Validate(formats strfmt.Registry) error

Validate validates this add service account token command

type AddTeamMemberCommand ¶

type AddTeamMemberCommand struct {

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

AddTeamMemberCommand add team member command

swagger:model AddTeamMemberCommand

func (*AddTeamMemberCommand) ContextValidate ¶

func (m *AddTeamMemberCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add team member command based on context it is used

func (*AddTeamMemberCommand) MarshalBinary ¶

func (m *AddTeamMemberCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddTeamMemberCommand) UnmarshalBinary ¶

func (m *AddTeamMemberCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddTeamMemberCommand) Validate ¶

func (m *AddTeamMemberCommand) Validate(formats strfmt.Registry) error

Validate validates this add team member command

type AddTeamRoleCommand ¶

type AddTeamRoleCommand struct {

	// role Uid
	RoleUID string `json:"roleUid,omitempty"`
}

AddTeamRoleCommand add team role command

swagger:model AddTeamRoleCommand

func (*AddTeamRoleCommand) ContextValidate ¶

func (m *AddTeamRoleCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add team role command based on context it is used

func (*AddTeamRoleCommand) MarshalBinary ¶

func (m *AddTeamRoleCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddTeamRoleCommand) UnmarshalBinary ¶

func (m *AddTeamRoleCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddTeamRoleCommand) Validate ¶

func (m *AddTeamRoleCommand) Validate(formats strfmt.Registry) error

Validate validates this add team role command

type AddUserRoleCommand ¶

type AddUserRoleCommand struct {

	// global
	Global bool `json:"global,omitempty"`

	// role Uid
	RoleUID string `json:"roleUid,omitempty"`
}

AddUserRoleCommand add user role command

swagger:model AddUserRoleCommand

func (*AddUserRoleCommand) ContextValidate ¶

func (m *AddUserRoleCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add user role command based on context it is used

func (*AddUserRoleCommand) MarshalBinary ¶

func (m *AddUserRoleCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddUserRoleCommand) UnmarshalBinary ¶

func (m *AddUserRoleCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddUserRoleCommand) Validate ¶

func (m *AddUserRoleCommand) Validate(formats strfmt.Registry) error

Validate validates this add user role command

type Address ¶

type Address struct {

	// address1
	Address1 string `json:"address1,omitempty"`

	// address2
	Address2 string `json:"address2,omitempty"`

	// city
	City string `json:"city,omitempty"`

	// country
	Country string `json:"country,omitempty"`

	// state
	State string `json:"state,omitempty"`

	// zip code
	ZipCode string `json:"zipCode,omitempty"`
}

Address address

swagger:model Address

func (*Address) ContextValidate ¶

func (m *Address) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this address based on context it is used

func (*Address) MarshalBinary ¶

func (m *Address) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Address) UnmarshalBinary ¶

func (m *Address) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Address) Validate ¶

func (m *Address) Validate(formats strfmt.Registry) error

Validate validates this address

type AdminCreateUserForm ¶

type AdminCreateUserForm struct {

	// email
	Email string `json:"email,omitempty"`

	// login
	Login string `json:"login,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// password
	Password Password `json:"password,omitempty"`
}

AdminCreateUserForm admin create user form

swagger:model AdminCreateUserForm

func (*AdminCreateUserForm) ContextValidate ¶

func (m *AdminCreateUserForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this admin create user form based on the context it is used

func (*AdminCreateUserForm) MarshalBinary ¶

func (m *AdminCreateUserForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdminCreateUserForm) UnmarshalBinary ¶

func (m *AdminCreateUserForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdminCreateUserForm) Validate ¶

func (m *AdminCreateUserForm) Validate(formats strfmt.Registry) error

Validate validates this admin create user form

type AdminCreateUserResponse ¶

type AdminCreateUserResponse struct {

	// id
	ID int64 `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

AdminCreateUserResponse admin create user response

swagger:model AdminCreateUserResponse

func (*AdminCreateUserResponse) ContextValidate ¶

func (m *AdminCreateUserResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this admin create user response based on context it is used

func (*AdminCreateUserResponse) MarshalBinary ¶

func (m *AdminCreateUserResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdminCreateUserResponse) UnmarshalBinary ¶

func (m *AdminCreateUserResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdminCreateUserResponse) Validate ¶

func (m *AdminCreateUserResponse) Validate(formats strfmt.Registry) error

Validate validates this admin create user response

type AdminStats ¶

type AdminStats struct {

	// active admins
	ActiveAdmins int64 `json:"activeAdmins,omitempty"`

	// active devices
	ActiveDevices int64 `json:"activeDevices,omitempty"`

	// active editors
	ActiveEditors int64 `json:"activeEditors,omitempty"`

	// active sessions
	ActiveSessions int64 `json:"activeSessions,omitempty"`

	// active users
	ActiveUsers int64 `json:"activeUsers,omitempty"`

	// active viewers
	ActiveViewers int64 `json:"activeViewers,omitempty"`

	// admins
	Admins int64 `json:"admins,omitempty"`

	// alerts
	Alerts int64 `json:"alerts,omitempty"`

	// daily active admins
	DailyActiveAdmins int64 `json:"dailyActiveAdmins,omitempty"`

	// daily active editors
	DailyActiveEditors int64 `json:"dailyActiveEditors,omitempty"`

	// daily active sessions
	DailyActiveSessions int64 `json:"dailyActiveSessions,omitempty"`

	// daily active users
	DailyActiveUsers int64 `json:"dailyActiveUsers,omitempty"`

	// daily active viewers
	DailyActiveViewers int64 `json:"dailyActiveViewers,omitempty"`

	// dashboards
	Dashboards int64 `json:"dashboards,omitempty"`

	// datasources
	Datasources int64 `json:"datasources,omitempty"`

	// editors
	Editors int64 `json:"editors,omitempty"`

	// monthly active users
	MonthlyActiveUsers int64 `json:"monthlyActiveUsers,omitempty"`

	// orgs
	Orgs int64 `json:"orgs,omitempty"`

	// playlists
	Playlists int64 `json:"playlists,omitempty"`

	// snapshots
	Snapshots int64 `json:"snapshots,omitempty"`

	// stars
	Stars int64 `json:"stars,omitempty"`

	// tags
	Tags int64 `json:"tags,omitempty"`

	// users
	Users int64 `json:"users,omitempty"`

	// viewers
	Viewers int64 `json:"viewers,omitempty"`
}

AdminStats admin stats

swagger:model AdminStats

func (*AdminStats) ContextValidate ¶

func (m *AdminStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this admin stats based on context it is used

func (*AdminStats) MarshalBinary ¶

func (m *AdminStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdminStats) UnmarshalBinary ¶

func (m *AdminStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdminStats) Validate ¶

func (m *AdminStats) Validate(formats strfmt.Registry) error

Validate validates this admin stats

type AdminUpdateUserPasswordForm ¶

type AdminUpdateUserPasswordForm struct {

	// password
	Password Password `json:"password,omitempty"`
}

AdminUpdateUserPasswordForm admin update user password form

swagger:model AdminUpdateUserPasswordForm

func (*AdminUpdateUserPasswordForm) ContextValidate ¶

func (m *AdminUpdateUserPasswordForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this admin update user password form based on the context it is used

func (*AdminUpdateUserPasswordForm) MarshalBinary ¶

func (m *AdminUpdateUserPasswordForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdminUpdateUserPasswordForm) UnmarshalBinary ¶

func (m *AdminUpdateUserPasswordForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdminUpdateUserPasswordForm) Validate ¶

func (m *AdminUpdateUserPasswordForm) Validate(formats strfmt.Registry) error

Validate validates this admin update user password form

type AdminUpdateUserPermissionsForm ¶

type AdminUpdateUserPermissionsForm struct {

	// is grafana admin
	IsGrafanaAdmin bool `json:"isGrafanaAdmin,omitempty"`
}

AdminUpdateUserPermissionsForm admin update user permissions form

swagger:model AdminUpdateUserPermissionsForm

func (*AdminUpdateUserPermissionsForm) ContextValidate ¶

func (m *AdminUpdateUserPermissionsForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this admin update user permissions form based on context it is used

func (*AdminUpdateUserPermissionsForm) MarshalBinary ¶

func (m *AdminUpdateUserPermissionsForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdminUpdateUserPermissionsForm) UnmarshalBinary ¶

func (m *AdminUpdateUserPermissionsForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdminUpdateUserPermissionsForm) Validate ¶

func (m *AdminUpdateUserPermissionsForm) Validate(formats strfmt.Registry) error

Validate validates this admin update user permissions form

type Alert ¶

type Alert struct {

	// active at
	// Format: date-time
	ActiveAt strfmt.DateTime `json:"activeAt,omitempty"`

	// annotations
	// Required: true
	Annotations OverrideLabels `json:"annotations"`

	// labels
	// Required: true
	Labels OverrideLabels `json:"labels"`

	// state
	// Required: true
	State *string `json:"state"`

	// value
	// Required: true
	Value *string `json:"value"`
}

Alert Alert has info for an alert.

swagger:model Alert

func (*Alert) ContextValidate ¶

func (m *Alert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert based on the context it is used

func (*Alert) MarshalBinary ¶

func (m *Alert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Alert) UnmarshalBinary ¶

func (m *Alert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Alert) Validate ¶

func (m *Alert) Validate(formats strfmt.Registry) error

Validate validates this alert

type AlertDiscovery ¶

type AlertDiscovery struct {

	// alerts
	// Required: true
	Alerts []*Alert `json:"alerts"`
}

AlertDiscovery AlertDiscovery has info for all active alerts.

swagger:model AlertDiscovery

func (*AlertDiscovery) ContextValidate ¶

func (m *AlertDiscovery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert discovery based on the context it is used

func (*AlertDiscovery) MarshalBinary ¶

func (m *AlertDiscovery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertDiscovery) UnmarshalBinary ¶

func (m *AlertDiscovery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertDiscovery) Validate ¶

func (m *AlertDiscovery) Validate(formats strfmt.Registry) error

Validate validates this alert discovery

type AlertGroup ¶

type AlertGroup struct {

	// alerts
	// Required: true
	Alerts []*GettableAlert `json:"alerts"`

	// labels
	// Required: true
	Labels LabelSet `json:"labels"`

	// receiver
	// Required: true
	Receiver *Receiver `json:"receiver"`
}

AlertGroup AlertGroup alert group

swagger:model alertGroup

func (*AlertGroup) ContextValidate ¶

func (m *AlertGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert group based on the context it is used

func (*AlertGroup) MarshalBinary ¶

func (m *AlertGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertGroup) UnmarshalBinary ¶

func (m *AlertGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertGroup) Validate ¶

func (m *AlertGroup) Validate(formats strfmt.Registry) error

Validate validates this alert group

type AlertInstancesResponse ¶

type AlertInstancesResponse struct {

	// Instances is an array of arrow encoded dataframes
	// each frame has a single row, and a column for each instance (alert identified by unique labels) with a boolean value (firing/not firing)
	Instances [][]uint8 `json:"instances"`
}

AlertInstancesResponse alert instances response

swagger:model AlertInstancesResponse

func (*AlertInstancesResponse) ContextValidate ¶

func (m *AlertInstancesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert instances response based on context it is used

func (*AlertInstancesResponse) MarshalBinary ¶

func (m *AlertInstancesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertInstancesResponse) UnmarshalBinary ¶

func (m *AlertInstancesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertInstancesResponse) Validate ¶

func (m *AlertInstancesResponse) Validate(formats strfmt.Registry) error

Validate validates this alert instances response

type AlertManager ¶

type AlertManager struct {

	// url
	URL string `json:"url,omitempty"`
}

AlertManager AlertManager models a configured Alert Manager.

swagger:model AlertManager

func (*AlertManager) ContextValidate ¶

func (m *AlertManager) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert manager based on context it is used

func (*AlertManager) MarshalBinary ¶

func (m *AlertManager) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertManager) UnmarshalBinary ¶

func (m *AlertManager) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertManager) Validate ¶

func (m *AlertManager) Validate(formats strfmt.Registry) error

Validate validates this alert manager

type AlertManagersResult ¶

type AlertManagersResult struct {

	// active alert managers
	ActiveAlertManagers []*AlertManager `json:"activeAlertManagers"`

	// dropped alert managers
	DroppedAlertManagers []*AlertManager `json:"droppedAlertManagers"`
}

AlertManagersResult AlertManagersResult contains the result from querying the alertmanagers endpoint.

swagger:model AlertManagersResult

func (*AlertManagersResult) ContextValidate ¶

func (m *AlertManagersResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert managers result based on the context it is used

func (*AlertManagersResult) MarshalBinary ¶

func (m *AlertManagersResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertManagersResult) UnmarshalBinary ¶

func (m *AlertManagersResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertManagersResult) Validate ¶

func (m *AlertManagersResult) Validate(formats strfmt.Registry) error

Validate validates this alert managers result

type AlertQuery ¶

type AlertQuery struct {

	// Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation.
	DatasourceUID string `json:"datasourceUid,omitempty"`

	// JSON is the raw JSON query and includes the above properties as well as custom properties.
	Model interface{} `json:"model,omitempty"`

	// QueryType is an optional identifier for the type of query.
	// It can be used to distinguish different types of queries.
	QueryType string `json:"queryType,omitempty"`

	// RefID is the unique identifier of the query, set by the frontend call.
	RefID string `json:"refId,omitempty"`

	// relative time range
	RelativeTimeRange *RelativeTimeRange `json:"relativeTimeRange,omitempty"`
}

AlertQuery AlertQuery represents a single query associated with an alert definition.

swagger:model AlertQuery

func (*AlertQuery) ContextValidate ¶

func (m *AlertQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert query based on the context it is used

func (*AlertQuery) MarshalBinary ¶

func (m *AlertQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertQuery) UnmarshalBinary ¶

func (m *AlertQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertQuery) Validate ¶

func (m *AlertQuery) Validate(formats strfmt.Registry) error

Validate validates this alert query

type AlertQueryExport ¶

type AlertQueryExport struct {

	// datasource Uid
	DatasourceUID string `json:"datasourceUid,omitempty"`

	// model
	Model interface{} `json:"model,omitempty"`

	// query type
	QueryType string `json:"queryType,omitempty"`

	// ref Id
	RefID string `json:"refId,omitempty"`

	// relative time range
	RelativeTimeRange *RelativeTimeRangeExport `json:"relativeTimeRange,omitempty"`
}

AlertQueryExport AlertQueryExport is the provisioned export of models.AlertQuery.

swagger:model AlertQueryExport

func (*AlertQueryExport) ContextValidate ¶

func (m *AlertQueryExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert query export based on the context it is used

func (*AlertQueryExport) MarshalBinary ¶

func (m *AlertQueryExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertQueryExport) UnmarshalBinary ¶

func (m *AlertQueryExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertQueryExport) Validate ¶

func (m *AlertQueryExport) Validate(formats strfmt.Registry) error

Validate validates this alert query export

type AlertRuleExport ¶

type AlertRuleExport struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// condition
	Condition string `json:"condition,omitempty"`

	// dasboard Uid
	DasboardUID string `json:"dasboardUid,omitempty"`

	// data
	Data []*AlertQueryExport `json:"data"`

	// exec err state
	// Enum: [OK Alerting Error]
	ExecErrState string `json:"execErrState,omitempty"`

	// for
	For Duration `json:"for,omitempty"`

	// is paused
	IsPaused bool `json:"isPaused,omitempty"`

	// labels
	Labels map[string]string `json:"labels,omitempty"`

	// no data state
	// Enum: [Alerting NoData OK]
	NoDataState string `json:"noDataState,omitempty"`

	// notification settings
	NotificationSettings *AlertRuleNotificationSettingsExport `json:"notification_settings,omitempty"`

	// panel Id
	PanelID int64 `json:"panelId,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

AlertRuleExport AlertRuleExport is the provisioned file export of models.AlertRule.

swagger:model AlertRuleExport

func (*AlertRuleExport) ContextValidate ¶

func (m *AlertRuleExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert rule export based on the context it is used

func (*AlertRuleExport) MarshalBinary ¶

func (m *AlertRuleExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRuleExport) UnmarshalBinary ¶

func (m *AlertRuleExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRuleExport) Validate ¶

func (m *AlertRuleExport) Validate(formats strfmt.Registry) error

Validate validates this alert rule export

type AlertRuleGroup ¶

type AlertRuleGroup struct {

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// interval
	Interval int64 `json:"interval,omitempty"`

	// rules
	Rules []*ProvisionedAlertRule `json:"rules"`

	// title
	Title string `json:"title,omitempty"`
}

AlertRuleGroup alert rule group

swagger:model AlertRuleGroup

func (*AlertRuleGroup) ContextValidate ¶

func (m *AlertRuleGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert rule group based on the context it is used

func (*AlertRuleGroup) MarshalBinary ¶

func (m *AlertRuleGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRuleGroup) UnmarshalBinary ¶

func (m *AlertRuleGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRuleGroup) Validate ¶

func (m *AlertRuleGroup) Validate(formats strfmt.Registry) error

Validate validates this alert rule group

type AlertRuleGroupExport ¶

type AlertRuleGroupExport struct {

	// folder
	Folder string `json:"folder,omitempty"`

	// interval
	Interval Duration `json:"interval,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// rules
	Rules []*AlertRuleExport `json:"rules"`
}

AlertRuleGroupExport AlertRuleGroupExport is the provisioned file export of AlertRuleGroupV1.

swagger:model AlertRuleGroupExport

func (*AlertRuleGroupExport) ContextValidate ¶

func (m *AlertRuleGroupExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert rule group export based on the context it is used

func (*AlertRuleGroupExport) MarshalBinary ¶

func (m *AlertRuleGroupExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRuleGroupExport) UnmarshalBinary ¶

func (m *AlertRuleGroupExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRuleGroupExport) Validate ¶

func (m *AlertRuleGroupExport) Validate(formats strfmt.Registry) error

Validate validates this alert rule group export

type AlertRuleNotificationSettings ¶

type AlertRuleNotificationSettings struct {

	// Override the labels by which incoming alerts are grouped together. For example, multiple alerts coming in for
	// cluster=A and alertname=LatencyHigh would be batched into a single group. To aggregate by all possible labels
	// use the special value '...' as the sole label name.
	// This effectively disables aggregation entirely, passing through all alerts as-is. This is unlikely to be what
	// you want, unless you have a very low alert volume or your upstream notification system performs its own grouping.
	// Must include 'alertname' and 'grafana_folder' if not using '...'.
	// Example: ["alertname","grafana_folder","cluster"]
	GroupBy []string `json:"group_by"`

	// Override how long to wait before sending a notification about new alerts that are added to a group of alerts for
	// which an initial notification has already been sent. (Usually ~5m or more.)
	// Example: 5m
	GroupInterval string `json:"group_interval,omitempty"`

	// Override how long to initially wait to send a notification for a group of alerts. Allows to wait for an
	// inhibiting alert to arrive or collect more initial alerts for the same group. (Usually ~0s to few minutes.)
	// Example: 30s
	GroupWait string `json:"group_wait,omitempty"`

	// Override the times when notifications should be muted. These must match the name of a mute time interval defined
	// in the alertmanager configuration mute_time_intervals section. When muted it will not send any notifications, but
	// otherwise acts normally.
	// Example: ["maintenance"]
	MuteTimeIntervals []string `json:"mute_time_intervals"`

	// Name of the receiver to send notifications to.
	// Example: grafana-default-email
	// Required: true
	Receiver *string `json:"receiver"`

	// Override how long to wait before sending a notification again if it has already been sent successfully for an
	// alert. (Usually ~3h or more).
	// Note that this parameter is implicitly bound by Alertmanager's `--data.retention` configuration flag.
	// Notifications will be resent after either repeat_interval or the data retention period have passed, whichever
	// occurs first. `repeat_interval` should not be less than `group_interval`.
	// Example: 4h
	RepeatInterval string `json:"repeat_interval,omitempty"`
}

AlertRuleNotificationSettings alert rule notification settings

swagger:model AlertRuleNotificationSettings

func (*AlertRuleNotificationSettings) ContextValidate ¶

func (m *AlertRuleNotificationSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert rule notification settings based on context it is used

func (*AlertRuleNotificationSettings) MarshalBinary ¶

func (m *AlertRuleNotificationSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRuleNotificationSettings) UnmarshalBinary ¶

func (m *AlertRuleNotificationSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRuleNotificationSettings) Validate ¶

func (m *AlertRuleNotificationSettings) Validate(formats strfmt.Registry) error

Validate validates this alert rule notification settings

type AlertRuleNotificationSettingsExport ¶

type AlertRuleNotificationSettingsExport struct {

	// group by
	GroupBy []string `json:"group_by"`

	// group interval
	GroupInterval string `json:"group_interval,omitempty"`

	// group wait
	GroupWait string `json:"group_wait,omitempty"`

	// mute time intervals
	MuteTimeIntervals []string `json:"mute_time_intervals"`

	// receiver
	Receiver string `json:"receiver,omitempty"`

	// repeat interval
	RepeatInterval string `json:"repeat_interval,omitempty"`
}

AlertRuleNotificationSettingsExport AlertRuleNotificationSettingsExport is the provisioned export of models.NotificationSettings.

swagger:model AlertRuleNotificationSettingsExport

func (*AlertRuleNotificationSettingsExport) ContextValidate ¶

func (m *AlertRuleNotificationSettingsExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert rule notification settings export based on context it is used

func (*AlertRuleNotificationSettingsExport) MarshalBinary ¶

func (m *AlertRuleNotificationSettingsExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertRuleNotificationSettingsExport) UnmarshalBinary ¶

func (m *AlertRuleNotificationSettingsExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertRuleNotificationSettingsExport) Validate ¶

Validate validates this alert rule notification settings export

type AlertStatus ¶

type AlertStatus struct {

	// inhibited by
	// Required: true
	InhibitedBy []string `json:"inhibitedBy"`

	// silenced by
	// Required: true
	SilencedBy []string `json:"silencedBy"`

	// state
	// Required: true
	// Enum: [[unprocessed active suppressed]]
	State *string `json:"state"`
}

AlertStatus AlertStatus alert status

swagger:model alertStatus

func (*AlertStatus) ContextValidate ¶

func (m *AlertStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert status based on context it is used

func (*AlertStatus) MarshalBinary ¶

func (m *AlertStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertStatus) UnmarshalBinary ¶

func (m *AlertStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertStatus) Validate ¶

func (m *AlertStatus) Validate(formats strfmt.Registry) error

Validate validates this alert status

type AlertingFileExport ¶

type AlertingFileExport struct {

	// api version
	APIVersion int64 `json:"apiVersion,omitempty"`

	// contact points
	ContactPoints []*ContactPointExport `json:"contactPoints"`

	// groups
	Groups []*AlertRuleGroupExport `json:"groups"`

	// mute times
	MuteTimes []*MuteTimeIntervalExport `json:"muteTimes"`

	// policies
	Policies []*NotificationPolicyExport `json:"policies"`
}

AlertingFileExport AlertingFileExport is the full provisioned file export.

swagger:model AlertingFileExport

func (*AlertingFileExport) ContextValidate ¶

func (m *AlertingFileExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alerting file export based on the context it is used

func (*AlertingFileExport) MarshalBinary ¶

func (m *AlertingFileExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertingFileExport) UnmarshalBinary ¶

func (m *AlertingFileExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertingFileExport) Validate ¶

func (m *AlertingFileExport) Validate(formats strfmt.Registry) error

Validate validates this alerting file export

type AlertingRule ¶

type AlertingRule struct {

	// active at
	// Required: true
	// Format: date-time
	ActiveAt *strfmt.DateTime `json:"activeAt"`

	// alerts
	Alerts []*Alert `json:"alerts"`

	// annotations
	// Required: true
	Annotations OverrideLabels `json:"annotations"`

	// duration
	Duration float64 `json:"duration,omitempty"`

	// evaluation time
	EvaluationTime float64 `json:"evaluationTime,omitempty"`

	// health
	// Required: true
	Health *string `json:"health"`

	// labels
	Labels OverrideLabels `json:"labels,omitempty"`

	// last error
	LastError string `json:"lastError,omitempty"`

	// last evaluation
	// Format: date-time
	LastEvaluation strfmt.DateTime `json:"lastEvaluation,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// query
	// Required: true
	Query *string `json:"query"`

	// State can be "pending", "firing", "inactive".
	// Required: true
	State *string `json:"state"`

	// totals
	Totals map[string]int64 `json:"totals,omitempty"`

	// totals filtered
	TotalsFiltered map[string]int64 `json:"totalsFiltered,omitempty"`

	// type
	// Required: true
	Type *RuleType `json:"type"`
}

AlertingRule adapted from cortex

swagger:model AlertingRule

func (*AlertingRule) ContextValidate ¶

func (m *AlertingRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alerting rule based on the context it is used

func (*AlertingRule) MarshalBinary ¶

func (m *AlertingRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertingRule) UnmarshalBinary ¶

func (m *AlertingRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertingRule) Validate ¶

func (m *AlertingRule) Validate(formats strfmt.Registry) error

Validate validates this alerting rule

type AlertmanagerConfig ¶

type AlertmanagerConfig struct {

	// original
	// Required: true
	Original *string `json:"original"`
}

AlertmanagerConfig AlertmanagerConfig alertmanager config

swagger:model alertmanagerConfig

func (*AlertmanagerConfig) ContextValidate ¶

func (m *AlertmanagerConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alertmanager config based on context it is used

func (*AlertmanagerConfig) MarshalBinary ¶

func (m *AlertmanagerConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertmanagerConfig) UnmarshalBinary ¶

func (m *AlertmanagerConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertmanagerConfig) Validate ¶

func (m *AlertmanagerConfig) Validate(formats strfmt.Registry) error

Validate validates this alertmanager config

type Annotation ¶

type Annotation struct {

	// alert Id
	AlertID int64 `json:"alertId,omitempty"`

	// alert name
	AlertName string `json:"alertName,omitempty"`

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// created
	Created int64 `json:"created,omitempty"`

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// dashboard UID
	DashboardUID string `json:"dashboardUID,omitempty"`

	// data
	Data JSON `json:"data,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// login
	Login string `json:"login,omitempty"`

	// new state
	NewState string `json:"newState,omitempty"`

	// panel Id
	PanelID int64 `json:"panelId,omitempty"`

	// prev state
	PrevState string `json:"prevState,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// text
	Text string `json:"text,omitempty"`

	// time
	Time int64 `json:"time,omitempty"`

	// time end
	TimeEnd int64 `json:"timeEnd,omitempty"`

	// updated
	Updated int64 `json:"updated,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

Annotation annotation

swagger:model Annotation

func (*Annotation) ContextValidate ¶

func (m *Annotation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this annotation based on context it is used

func (*Annotation) MarshalBinary ¶

func (m *Annotation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Annotation) UnmarshalBinary ¶

func (m *Annotation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Annotation) Validate ¶

func (m *Annotation) Validate(formats strfmt.Registry) error

Validate validates this annotation

type AnnotationActions ¶

type AnnotationActions struct {

	// can add
	CanAdd bool `json:"canAdd,omitempty"`

	// can delete
	CanDelete bool `json:"canDelete,omitempty"`

	// can edit
	CanEdit bool `json:"canEdit,omitempty"`
}

AnnotationActions annotation actions

swagger:model AnnotationActions

func (*AnnotationActions) ContextValidate ¶

func (m *AnnotationActions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this annotation actions based on context it is used

func (*AnnotationActions) MarshalBinary ¶

func (m *AnnotationActions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotationActions) UnmarshalBinary ¶

func (m *AnnotationActions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotationActions) Validate ¶

func (m *AnnotationActions) Validate(formats strfmt.Registry) error

Validate validates this annotation actions

type AnnotationEvent ¶

type AnnotationEvent struct {

	// color
	Color string `json:"color,omitempty"`

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is region
	IsRegion bool `json:"isRegion,omitempty"`

	// panel Id
	PanelID int64 `json:"panelId,omitempty"`

	// source
	Source *AnnotationQuery `json:"source,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// text
	Text string `json:"text,omitempty"`

	// time
	Time int64 `json:"time,omitempty"`

	// time end
	TimeEnd int64 `json:"timeEnd,omitempty"`
}

AnnotationEvent annotation event

swagger:model AnnotationEvent

func (*AnnotationEvent) ContextValidate ¶

func (m *AnnotationEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this annotation event based on the context it is used

func (*AnnotationEvent) MarshalBinary ¶

func (m *AnnotationEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotationEvent) UnmarshalBinary ¶

func (m *AnnotationEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotationEvent) Validate ¶

func (m *AnnotationEvent) Validate(formats strfmt.Registry) error

Validate validates this annotation event

type AnnotationPanelFilter ¶

type AnnotationPanelFilter struct {

	// Should the specified panels be included or excluded
	Exclude bool `json:"exclude,omitempty"`

	// Panel IDs that should be included or excluded
	Ids []int64 `json:"ids"`
}

AnnotationPanelFilter AnnotationPanelFilter defines model for AnnotationPanelFilter.

swagger:model AnnotationPanelFilter

func (*AnnotationPanelFilter) ContextValidate ¶

func (m *AnnotationPanelFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this annotation panel filter based on context it is used

func (*AnnotationPanelFilter) MarshalBinary ¶

func (m *AnnotationPanelFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotationPanelFilter) UnmarshalBinary ¶

func (m *AnnotationPanelFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotationPanelFilter) Validate ¶

func (m *AnnotationPanelFilter) Validate(formats strfmt.Registry) error

Validate validates this annotation panel filter

type AnnotationPermission ¶

type AnnotationPermission struct {

	// dashboard
	Dashboard *AnnotationActions `json:"dashboard,omitempty"`

	// organization
	Organization *AnnotationActions `json:"organization,omitempty"`
}

AnnotationPermission annotation permission

swagger:model AnnotationPermission

func (*AnnotationPermission) ContextValidate ¶

func (m *AnnotationPermission) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this annotation permission based on the context it is used

func (*AnnotationPermission) MarshalBinary ¶

func (m *AnnotationPermission) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotationPermission) UnmarshalBinary ¶

func (m *AnnotationPermission) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotationPermission) Validate ¶

func (m *AnnotationPermission) Validate(formats strfmt.Registry) error

Validate validates this annotation permission

type AnnotationQuery ¶

type AnnotationQuery struct {

	// Set to 1 for the standard annotation query all dashboards have by default.
	BuiltIn float32 `json:"builtIn,omitempty"`

	// datasource
	Datasource *DataSourceRef `json:"datasource,omitempty"`

	// When enabled the annotation query is issued with every dashboard refresh
	Enable bool `json:"enable,omitempty"`

	// filter
	Filter *AnnotationPanelFilter `json:"filter,omitempty"`

	// Annotation queries can be toggled on or off at the top of the dashboard.
	// When hide is true, the toggle is not shown in the dashboard.
	Hide bool `json:"hide,omitempty"`

	// Color to use for the annotation event markers
	IconColor string `json:"iconColor,omitempty"`

	// Name of annotation.
	Name string `json:"name,omitempty"`

	// target
	Target *AnnotationTarget `json:"target,omitempty"`

	// TODO -- this should not exist here, it is based on the --grafana-- datasource
	Type string `json:"type,omitempty"`
}

AnnotationQuery TODO docs FROM: AnnotationQuery in grafana-data/src/types/annotations.ts

swagger:model AnnotationQuery

func (*AnnotationQuery) ContextValidate ¶

func (m *AnnotationQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this annotation query based on the context it is used

func (*AnnotationQuery) MarshalBinary ¶

func (m *AnnotationQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotationQuery) UnmarshalBinary ¶

func (m *AnnotationQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotationQuery) Validate ¶

func (m *AnnotationQuery) Validate(formats strfmt.Registry) error

Validate validates this annotation query

type AnnotationTarget ¶

type AnnotationTarget struct {

	// Only required/valid for the grafana datasource...
	// but code+tests is already depending on it so hard to change
	Limit int64 `json:"limit,omitempty"`

	// Only required/valid for the grafana datasource...
	// but code+tests is already depending on it so hard to change
	MatchAny bool `json:"matchAny,omitempty"`

	// Only required/valid for the grafana datasource...
	// but code+tests is already depending on it so hard to change
	Tags []string `json:"tags"`

	// Only required/valid for the grafana datasource...
	// but code+tests is already depending on it so hard to change
	Type string `json:"type,omitempty"`
}

AnnotationTarget TODO: this should be a regular DataQuery that depends on the selected dashboard these match the properties of the "grafana" datasouce that is default in most dashboards

swagger:model AnnotationTarget

func (*AnnotationTarget) ContextValidate ¶

func (m *AnnotationTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this annotation target based on context it is used

func (*AnnotationTarget) MarshalBinary ¶

func (m *AnnotationTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnnotationTarget) UnmarshalBinary ¶

func (m *AnnotationTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnnotationTarget) Validate ¶

func (m *AnnotationTarget) Validate(formats strfmt.Registry) error

Validate validates this annotation target

type Assignments ¶

type Assignments struct {

	// built in roles
	BuiltInRoles bool `json:"builtInRoles,omitempty"`

	// service accounts
	ServiceAccounts bool `json:"serviceAccounts,omitempty"`

	// teams
	Teams bool `json:"teams,omitempty"`

	// users
	Users bool `json:"users,omitempty"`
}

Assignments assignments

swagger:model Assignments

func (*Assignments) ContextValidate ¶

func (m *Assignments) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this assignments based on context it is used

func (*Assignments) MarshalBinary ¶

func (m *Assignments) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Assignments) UnmarshalBinary ¶

func (m *Assignments) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Assignments) Validate ¶

func (m *Assignments) Validate(formats strfmt.Registry) error

Validate validates this assignments

type AttributeTypeAndValue ¶

type AttributeTypeAndValue struct {

	// type
	Type ObjectIdentifier `json:"Type,omitempty"`

	// value
	Value interface{} `json:"Value,omitempty"`
}

AttributeTypeAndValue AttributeTypeAndValue mirrors the ASN.1 structure of the same name in RFC 5280, Section 4.1.2.4.

swagger:model AttributeTypeAndValue

func (*AttributeTypeAndValue) ContextValidate ¶

func (m *AttributeTypeAndValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this attribute type and value based on the context it is used

func (*AttributeTypeAndValue) MarshalBinary ¶

func (m *AttributeTypeAndValue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AttributeTypeAndValue) UnmarshalBinary ¶

func (m *AttributeTypeAndValue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AttributeTypeAndValue) Validate ¶

func (m *AttributeTypeAndValue) Validate(formats strfmt.Registry) error

Validate validates this attribute type and value

type Authorization ¶

type Authorization struct {

	// credentials
	Credentials Secret `json:"credentials,omitempty"`

	// credentials file
	CredentialsFile string `json:"credentials_file,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

Authorization Authorization contains HTTP authorization credentials.

swagger:model Authorization

func (*Authorization) ContextValidate ¶

func (m *Authorization) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this authorization based on the context it is used

func (*Authorization) MarshalBinary ¶

func (m *Authorization) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Authorization) UnmarshalBinary ¶

func (m *Authorization) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Authorization) Validate ¶

func (m *Authorization) Validate(formats strfmt.Registry) error

Validate validates this authorization

type BasicAuth ¶

type BasicAuth struct {

	// password
	Password Secret `json:"password,omitempty"`

	// password file
	PasswordFile string `json:"password_file,omitempty"`

	// username
	Username string `json:"username,omitempty"`

	// username file
	UsernameFile string `json:"username_file,omitempty"`
}

BasicAuth BasicAuth contains basic HTTP authentication credentials.

swagger:model BasicAuth

func (*BasicAuth) ContextValidate ¶

func (m *BasicAuth) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this basic auth based on the context it is used

func (*BasicAuth) MarshalBinary ¶

func (m *BasicAuth) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BasicAuth) UnmarshalBinary ¶

func (m *BasicAuth) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BasicAuth) Validate ¶

func (m *BasicAuth) Validate(formats strfmt.Registry) error

Validate validates this basic auth

type CalculateDashboardDiffParamsBody ¶

type CalculateDashboardDiffParamsBody struct {

	// base
	Base *CalculateDiffTarget `json:"base,omitempty"`

	// The type of diff to return
	// Description:
	// `basic`
	// `json`
	// Enum: [basic json]
	DiffType string `json:"diffType,omitempty"`

	// new
	New *CalculateDiffTarget `json:"new,omitempty"`
}

CalculateDashboardDiffParamsBody calculate dashboard diff params body

swagger:model calculateDashboardDiffParamsBody

func (*CalculateDashboardDiffParamsBody) ContextValidate ¶

func (m *CalculateDashboardDiffParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this calculate dashboard diff params body based on the context it is used

func (*CalculateDashboardDiffParamsBody) MarshalBinary ¶

func (m *CalculateDashboardDiffParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CalculateDashboardDiffParamsBody) UnmarshalBinary ¶

func (m *CalculateDashboardDiffParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CalculateDashboardDiffParamsBody) Validate ¶

Validate validates this calculate dashboard diff params body

type CalculateDiffTarget ¶

type CalculateDiffTarget struct {

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// unsaved dashboard
	UnsavedDashboard JSON `json:"unsavedDashboard,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

CalculateDiffTarget calculate diff target

swagger:model CalculateDiffTarget

func (*CalculateDiffTarget) ContextValidate ¶

func (m *CalculateDiffTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this calculate diff target based on context it is used

func (*CalculateDiffTarget) MarshalBinary ¶

func (m *CalculateDiffTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CalculateDiffTarget) UnmarshalBinary ¶

func (m *CalculateDiffTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CalculateDiffTarget) Validate ¶

func (m *CalculateDiffTarget) Validate(formats strfmt.Registry) error

Validate validates this calculate diff target

type Certificate ¶

type Certificate struct {

	// authority key Id
	AuthorityKeyID []uint8 `json:"AuthorityKeyId"`

	// BasicConstraintsValid indicates whether IsCA, MaxPathLen,
	// and MaxPathLenZero are valid.
	BasicConstraintsValid bool `json:"BasicConstraintsValid,omitempty"`

	// CRL Distribution Points
	CRLDistributionPoints []string `json:"CRLDistributionPoints"`

	// Subject Alternate Name values. (Note that these values may not be valid
	// if invalid values were contained within a parsed certificate. For
	// example, an element of DNSNames may not be a valid DNS domain name.)
	DNSNames []string `json:"DNSNames"`

	// email addresses
	EmailAddresses []string `json:"EmailAddresses"`

	// excluded DNS domains
	ExcludedDNSDomains []string `json:"ExcludedDNSDomains"`

	// excluded email addresses
	ExcludedEmailAddresses []string `json:"ExcludedEmailAddresses"`

	// excluded IP ranges
	ExcludedIPRanges []*IPNet `json:"ExcludedIPRanges"`

	// excluded URI domains
	ExcludedURIDomains []string `json:"ExcludedURIDomains"`

	// ext key usage
	ExtKeyUsage []ExtKeyUsage `json:"ExtKeyUsage"`

	// Extensions contains raw X.509 extensions. When parsing certificates,
	// this can be used to extract non-critical extensions that are not
	// parsed by this package. When marshaling certificates, the Extensions
	// field is ignored, see ExtraExtensions.
	Extensions []*Extension `json:"Extensions"`

	// ExtraExtensions contains extensions to be copied, raw, into any
	// marshaled certificates. Values override any extensions that would
	// otherwise be produced based on the other fields. The ExtraExtensions
	// field is not populated when parsing certificates, see Extensions.
	ExtraExtensions []*Extension `json:"ExtraExtensions"`

	// IP addresses
	IPAddresses []string `json:"IPAddresses"`

	// is c a
	IsCA bool `json:"IsCA,omitempty"`

	// issuer
	Issuer *Name `json:"Issuer,omitempty"`

	// issuing certificate URL
	IssuingCertificateURL []string `json:"IssuingCertificateURL"`

	// key usage
	KeyUsage KeyUsage `json:"KeyUsage,omitempty"`

	// MaxPathLen and MaxPathLenZero indicate the presence and
	// value of the BasicConstraints' "pathLenConstraint".
	//
	// When parsing a certificate, a positive non-zero MaxPathLen
	// means that the field was specified, -1 means it was unset,
	// and MaxPathLenZero being true mean that the field was
	// explicitly set to zero. The case of MaxPathLen==0 with MaxPathLenZero==false
	// should be treated equivalent to -1 (unset).
	//
	// When generating a certificate, an unset pathLenConstraint
	// can be requested with either MaxPathLen == -1 or using the
	// zero value for both MaxPathLen and MaxPathLenZero.
	MaxPathLen int64 `json:"MaxPathLen,omitempty"`

	// MaxPathLenZero indicates that BasicConstraintsValid==true
	// and MaxPathLen==0 should be interpreted as an actual
	// maximum path length of zero. Otherwise, that combination is
	// interpreted as MaxPathLen not being set.
	MaxPathLenZero bool `json:"MaxPathLenZero,omitempty"`

	// not before
	// Format: date-time
	NotBefore strfmt.DateTime `json:"NotBefore,omitempty"`

	// RFC 5280, 4.2.2.1 (Authority Information Access)
	OCSPServer []string `json:"OCSPServer"`

	// permitted DNS domains
	PermittedDNSDomains []string `json:"PermittedDNSDomains"`

	// Name constraints
	PermittedDNSDomainsCritical bool `json:"PermittedDNSDomainsCritical,omitempty"`

	// permitted email addresses
	PermittedEmailAddresses []string `json:"PermittedEmailAddresses"`

	// permitted IP ranges
	PermittedIPRanges []*IPNet `json:"PermittedIPRanges"`

	// permitted URI domains
	PermittedURIDomains []string `json:"PermittedURIDomains"`

	// policy identifiers
	PolicyIdentifiers []ObjectIdentifier `json:"PolicyIdentifiers"`

	// public key
	PublicKey interface{} `json:"PublicKey,omitempty"`

	// public key algorithm
	PublicKeyAlgorithm PublicKeyAlgorithm `json:"PublicKeyAlgorithm,omitempty"`

	// raw
	Raw []uint8 `json:"Raw"`

	// raw issuer
	RawIssuer []uint8 `json:"RawIssuer"`

	// raw subject
	RawSubject []uint8 `json:"RawSubject"`

	// raw subject public key info
	RawSubjectPublicKeyInfo []uint8 `json:"RawSubjectPublicKeyInfo"`

	// raw t b s certificate
	RawTBSCertificate []uint8 `json:"RawTBSCertificate"`

	// serial number
	SerialNumber string `json:"SerialNumber,omitempty"`

	// signature
	Signature []uint8 `json:"Signature"`

	// signature algorithm
	SignatureAlgorithm SignatureAlgorithm `json:"SignatureAlgorithm,omitempty"`

	// subject
	Subject *Name `json:"Subject,omitempty"`

	// subject key Id
	SubjectKeyID []uint8 `json:"SubjectKeyId"`

	// u r is
	URIs []*URL `json:"URIs"`

	// UnhandledCriticalExtensions contains a list of extension IDs that
	// were not (fully) processed when parsing. Verify will fail if this
	// slice is non-empty, unless verification is delegated to an OS
	// library which understands all the critical extensions.
	//
	// Users can access these extensions using Extensions and can remove
	// elements from this slice if they believe that they have been
	// handled.
	UnhandledCriticalExtensions []ObjectIdentifier `json:"UnhandledCriticalExtensions"`

	// unknown ext key usage
	UnknownExtKeyUsage []ObjectIdentifier `json:"UnknownExtKeyUsage"`

	// version
	Version int64 `json:"Version,omitempty"`
}

Certificate A Certificate represents an X.509 certificate.

swagger:model Certificate

func (*Certificate) ContextValidate ¶

func (m *Certificate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this certificate based on the context it is used

func (*Certificate) MarshalBinary ¶

func (m *Certificate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Certificate) UnmarshalBinary ¶

func (m *Certificate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Certificate) Validate ¶

func (m *Certificate) Validate(formats strfmt.Registry) error

Validate validates this certificate

type ChangeUserPasswordCommand ¶

type ChangeUserPasswordCommand struct {

	// new password
	NewPassword Password `json:"newPassword,omitempty"`

	// old password
	OldPassword Password `json:"oldPassword,omitempty"`
}

ChangeUserPasswordCommand change user password command

swagger:model ChangeUserPasswordCommand

func (*ChangeUserPasswordCommand) ContextValidate ¶

func (m *ChangeUserPasswordCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this change user password command based on the context it is used

func (*ChangeUserPasswordCommand) MarshalBinary ¶

func (m *ChangeUserPasswordCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeUserPasswordCommand) UnmarshalBinary ¶

func (m *ChangeUserPasswordCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeUserPasswordCommand) Validate ¶

func (m *ChangeUserPasswordCommand) Validate(formats strfmt.Registry) error

Validate validates this change user password command

type ClearHelpFlagsOKBody ¶

type ClearHelpFlagsOKBody struct {

	// help flags1
	HelpFlags1 int64 `json:"helpFlags1,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

ClearHelpFlagsOKBody clear help flags Ok body

swagger:model clearHelpFlagsOkBody

func (*ClearHelpFlagsOKBody) ContextValidate ¶

func (m *ClearHelpFlagsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this clear help flags Ok body based on context it is used

func (*ClearHelpFlagsOKBody) MarshalBinary ¶

func (m *ClearHelpFlagsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClearHelpFlagsOKBody) UnmarshalBinary ¶

func (m *ClearHelpFlagsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClearHelpFlagsOKBody) Validate ¶

func (m *ClearHelpFlagsOKBody) Validate(formats strfmt.Registry) error

Validate validates this clear help flags Ok body

type ClusterStatus ¶

type ClusterStatus struct {

	// name
	Name string `json:"name,omitempty"`

	// peers
	Peers []*PeerStatus `json:"peers"`

	// status
	// Required: true
	// Enum: [[ready settling disabled]]
	Status *string `json:"status"`
}

ClusterStatus ClusterStatus cluster status

swagger:model clusterStatus

func (*ClusterStatus) ContextValidate ¶

func (m *ClusterStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster status based on the context it is used

func (*ClusterStatus) MarshalBinary ¶

func (m *ClusterStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterStatus) UnmarshalBinary ¶

func (m *ClusterStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterStatus) Validate ¶

func (m *ClusterStatus) Validate(formats strfmt.Registry) error

Validate validates this cluster status

type ConfFloat64 ¶

type ConfFloat64 float64

ConfFloat64 ConfFloat64 is a float64. It Marshals float64 values of NaN of Inf to null.

swagger:model ConfFloat64

func (ConfFloat64) ContextValidate ¶

func (m ConfFloat64) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this conf float64 based on context it is used

func (ConfFloat64) Validate ¶

func (m ConfFloat64) Validate(formats strfmt.Registry) error

Validate validates this conf float64

type ContactPointExport ¶

type ContactPointExport struct {

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// receivers
	Receivers []*ReceiverExport `json:"receivers"`
}

ContactPointExport ContactPointExport is the provisioned file export of alerting.ContactPointV1.

swagger:model ContactPointExport

func (*ContactPointExport) ContextValidate ¶

func (m *ContactPointExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this contact point export based on the context it is used

func (*ContactPointExport) MarshalBinary ¶

func (m *ContactPointExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContactPointExport) UnmarshalBinary ¶

func (m *ContactPointExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContactPointExport) Validate ¶

func (m *ContactPointExport) Validate(formats strfmt.Registry) error

Validate validates this contact point export

type ContactPoints ¶

type ContactPoints []*EmbeddedContactPoint

ContactPoints contact points

swagger:model ContactPoints

func (ContactPoints) ContextValidate ¶

func (m ContactPoints) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this contact points based on the context it is used

func (ContactPoints) Validate ¶

func (m ContactPoints) Validate(formats strfmt.Registry) error

Validate validates this contact points

type CookiePreferences ¶

type CookiePreferences struct {

	// analytics
	Analytics interface{} `json:"analytics,omitempty"`

	// functional
	Functional interface{} `json:"functional,omitempty"`

	// performance
	Performance interface{} `json:"performance,omitempty"`
}

CookiePreferences CookiePreferences defines model for CookiePreferences.

swagger:model CookiePreferences

func (*CookiePreferences) ContextValidate ¶

func (m *CookiePreferences) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cookie preferences based on context it is used

func (*CookiePreferences) MarshalBinary ¶

func (m *CookiePreferences) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CookiePreferences) UnmarshalBinary ¶

func (m *CookiePreferences) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CookiePreferences) Validate ¶

func (m *CookiePreferences) Validate(formats strfmt.Registry) error

Validate validates this cookie preferences

type CookieType ¶

type CookieType string

CookieType cookie type

swagger:model CookieType

func (CookieType) ContextValidate ¶

func (m CookieType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cookie type based on context it is used

func (CookieType) Validate ¶

func (m CookieType) Validate(formats strfmt.Registry) error

Validate validates this cookie type

type Correlation ¶

type Correlation struct {

	// config
	Config *CorrelationConfig `json:"config,omitempty"`

	// Description of the correlation
	// Example: Logs to Traces
	Description string `json:"description,omitempty"`

	// Label identifying the correlation
	// Example: My Label
	Label string `json:"label,omitempty"`

	// OrgID of the data source the correlation originates from
	// Example: 1
	OrgID int64 `json:"orgId,omitempty"`

	// Provisioned True if the correlation was created during provisioning
	Provisioned bool `json:"provisioned,omitempty"`

	// UID of the data source the correlation originates from
	// Example: d0oxYRg4z
	SourceUID string `json:"sourceUID,omitempty"`

	// UID of the data source the correlation points to
	// Example: PE1C5CBDA0504A6A3
	TargetUID string `json:"targetUID,omitempty"`

	// Unique identifier of the correlation
	// Example: 50xhMlg9k
	UID string `json:"uid,omitempty"`
}

Correlation Correlation is the model for correlations definitions

swagger:model Correlation

func (*Correlation) ContextValidate ¶

func (m *Correlation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this correlation based on the context it is used

func (*Correlation) MarshalBinary ¶

func (m *Correlation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Correlation) UnmarshalBinary ¶

func (m *Correlation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Correlation) Validate ¶

func (m *Correlation) Validate(formats strfmt.Registry) error

Validate validates this correlation

type CorrelationConfig ¶

type CorrelationConfig struct {

	// Field used to attach the correlation link
	// Example: message
	// Required: true
	Field *string `json:"field"`

	// Target data query
	// Example: {"prop1":"value1","prop2":"value"}
	// Required: true
	Target interface{} `json:"target"`

	// transformations
	Transformations Transformations `json:"transformations,omitempty"`

	// type
	// Required: true
	Type *CorrelationConfigType `json:"type"`
}

CorrelationConfig correlation config

swagger:model CorrelationConfig

func (*CorrelationConfig) ContextValidate ¶

func (m *CorrelationConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this correlation config based on the context it is used

func (*CorrelationConfig) MarshalBinary ¶

func (m *CorrelationConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CorrelationConfig) UnmarshalBinary ¶

func (m *CorrelationConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CorrelationConfig) Validate ¶

func (m *CorrelationConfig) Validate(formats strfmt.Registry) error

Validate validates this correlation config

type CorrelationConfigType ¶

type CorrelationConfigType string

CorrelationConfigType correlation config type

swagger:model CorrelationConfigType

func (CorrelationConfigType) ContextValidate ¶

func (m CorrelationConfigType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this correlation config type based on context it is used

func (CorrelationConfigType) Validate ¶

func (m CorrelationConfigType) Validate(formats strfmt.Registry) error

Validate validates this correlation config type

type CorrelationConfigUpdateDTO ¶

type CorrelationConfigUpdateDTO struct {

	// Field used to attach the correlation link
	// Example: message
	Field string `json:"field,omitempty"`

	// Target data query
	// Example: {"prop1":"value1","prop2":"value"}
	Target interface{} `json:"target,omitempty"`

	// Source data transformations
	// Example: [{"type":"logfmt"},{"expression":"(Superman|Batman)","type":"regex","variable":"name"}]
	Transformations []*Transformation `json:"transformations"`

	// type
	Type CorrelationConfigType `json:"type,omitempty"`
}

CorrelationConfigUpdateDTO correlation config update DTO

swagger:model CorrelationConfigUpdateDTO

func (*CorrelationConfigUpdateDTO) ContextValidate ¶

func (m *CorrelationConfigUpdateDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this correlation config update DTO based on the context it is used

func (*CorrelationConfigUpdateDTO) MarshalBinary ¶

func (m *CorrelationConfigUpdateDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CorrelationConfigUpdateDTO) UnmarshalBinary ¶

func (m *CorrelationConfigUpdateDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CorrelationConfigUpdateDTO) Validate ¶

func (m *CorrelationConfigUpdateDTO) Validate(formats strfmt.Registry) error

Validate validates this correlation config update DTO

type CounterResetHint ¶

type CounterResetHint uint8

CounterResetHint CounterResetHint contains the known information about a counter reset,

or alternatively that we are dealing with a gauge histogram, where counter resets do not apply.

swagger:model CounterResetHint

func (CounterResetHint) ContextValidate ¶

func (m CounterResetHint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this counter reset hint based on context it is used

func (CounterResetHint) Validate ¶

func (m CounterResetHint) Validate(formats strfmt.Registry) error

Validate validates this counter reset hint

type CreateCorrelationCommand ¶

type CreateCorrelationCommand struct {

	// config
	Config *CorrelationConfig `json:"config,omitempty"`

	// Optional description of the correlation
	// Example: Logs to Traces
	Description string `json:"description,omitempty"`

	// Optional label identifying the correlation
	// Example: My label
	Label string `json:"label,omitempty"`

	// True if correlation was created with provisioning. This makes it read-only.
	Provisioned bool `json:"provisioned,omitempty"`

	// Target data source UID to which the correlation is created. required if config.type = query
	// Example: PE1C5CBDA0504A6A3
	TargetUID string `json:"targetUID,omitempty"`
}

CreateCorrelationCommand CreateCorrelationCommand is the command for creating a correlation

swagger:model CreateCorrelationCommand

func (*CreateCorrelationCommand) ContextValidate ¶

func (m *CreateCorrelationCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create correlation command based on the context it is used

func (*CreateCorrelationCommand) MarshalBinary ¶

func (m *CreateCorrelationCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateCorrelationCommand) UnmarshalBinary ¶

func (m *CreateCorrelationCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateCorrelationCommand) Validate ¶

func (m *CreateCorrelationCommand) Validate(formats strfmt.Registry) error

Validate validates this create correlation command

type CreateCorrelationResponseBody ¶

type CreateCorrelationResponseBody struct {

	// message
	// Example: Correlation created
	Message string `json:"message,omitempty"`

	// result
	Result *Correlation `json:"result,omitempty"`
}

CreateCorrelationResponseBody CreateCorrelationResponse is the response struct for CreateCorrelationCommand

swagger:model CreateCorrelationResponseBody

func (*CreateCorrelationResponseBody) ContextValidate ¶

func (m *CreateCorrelationResponseBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create correlation response body based on the context it is used

func (*CreateCorrelationResponseBody) MarshalBinary ¶

func (m *CreateCorrelationResponseBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateCorrelationResponseBody) UnmarshalBinary ¶

func (m *CreateCorrelationResponseBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateCorrelationResponseBody) Validate ¶

func (m *CreateCorrelationResponseBody) Validate(formats strfmt.Registry) error

Validate validates this create correlation response body

type CreateDashboardSnapshotCommand ¶

type CreateDashboardSnapshotCommand struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// dashboard
	// Required: true
	Dashboard *Unstructured `json:"dashboard"`

	// Unique key used to delete the snapshot. It is different from the `key` so that only the creator can delete the snapshot. Required if `external` is `true`.
	DeleteKey string `json:"deleteKey,omitempty"`

	// When the snapshot should expire in seconds in seconds. Default is never to expire.
	Expires int64 `json:"expires,omitempty"`

	// these are passed when storing an external snapshot ref
	// Save the snapshot on an external server rather than locally.
	External *bool `json:"external,omitempty"`

	// Define the unique key. Required if `external` is `true`.
	Key string `json:"key,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// Snapshot name
	Name string `json:"name,omitempty"`
}

CreateDashboardSnapshotCommand create dashboard snapshot command

swagger:model CreateDashboardSnapshotCommand

func (*CreateDashboardSnapshotCommand) ContextValidate ¶

func (m *CreateDashboardSnapshotCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create dashboard snapshot command based on the context it is used

func (*CreateDashboardSnapshotCommand) MarshalBinary ¶

func (m *CreateDashboardSnapshotCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateDashboardSnapshotCommand) UnmarshalBinary ¶

func (m *CreateDashboardSnapshotCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateDashboardSnapshotCommand) Validate ¶

func (m *CreateDashboardSnapshotCommand) Validate(formats strfmt.Registry) error

Validate validates this create dashboard snapshot command

type CreateDashboardSnapshotOKBody ¶

type CreateDashboardSnapshotOKBody struct {

	// Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot.
	DeleteKey string `json:"deleteKey,omitempty"`

	// delete Url
	DeleteURL string `json:"deleteUrl,omitempty"`

	// Snapshot id
	ID int64 `json:"id,omitempty"`

	// Unique key
	Key string `json:"key,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

CreateDashboardSnapshotOKBody create dashboard snapshot Ok body

swagger:model createDashboardSnapshotOkBody

func (*CreateDashboardSnapshotOKBody) ContextValidate ¶

func (m *CreateDashboardSnapshotOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create dashboard snapshot Ok body based on context it is used

func (*CreateDashboardSnapshotOKBody) MarshalBinary ¶

func (m *CreateDashboardSnapshotOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateDashboardSnapshotOKBody) UnmarshalBinary ¶

func (m *CreateDashboardSnapshotOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateDashboardSnapshotOKBody) Validate ¶

func (m *CreateDashboardSnapshotOKBody) Validate(formats strfmt.Registry) error

Validate validates this create dashboard snapshot Ok body

type CreateFolderCommand ¶

type CreateFolderCommand struct {

	// description
	Description string `json:"description,omitempty"`

	// parent Uid
	ParentUID string `json:"parentUid,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

CreateFolderCommand CreateFolderCommand captures the information required by the folder service to create a folder.

swagger:model CreateFolderCommand

func (*CreateFolderCommand) ContextValidate ¶

func (m *CreateFolderCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create folder command based on context it is used

func (*CreateFolderCommand) MarshalBinary ¶

func (m *CreateFolderCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateFolderCommand) UnmarshalBinary ¶

func (m *CreateFolderCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateFolderCommand) Validate ¶

func (m *CreateFolderCommand) Validate(formats strfmt.Registry) error

Validate validates this create folder command

type CreateLibraryElementCommand ¶

type CreateLibraryElementCommand struct {

	// ID of the folder where the library element is stored.
	//
	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// UID of the folder where the library element is stored.
	FolderUID string `json:"folderUid,omitempty"`

	// Kind of element to create, Use 1 for library panels or 2 for c.
	// Description:
	// 1 - library panels
	// 2 - library variables
	// Enum: [1 2]
	Kind int64 `json:"kind,omitempty"`

	// The JSON model for the library element.
	Model interface{} `json:"model,omitempty"`

	// Name of the library element.
	Name string `json:"name,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

CreateLibraryElementCommand CreateLibraryElementCommand is the command for adding a LibraryElement

swagger:model CreateLibraryElementCommand

func (*CreateLibraryElementCommand) ContextValidate ¶

func (m *CreateLibraryElementCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create library element command based on context it is used

func (*CreateLibraryElementCommand) MarshalBinary ¶

func (m *CreateLibraryElementCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateLibraryElementCommand) UnmarshalBinary ¶

func (m *CreateLibraryElementCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateLibraryElementCommand) Validate ¶

func (m *CreateLibraryElementCommand) Validate(formats strfmt.Registry) error

Validate validates this create library element command

type CreateOrUpdateReportConfig ¶

type CreateOrUpdateReportConfig struct {

	// dashboards
	Dashboards []*ReportDashboard `json:"dashboards"`

	// enable Csv
	EnableCSV bool `json:"enableCsv,omitempty"`

	// enable dashboard Url
	EnableDashboardURL bool `json:"enableDashboardUrl,omitempty"`

	// formats
	Formats []Type `json:"formats"`

	// message
	Message string `json:"message,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// options
	Options *ReportOptions `json:"options,omitempty"`

	// recipients
	Recipients string `json:"recipients,omitempty"`

	// reply to
	ReplyTo string `json:"replyTo,omitempty"`

	// scale factor
	ScaleFactor int64 `json:"scaleFactor,omitempty"`

	// schedule
	Schedule *ReportSchedule `json:"schedule,omitempty"`

	// state
	State State `json:"state,omitempty"`
}

CreateOrUpdateReportConfig create or update report config

swagger:model CreateOrUpdateReportConfig

func (*CreateOrUpdateReportConfig) ContextValidate ¶

func (m *CreateOrUpdateReportConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create or update report config based on the context it is used

func (*CreateOrUpdateReportConfig) MarshalBinary ¶

func (m *CreateOrUpdateReportConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrUpdateReportConfig) UnmarshalBinary ¶

func (m *CreateOrUpdateReportConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrUpdateReportConfig) Validate ¶

func (m *CreateOrUpdateReportConfig) Validate(formats strfmt.Registry) error

Validate validates this create or update report config

type CreateOrgCommand ¶

type CreateOrgCommand struct {

	// name
	Name string `json:"name,omitempty"`
}

CreateOrgCommand create org command

swagger:model CreateOrgCommand

func (*CreateOrgCommand) ContextValidate ¶

func (m *CreateOrgCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create org command based on context it is used

func (*CreateOrgCommand) MarshalBinary ¶

func (m *CreateOrgCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrgCommand) UnmarshalBinary ¶

func (m *CreateOrgCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrgCommand) Validate ¶

func (m *CreateOrgCommand) Validate(formats strfmt.Registry) error

Validate validates this create org command

type CreateOrgOKBody ¶

type CreateOrgOKBody struct {

	// Message Message of the created org.
	// Example: Data source added
	// Required: true
	Message *string `json:"message"`

	// ID Identifier of the created org.
	// Example: 65
	// Required: true
	OrgID *int64 `json:"orgId"`
}

CreateOrgOKBody create org Ok body

swagger:model createOrgOkBody

func (*CreateOrgOKBody) ContextValidate ¶

func (m *CreateOrgOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create org Ok body based on context it is used

func (*CreateOrgOKBody) MarshalBinary ¶

func (m *CreateOrgOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrgOKBody) UnmarshalBinary ¶

func (m *CreateOrgOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrgOKBody) Validate ¶

func (m *CreateOrgOKBody) Validate(formats strfmt.Registry) error

Validate validates this create org Ok body

type CreatePlaylistCommand ¶

type CreatePlaylistCommand struct {

	// interval
	Interval string `json:"interval,omitempty"`

	// items
	Items []*PlaylistItem `json:"items"`

	// name
	Name string `json:"name,omitempty"`
}

CreatePlaylistCommand create playlist command

swagger:model CreatePlaylistCommand

func (*CreatePlaylistCommand) ContextValidate ¶

func (m *CreatePlaylistCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create playlist command based on the context it is used

func (*CreatePlaylistCommand) MarshalBinary ¶

func (m *CreatePlaylistCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePlaylistCommand) UnmarshalBinary ¶

func (m *CreatePlaylistCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePlaylistCommand) Validate ¶

func (m *CreatePlaylistCommand) Validate(formats strfmt.Registry) error

Validate validates this create playlist command

type CreateQueryInQueryHistoryCommand ¶

type CreateQueryInQueryHistoryCommand struct {

	// UID of the data source for which are queries stored.
	// Example: PE1C5CBDA0504A6A3
	DatasourceUID string `json:"datasourceUid,omitempty"`

	// queries
	// Required: true
	Queries JSON `json:"queries"`
}

CreateQueryInQueryHistoryCommand CreateQueryInQueryHistoryCommand is the command for adding query history

swagger:model CreateQueryInQueryHistoryCommand

func (*CreateQueryInQueryHistoryCommand) ContextValidate ¶

func (m *CreateQueryInQueryHistoryCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create query in query history command based on context it is used

func (*CreateQueryInQueryHistoryCommand) MarshalBinary ¶

func (m *CreateQueryInQueryHistoryCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateQueryInQueryHistoryCommand) UnmarshalBinary ¶

func (m *CreateQueryInQueryHistoryCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateQueryInQueryHistoryCommand) Validate ¶

Validate validates this create query in query history command

type CreateReportOKBody ¶

type CreateReportOKBody struct {

	// id
	ID int64 `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

CreateReportOKBody create report Ok body

swagger:model createReportOkBody

func (*CreateReportOKBody) ContextValidate ¶

func (m *CreateReportOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create report Ok body based on context it is used

func (*CreateReportOKBody) MarshalBinary ¶

func (m *CreateReportOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateReportOKBody) UnmarshalBinary ¶

func (m *CreateReportOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateReportOKBody) Validate ¶

func (m *CreateReportOKBody) Validate(formats strfmt.Registry) error

Validate validates this create report Ok body

type CreateRoleForm ¶

type CreateRoleForm struct {

	// description
	Description string `json:"description,omitempty"`

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// global
	Global bool `json:"global,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// hidden
	Hidden bool `json:"hidden,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// permissions
	Permissions []*Permission `json:"permissions"`

	// uid
	UID string `json:"uid,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

CreateRoleForm create role form

swagger:model CreateRoleForm

func (*CreateRoleForm) ContextValidate ¶

func (m *CreateRoleForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create role form based on the context it is used

func (*CreateRoleForm) MarshalBinary ¶

func (m *CreateRoleForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateRoleForm) UnmarshalBinary ¶

func (m *CreateRoleForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateRoleForm) Validate ¶

func (m *CreateRoleForm) Validate(formats strfmt.Registry) error

Validate validates this create role form

type CreateServiceAccountForm ¶

type CreateServiceAccountForm struct {

	// is disabled
	// Example: false
	IsDisabled bool `json:"isDisabled,omitempty"`

	// name
	// Example: grafana
	Name string `json:"name,omitempty"`

	// role
	// Example: Admin
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`
}

CreateServiceAccountForm create service account form

swagger:model CreateServiceAccountForm

func (*CreateServiceAccountForm) ContextValidate ¶

func (m *CreateServiceAccountForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create service account form based on context it is used

func (*CreateServiceAccountForm) MarshalBinary ¶

func (m *CreateServiceAccountForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateServiceAccountForm) UnmarshalBinary ¶

func (m *CreateServiceAccountForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateServiceAccountForm) Validate ¶

func (m *CreateServiceAccountForm) Validate(formats strfmt.Registry) error

Validate validates this create service account form

type CreateTeamCommand ¶

type CreateTeamCommand struct {

	// email
	Email string `json:"email,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

CreateTeamCommand create team command

swagger:model CreateTeamCommand

func (*CreateTeamCommand) ContextValidate ¶

func (m *CreateTeamCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create team command based on context it is used

func (*CreateTeamCommand) MarshalBinary ¶

func (m *CreateTeamCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateTeamCommand) UnmarshalBinary ¶

func (m *CreateTeamCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateTeamCommand) Validate ¶

func (m *CreateTeamCommand) Validate(formats strfmt.Registry) error

Validate validates this create team command

type CreateTeamOKBody ¶

type CreateTeamOKBody struct {

	// message
	Message string `json:"message,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`
}

CreateTeamOKBody create team Ok body

swagger:model createTeamOkBody

func (*CreateTeamOKBody) ContextValidate ¶

func (m *CreateTeamOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create team Ok body based on context it is used

func (*CreateTeamOKBody) MarshalBinary ¶

func (m *CreateTeamOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateTeamOKBody) UnmarshalBinary ¶

func (m *CreateTeamOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateTeamOKBody) Validate ¶

func (m *CreateTeamOKBody) Validate(formats strfmt.Registry) error

Validate validates this create team Ok body

type DashboardACLInfoDTO ¶

type DashboardACLInfoDTO struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// inherited
	Inherited bool `json:"inherited,omitempty"`

	// is folder
	IsFolder bool `json:"isFolder,omitempty"`

	// permission
	Permission PermissionType `json:"permission,omitempty"`

	// permission name
	PermissionName string `json:"permissionName,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

	// team
	Team string `json:"team,omitempty"`

	// team avatar Url
	TeamAvatarURL string `json:"teamAvatarUrl,omitempty"`

	// team email
	TeamEmail string `json:"teamEmail,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// user avatar Url
	UserAvatarURL string `json:"userAvatarUrl,omitempty"`

	// user email
	UserEmail string `json:"userEmail,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`

	// user login
	UserLogin string `json:"userLogin,omitempty"`
}

DashboardACLInfoDTO dashboard ACL info DTO

swagger:model DashboardACLInfoDTO

func (*DashboardACLInfoDTO) ContextValidate ¶

func (m *DashboardACLInfoDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this dashboard ACL info DTO based on the context it is used

func (*DashboardACLInfoDTO) MarshalBinary ¶

func (m *DashboardACLInfoDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DashboardACLInfoDTO) UnmarshalBinary ¶

func (m *DashboardACLInfoDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DashboardACLInfoDTO) Validate ¶

func (m *DashboardACLInfoDTO) Validate(formats strfmt.Registry) error

Validate validates this dashboard ACL info DTO

type DashboardACLUpdateItem ¶

type DashboardACLUpdateItem struct {

	// permission
	Permission PermissionType `json:"permission,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

DashboardACLUpdateItem dashboard ACL update item

swagger:model DashboardACLUpdateItem

func (*DashboardACLUpdateItem) ContextValidate ¶

func (m *DashboardACLUpdateItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this dashboard ACL update item based on the context it is used

func (*DashboardACLUpdateItem) MarshalBinary ¶

func (m *DashboardACLUpdateItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DashboardACLUpdateItem) UnmarshalBinary ¶

func (m *DashboardACLUpdateItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DashboardACLUpdateItem) Validate ¶

func (m *DashboardACLUpdateItem) Validate(formats strfmt.Registry) error

Validate validates this dashboard ACL update item

type DashboardFullWithMeta ¶

type DashboardFullWithMeta struct {

	// dashboard
	Dashboard JSON `json:"dashboard,omitempty"`

	// meta
	Meta *DashboardMeta `json:"meta,omitempty"`
}

DashboardFullWithMeta dashboard full with meta

swagger:model DashboardFullWithMeta

func (*DashboardFullWithMeta) ContextValidate ¶

func (m *DashboardFullWithMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this dashboard full with meta based on the context it is used

func (*DashboardFullWithMeta) MarshalBinary ¶

func (m *DashboardFullWithMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DashboardFullWithMeta) UnmarshalBinary ¶

func (m *DashboardFullWithMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DashboardFullWithMeta) Validate ¶

func (m *DashboardFullWithMeta) Validate(formats strfmt.Registry) error

Validate validates this dashboard full with meta

type DashboardMeta ¶

type DashboardMeta struct {

	// annotations permissions
	AnnotationsPermissions *AnnotationPermission `json:"annotationsPermissions,omitempty"`

	// can admin
	CanAdmin bool `json:"canAdmin,omitempty"`

	// can delete
	CanDelete bool `json:"canDelete,omitempty"`

	// can edit
	CanEdit bool `json:"canEdit,omitempty"`

	// can save
	CanSave bool `json:"canSave,omitempty"`

	// can star
	CanStar bool `json:"canStar,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// created by
	CreatedBy string `json:"createdBy,omitempty"`

	// expires
	// Format: date-time
	Expires strfmt.DateTime `json:"expires,omitempty"`

	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// folder title
	FolderTitle string `json:"folderTitle,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// folder Url
	FolderURL string `json:"folderUrl,omitempty"`

	// has Acl
	HasACL bool `json:"hasAcl,omitempty"`

	// is folder
	IsFolder bool `json:"isFolder,omitempty"`

	// is snapshot
	IsSnapshot bool `json:"isSnapshot,omitempty"`

	// is starred
	IsStarred bool `json:"isStarred,omitempty"`

	// provisioned
	Provisioned bool `json:"provisioned,omitempty"`

	// provisioned external Id
	ProvisionedExternalID string `json:"provisionedExternalId,omitempty"`

	// public dashboard enabled
	PublicDashboardEnabled bool `json:"publicDashboardEnabled,omitempty"`

	// public dashboard Uid
	PublicDashboardUID string `json:"publicDashboardUid,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// updated by
	UpdatedBy string `json:"updatedBy,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

DashboardMeta dashboard meta

swagger:model DashboardMeta

func (*DashboardMeta) ContextValidate ¶

func (m *DashboardMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this dashboard meta based on the context it is used

func (*DashboardMeta) MarshalBinary ¶

func (m *DashboardMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DashboardMeta) UnmarshalBinary ¶

func (m *DashboardMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DashboardMeta) Validate ¶

func (m *DashboardMeta) Validate(formats strfmt.Registry) error

Validate validates this dashboard meta

type DashboardSnapshotDTO ¶

type DashboardSnapshotDTO struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// expires
	// Format: date-time
	Expires strfmt.DateTime `json:"expires,omitempty"`

	// external
	External bool `json:"external,omitempty"`

	// external Url
	ExternalURL string `json:"externalUrl,omitempty"`

	// key
	Key string `json:"key,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`
}

DashboardSnapshotDTO DashboardSnapshotDTO without dashboard map

swagger:model DashboardSnapshotDTO

func (*DashboardSnapshotDTO) ContextValidate ¶

func (m *DashboardSnapshotDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dashboard snapshot DTO based on context it is used

func (*DashboardSnapshotDTO) MarshalBinary ¶

func (m *DashboardSnapshotDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DashboardSnapshotDTO) UnmarshalBinary ¶

func (m *DashboardSnapshotDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DashboardSnapshotDTO) Validate ¶

func (m *DashboardSnapshotDTO) Validate(formats strfmt.Registry) error

Validate validates this dashboard snapshot DTO

type DashboardTagCloudItem ¶

type DashboardTagCloudItem struct {

	// count
	Count int64 `json:"count,omitempty"`

	// term
	Term string `json:"term,omitempty"`
}

DashboardTagCloudItem dashboard tag cloud item

swagger:model DashboardTagCloudItem

func (*DashboardTagCloudItem) ContextValidate ¶

func (m *DashboardTagCloudItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dashboard tag cloud item based on context it is used

func (*DashboardTagCloudItem) MarshalBinary ¶

func (m *DashboardTagCloudItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DashboardTagCloudItem) UnmarshalBinary ¶

func (m *DashboardTagCloudItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DashboardTagCloudItem) Validate ¶

func (m *DashboardTagCloudItem) Validate(formats strfmt.Registry) error

Validate validates this dashboard tag cloud item

type DashboardVersionMeta ¶

type DashboardVersionMeta struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// created by
	CreatedBy string `json:"createdBy,omitempty"`

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// data
	Data JSON `json:"data,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// parent version
	ParentVersion int64 `json:"parentVersion,omitempty"`

	// restored from
	RestoredFrom int64 `json:"restoredFrom,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

DashboardVersionMeta DashboardVersionMeta extends the DashboardVersionDTO with the names associated with the UserIds, overriding the field with the same name from the DashboardVersionDTO model.

swagger:model DashboardVersionMeta

func (*DashboardVersionMeta) ContextValidate ¶

func (m *DashboardVersionMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dashboard version meta based on context it is used

func (*DashboardVersionMeta) MarshalBinary ¶

func (m *DashboardVersionMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DashboardVersionMeta) UnmarshalBinary ¶

func (m *DashboardVersionMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DashboardVersionMeta) Validate ¶

func (m *DashboardVersionMeta) Validate(formats strfmt.Registry) error

Validate validates this dashboard version meta

type DataLink struct {

	// internal
	Internal *InternalDataLink `json:"internal,omitempty"`

	// target blank
	TargetBlank bool `json:"targetBlank,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

DataLink DataLink define what

swagger:model DataLink

func (*DataLink) ContextValidate ¶

func (m *DataLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this data link based on the context it is used

func (*DataLink) MarshalBinary ¶

func (m *DataLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataLink) UnmarshalBinary ¶

func (m *DataLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataLink) Validate ¶

func (m *DataLink) Validate(formats strfmt.Registry) error

Validate validates this data link

type DataResponse ¶

type DataResponse struct {

	// Error is a property to be set if the corresponding DataQuery has an error.
	Error string `json:"Error,omitempty"`

	// error source
	ErrorSource ErrorSource `json:"ErrorSource,omitempty"`

	// frames
	Frames Frames `json:"Frames,omitempty"`

	// status
	Status Status `json:"Status,omitempty"`
}

DataResponse DataResponse contains the results from a DataQuery.

A map of RefIDs (unique query identifiers) to this type makes up the Responses property of a QueryDataResponse. The Error property is used to allow for partial success responses from the containing QueryDataResponse.

swagger:model DataResponse

func (*DataResponse) ContextValidate ¶

func (m *DataResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this data response based on the context it is used

func (*DataResponse) MarshalBinary ¶

func (m *DataResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataResponse) UnmarshalBinary ¶

func (m *DataResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataResponse) Validate ¶

func (m *DataResponse) Validate(formats strfmt.Registry) error

Validate validates this data response

type DataSource ¶

type DataSource struct {

	// access
	Access DsAccess `json:"access,omitempty"`

	// access control
	AccessControl Metadata `json:"accessControl,omitempty"`

	// basic auth
	BasicAuth bool `json:"basicAuth,omitempty"`

	// basic auth user
	BasicAuthUser string `json:"basicAuthUser,omitempty"`

	// database
	Database string `json:"database,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is default
	IsDefault bool `json:"isDefault,omitempty"`

	// json data
	JSONData JSON `json:"jsonData,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// read only
	ReadOnly bool `json:"readOnly,omitempty"`

	// secure Json fields
	SecureJSONFields map[string]bool `json:"secureJsonFields,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// type logo Url
	TypeLogoURL string `json:"typeLogoUrl,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// user
	User string `json:"user,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`

	// with credentials
	WithCredentials bool `json:"withCredentials,omitempty"`
}

DataSource data source

swagger:model DataSource

func (*DataSource) ContextValidate ¶

func (m *DataSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this data source based on the context it is used

func (*DataSource) MarshalBinary ¶

func (m *DataSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataSource) UnmarshalBinary ¶

func (m *DataSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataSource) Validate ¶

func (m *DataSource) Validate(formats strfmt.Registry) error

Validate validates this data source

type DataSourceList ¶

type DataSourceList []*DataSourceListItemDTO

DataSourceList data source list

swagger:model DataSourceList

func (DataSourceList) ContextValidate ¶

func (m DataSourceList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this data source list based on the context it is used

func (DataSourceList) Validate ¶

func (m DataSourceList) Validate(formats strfmt.Registry) error

Validate validates this data source list

type DataSourceListItemDTO ¶

type DataSourceListItemDTO struct {

	// access
	Access DsAccess `json:"access,omitempty"`

	// basic auth
	BasicAuth bool `json:"basicAuth,omitempty"`

	// database
	Database string `json:"database,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is default
	IsDefault bool `json:"isDefault,omitempty"`

	// json data
	JSONData JSON `json:"jsonData,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// read only
	ReadOnly bool `json:"readOnly,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// type logo Url
	TypeLogoURL string `json:"typeLogoUrl,omitempty"`

	// type name
	TypeName string `json:"typeName,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// user
	User string `json:"user,omitempty"`
}

DataSourceListItemDTO data source list item DTO

swagger:model DataSourceListItemDTO

func (*DataSourceListItemDTO) ContextValidate ¶

func (m *DataSourceListItemDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this data source list item DTO based on the context it is used

func (*DataSourceListItemDTO) MarshalBinary ¶

func (m *DataSourceListItemDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataSourceListItemDTO) UnmarshalBinary ¶

func (m *DataSourceListItemDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataSourceListItemDTO) Validate ¶

func (m *DataSourceListItemDTO) Validate(formats strfmt.Registry) error

Validate validates this data source list item DTO

type DataSourceRef ¶

type DataSourceRef struct {

	// The plugin type-id
	Type string `json:"type,omitempty"`

	// Specific datasource instance
	UID string `json:"uid,omitempty"`
}

DataSourceRef Ref to a DataSource instance

swagger:model DataSourceRef

func (*DataSourceRef) ContextValidate ¶

func (m *DataSourceRef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this data source ref based on context it is used

func (*DataSourceRef) MarshalBinary ¶

func (m *DataSourceRef) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataSourceRef) UnmarshalBinary ¶

func (m *DataSourceRef) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataSourceRef) Validate ¶

func (m *DataSourceRef) Validate(formats strfmt.Registry) error

Validate validates this data source ref

type DataTopic ¶

type DataTopic string

DataTopic DataTopic is used to identify which topic the frame should be assigned to.

nolint:revive

swagger:model DataTopic

func (DataTopic) ContextValidate ¶

func (m DataTopic) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this data topic based on context it is used

func (DataTopic) Validate ¶

func (m DataTopic) Validate(formats strfmt.Registry) error

Validate validates this data topic

type DeleteCorrelationResponseBody ¶

type DeleteCorrelationResponseBody struct {

	// message
	// Example: Correlation deleted
	Message string `json:"message,omitempty"`
}

DeleteCorrelationResponseBody delete correlation response body

swagger:model DeleteCorrelationResponseBody

func (*DeleteCorrelationResponseBody) ContextValidate ¶

func (m *DeleteCorrelationResponseBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete correlation response body based on context it is used

func (*DeleteCorrelationResponseBody) MarshalBinary ¶

func (m *DeleteCorrelationResponseBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteCorrelationResponseBody) UnmarshalBinary ¶

func (m *DeleteCorrelationResponseBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteCorrelationResponseBody) Validate ¶

func (m *DeleteCorrelationResponseBody) Validate(formats strfmt.Registry) error

Validate validates this delete correlation response body

type DeleteDashboardByUIDOKBody ¶

type DeleteDashboardByUIDOKBody struct {

	// ID Identifier of the deleted dashboard.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the deleted dashboard.
	// Example: Dashboard My Dashboard deleted
	// Required: true
	Message *string `json:"message"`

	// Title Title of the deleted dashboard.
	// Example: My Dashboard
	// Required: true
	Title *string `json:"title"`
}

DeleteDashboardByUIDOKBody delete dashboard by Uid Ok body

swagger:model deleteDashboardByUidOkBody

func (*DeleteDashboardByUIDOKBody) ContextValidate ¶

func (m *DeleteDashboardByUIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete dashboard by Uid Ok body based on context it is used

func (*DeleteDashboardByUIDOKBody) MarshalBinary ¶

func (m *DeleteDashboardByUIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteDashboardByUIDOKBody) UnmarshalBinary ¶

func (m *DeleteDashboardByUIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteDashboardByUIDOKBody) Validate ¶

func (m *DeleteDashboardByUIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete dashboard by Uid Ok body

type DeleteDataSourceByNameOKBody ¶

type DeleteDataSourceByNameOKBody struct {

	// ID Identifier of the deleted data source.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the deleted dashboard.
	// Example: Dashboard My Dashboard deleted
	// Required: true
	Message *string `json:"message"`
}

DeleteDataSourceByNameOKBody delete data source by name Ok body

swagger:model deleteDataSourceByNameOkBody

func (*DeleteDataSourceByNameOKBody) ContextValidate ¶

func (m *DeleteDataSourceByNameOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete data source by name Ok body based on context it is used

func (*DeleteDataSourceByNameOKBody) MarshalBinary ¶

func (m *DeleteDataSourceByNameOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteDataSourceByNameOKBody) UnmarshalBinary ¶

func (m *DeleteDataSourceByNameOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteDataSourceByNameOKBody) Validate ¶

func (m *DeleteDataSourceByNameOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete data source by name Ok body

type DeleteFolderOKBody ¶

type DeleteFolderOKBody struct {

	// ID Identifier of the deleted folder.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the deleted folder.
	// Example: Folder My Folder deleted
	// Required: true
	Message *string `json:"message"`

	// Title of the deleted folder.
	// Example: My Folder
	// Required: true
	Title *string `json:"title"`
}

DeleteFolderOKBody delete folder Ok body

swagger:model deleteFolderOkBody

func (*DeleteFolderOKBody) ContextValidate ¶

func (m *DeleteFolderOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete folder Ok body based on context it is used

func (*DeleteFolderOKBody) MarshalBinary ¶

func (m *DeleteFolderOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteFolderOKBody) UnmarshalBinary ¶

func (m *DeleteFolderOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteFolderOKBody) Validate ¶

func (m *DeleteFolderOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete folder Ok body

type DeleteTokenCommand ¶

type DeleteTokenCommand struct {

	// instance
	Instance string `json:"instance,omitempty"`
}

DeleteTokenCommand delete token command

swagger:model DeleteTokenCommand

func (*DeleteTokenCommand) ContextValidate ¶

func (m *DeleteTokenCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete token command based on context it is used

func (*DeleteTokenCommand) MarshalBinary ¶

func (m *DeleteTokenCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteTokenCommand) UnmarshalBinary ¶

func (m *DeleteTokenCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteTokenCommand) Validate ¶

func (m *DeleteTokenCommand) Validate(formats strfmt.Registry) error

Validate validates this delete token command

type DescendantCounts ¶

type DescendantCounts map[string]int64

DescendantCounts descendant counts

swagger:model DescendantCounts

func (DescendantCounts) ContextValidate ¶

func (m DescendantCounts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this descendant counts based on context it is used

func (DescendantCounts) Validate ¶

func (m DescendantCounts) Validate(formats strfmt.Registry) error

Validate validates this descendant counts

type Description ¶

type Description struct {

	// assignments
	Assignments *Assignments `json:"assignments,omitempty"`

	// permissions
	Permissions []string `json:"permissions"`
}

Description description

swagger:model Description

func (*Description) ContextValidate ¶

func (m *Description) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this description based on the context it is used

func (*Description) MarshalBinary ¶

func (m *Description) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Description) UnmarshalBinary ¶

func (m *Description) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Description) Validate ¶

func (m *Description) Validate(formats strfmt.Registry) error

Validate validates this description

type DeviceDTO ¶

type DeviceDTO struct {

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// client Ip
	ClientIP string `json:"clientIp,omitempty"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// device Id
	DeviceID string `json:"deviceId,omitempty"`

	// last seen at
	LastSeenAt string `json:"lastSeenAt,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`

	// user agent
	UserAgent string `json:"userAgent,omitempty"`
}

DeviceDTO device DTO

swagger:model deviceDTO

func (*DeviceDTO) ContextValidate ¶

func (m *DeviceDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this device DTO based on context it is used

func (*DeviceDTO) MarshalBinary ¶

func (m *DeviceDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceDTO) UnmarshalBinary ¶

func (m *DeviceDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceDTO) Validate ¶

func (m *DeviceDTO) Validate(formats strfmt.Registry) error

Validate validates this device DTO

type DeviceSearchHitDTO ¶

type DeviceSearchHitDTO struct {

	// client Ip
	ClientIP string `json:"clientIp,omitempty"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// device Id
	DeviceID string `json:"deviceId,omitempty"`

	// last seen at
	// Format: date-time
	LastSeenAt strfmt.DateTime `json:"lastSeenAt,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`

	// user agent
	UserAgent string `json:"userAgent,omitempty"`
}

DeviceSearchHitDTO device search hit DTO

swagger:model DeviceSearchHitDTO

func (*DeviceSearchHitDTO) ContextValidate ¶

func (m *DeviceSearchHitDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this device search hit DTO based on context it is used

func (*DeviceSearchHitDTO) MarshalBinary ¶

func (m *DeviceSearchHitDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceSearchHitDTO) UnmarshalBinary ¶

func (m *DeviceSearchHitDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceSearchHitDTO) Validate ¶

func (m *DeviceSearchHitDTO) Validate(formats strfmt.Registry) error

Validate validates this device search hit DTO

type DiscordConfig ¶

type DiscordConfig struct {

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// webhook url
	WebhookURL *SecretURL `json:"webhook_url,omitempty"`

	// webhook url file
	WebhookURLFile string `json:"webhook_url_file,omitempty"`
}

DiscordConfig DiscordConfig configures notifications via Discord.

swagger:model DiscordConfig

func (*DiscordConfig) ContextValidate ¶

func (m *DiscordConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this discord config based on the context it is used

func (*DiscordConfig) MarshalBinary ¶

func (m *DiscordConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscordConfig) UnmarshalBinary ¶

func (m *DiscordConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscordConfig) Validate ¶

func (m *DiscordConfig) Validate(formats strfmt.Registry) error

Validate validates this discord config

type DsAccess ¶

type DsAccess string

DsAccess ds access

swagger:model DsAccess

func (DsAccess) ContextValidate ¶

func (m DsAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ds access based on context it is used

func (DsAccess) Validate ¶

func (m DsAccess) Validate(formats strfmt.Registry) error

Validate validates this ds access

type Duration ¶

type Duration int64

Duration A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.

swagger:model Duration

func (Duration) ContextValidate ¶

func (m Duration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this duration based on context it is used

func (Duration) Validate ¶

func (m Duration) Validate(formats strfmt.Registry) error

Validate validates this duration

type EmailConfig ¶

type EmailConfig struct {

	// auth identity
	AuthIdentity string `json:"auth_identity,omitempty"`

	// auth password
	AuthPassword Secret `json:"auth_password,omitempty"`

	// auth password file
	AuthPasswordFile string `json:"auth_password_file,omitempty"`

	// auth secret
	AuthSecret Secret `json:"auth_secret,omitempty"`

	// auth username
	AuthUsername string `json:"auth_username,omitempty"`

	// from
	From string `json:"from,omitempty"`

	// headers
	Headers map[string]string `json:"headers,omitempty"`

	// hello
	Hello string `json:"hello,omitempty"`

	// html
	HTML string `json:"html,omitempty"`

	// require tls
	RequireTLS bool `json:"require_tls,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// smarthost
	Smarthost *HostPort `json:"smarthost,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// tls config
	TLSConfig *TLSConfig `json:"tls_config,omitempty"`

	// Email address to notify.
	To string `json:"to,omitempty"`
}

EmailConfig EmailConfig configures notifications via mail.

swagger:model EmailConfig

func (*EmailConfig) ContextValidate ¶

func (m *EmailConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this email config based on the context it is used

func (*EmailConfig) MarshalBinary ¶

func (m *EmailConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EmailConfig) UnmarshalBinary ¶

func (m *EmailConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EmailConfig) Validate ¶

func (m *EmailConfig) Validate(formats strfmt.Registry) error

Validate validates this email config

type EmailDTO ¶

type EmailDTO struct {

	// recipient
	Recipient string `json:"recipient,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

EmailDTO email DTO

swagger:model EmailDTO

func (*EmailDTO) ContextValidate ¶

func (m *EmailDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this email DTO based on context it is used

func (*EmailDTO) MarshalBinary ¶

func (m *EmailDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EmailDTO) UnmarshalBinary ¶

func (m *EmailDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EmailDTO) Validate ¶

func (m *EmailDTO) Validate(formats strfmt.Registry) error

Validate validates this email DTO

type EmbeddedContactPoint ¶

type EmbeddedContactPoint struct {

	// disable resolve message
	// Example: false
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// Name is used as grouping key in the UI. Contact points with the
	// same name will be grouped in the UI.
	// Example: webhook_1
	Name string `json:"name,omitempty"`

	// provenance
	// Read Only: true
	Provenance string `json:"provenance,omitempty"`

	// settings
	// Required: true
	Settings JSON `json:"settings"`

	// type
	// Example: webhook
	// Required: true
	// Enum: [alertmanager  dingding  discord  email  googlechat  kafka  line  opsgenie  pagerduty  pushover  sensugo  slack  teams  telegram  threema  victorops  webhook  wecom]
	Type *string `json:"type"`

	// UID is the unique identifier of the contact point. The UID can be
	// set by the user.
	// Example: my_external_reference
	// Max Length: 40
	// Min Length: 1
	// Pattern: ^[a-zA-Z0-9\-\_]+$
	UID string `json:"uid,omitempty"`
}

EmbeddedContactPoint EmbeddedContactPoint is the contact point type that is used by grafanas embedded alertmanager implementation.

swagger:model EmbeddedContactPoint

func (*EmbeddedContactPoint) ContextValidate ¶

func (m *EmbeddedContactPoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this embedded contact point based on the context it is used

func (*EmbeddedContactPoint) MarshalBinary ¶

func (m *EmbeddedContactPoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EmbeddedContactPoint) UnmarshalBinary ¶

func (m *EmbeddedContactPoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EmbeddedContactPoint) Validate ¶

func (m *EmbeddedContactPoint) Validate(formats strfmt.Registry) error

Validate validates this embedded contact point

type EnumFieldConfig ¶

type EnumFieldConfig struct {

	// Color is the color value for a given index (empty is undefined)
	Color []string `json:"color"`

	// Description of the enum state
	Description []string `json:"description"`

	// Icon supports setting an icon for a given index value
	Icon []string `json:"icon"`

	// Value is the string display value for a given index
	Text []string `json:"text"`
}

EnumFieldConfig Enum field config Vector values are used as lookup keys into the enum fields

swagger:model EnumFieldConfig

func (*EnumFieldConfig) ContextValidate ¶

func (m *EnumFieldConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this enum field config based on context it is used

func (*EnumFieldConfig) MarshalBinary ¶

func (m *EnumFieldConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EnumFieldConfig) UnmarshalBinary ¶

func (m *EnumFieldConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EnumFieldConfig) Validate ¶

func (m *EnumFieldConfig) Validate(formats strfmt.Registry) error

Validate validates this enum field config

type ErrorResponseBody ¶

type ErrorResponseBody struct {

	// Error An optional detailed description of the actual error. Only included if running in developer mode.
	Error string `json:"error,omitempty"`

	// a human readable version of the error
	// Required: true
	Message *string `json:"message"`

	// Status An optional status to denote the cause of the error.
	//
	// For example, a 412 Precondition Failed error may include additional information of why that error happened.
	Status string `json:"status,omitempty"`
}

ErrorResponseBody error response body

swagger:model ErrorResponseBody

func (*ErrorResponseBody) ContextValidate ¶

func (m *ErrorResponseBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error response body based on context it is used

func (*ErrorResponseBody) MarshalBinary ¶

func (m *ErrorResponseBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponseBody) UnmarshalBinary ¶

func (m *ErrorResponseBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponseBody) Validate ¶

func (m *ErrorResponseBody) Validate(formats strfmt.Registry) error

Validate validates this error response body

type ErrorSource ¶

type ErrorSource string

ErrorSource ErrorSource type defines the source of the error

swagger:model ErrorSource

func (ErrorSource) ContextValidate ¶

func (m ErrorSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error source based on context it is used

func (ErrorSource) Validate ¶

func (m ErrorSource) Validate(formats strfmt.Registry) error

Validate validates this error source

type ErrorType ¶

type ErrorType string

ErrorType ErrorType models the different API error types.

swagger:model ErrorType

func (ErrorType) ContextValidate ¶

func (m ErrorType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error type based on context it is used

func (ErrorType) Validate ¶

func (m ErrorType) Validate(formats strfmt.Registry) error

Validate validates this error type

type EvalAlertConditionCommand ¶

type EvalAlertConditionCommand struct {

	// condition
	Condition string `json:"condition,omitempty"`

	// data
	Data []*AlertQuery `json:"data"`

	// now
	// Format: date-time
	Now strfmt.DateTime `json:"now,omitempty"`
}

EvalAlertConditionCommand EvalAlertConditionCommand is the command for evaluating a condition

swagger:model EvalAlertConditionCommand

func (*EvalAlertConditionCommand) ContextValidate ¶

func (m *EvalAlertConditionCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this eval alert condition command based on the context it is used

func (*EvalAlertConditionCommand) MarshalBinary ¶

func (m *EvalAlertConditionCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EvalAlertConditionCommand) UnmarshalBinary ¶

func (m *EvalAlertConditionCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EvalAlertConditionCommand) Validate ¶

func (m *EvalAlertConditionCommand) Validate(formats strfmt.Registry) error

Validate validates this eval alert condition command

type ExplorePanelsState ¶

type ExplorePanelsState interface{}

ExplorePanelsState This is an object constructed with the keys as the values of the enum VisType and the value being a bag of properties

swagger:model ExplorePanelsState

type ExtKeyUsage ¶

type ExtKeyUsage int64

ExtKeyUsage ExtKeyUsage represents an extended set of actions that are valid for a given key.

Each of the ExtKeyUsage* constants define a unique action.

swagger:model ExtKeyUsage

func (ExtKeyUsage) ContextValidate ¶

func (m ExtKeyUsage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ext key usage based on context it is used

func (ExtKeyUsage) Validate ¶

func (m ExtKeyUsage) Validate(formats strfmt.Registry) error

Validate validates this ext key usage

type Extension ¶

type Extension struct {

	// critical
	Critical bool `json:"Critical,omitempty"`

	// Id
	ID ObjectIdentifier `json:"Id,omitempty"`

	// value
	Value []uint8 `json:"Value"`
}

Extension Extension represents the ASN.1 structure of the same name. See RFC 5280, section 4.2.

swagger:model Extension

func (*Extension) ContextValidate ¶

func (m *Extension) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this extension based on the context it is used

func (*Extension) MarshalBinary ¶

func (m *Extension) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Extension) UnmarshalBinary ¶

func (m *Extension) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Extension) Validate ¶

func (m *Extension) Validate(formats strfmt.Registry) error

Validate validates this extension

type FailedUser ¶

type FailedUser struct {

	// error
	Error string `json:"Error,omitempty"`

	// login
	Login string `json:"Login,omitempty"`
}

FailedUser FailedUser holds the information of an user that failed

swagger:model FailedUser

func (*FailedUser) ContextValidate ¶

func (m *FailedUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this failed user based on context it is used

func (*FailedUser) MarshalBinary ¶

func (m *FailedUser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FailedUser) UnmarshalBinary ¶

func (m *FailedUser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FailedUser) Validate ¶

func (m *FailedUser) Validate(formats strfmt.Registry) error

Validate validates this failed user

type Field ¶

type Field struct {

	// config
	Config *FieldConfig `json:"config,omitempty"`

	// labels
	Labels FrameLabels `json:"labels,omitempty"`

	// Name is default identifier of the field. The name does not have to be unique, but the combination
	// of name and Labels should be unique for proper behavior in all situations.
	Name string `json:"name,omitempty"`
}

Field Field represents a typed column of data within a Frame.

A Field is essentially a slice of various types with extra properties and methods. See NewField() for supported types.

The slice data in the Field is a not exported, so methods on the Field are used to to manipulate its data.

swagger:model Field

func (*Field) ContextValidate ¶

func (m *Field) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this field based on the context it is used

func (*Field) MarshalBinary ¶

func (m *Field) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Field) UnmarshalBinary ¶

func (m *Field) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Field) Validate ¶

func (m *Field) Validate(formats strfmt.Registry) error

Validate validates this field

type FieldConfig ¶

type FieldConfig struct {

	// Map values to a display color
	// NOTE: this interface is under development in the frontend... so simple map for now
	Color interface{} `json:"color,omitempty"`

	// Panel Specific Values
	Custom interface{} `json:"custom,omitempty"`

	// decimals
	Decimals uint16 `json:"decimals,omitempty"`

	// Description is human readable field metadata
	Description string `json:"description,omitempty"`

	// DisplayName overrides Grafana default naming, should not be used from a data source
	DisplayName string `json:"displayName,omitempty"`

	// DisplayNameFromDS overrides Grafana default naming strategy.
	DisplayNameFromDS string `json:"displayNameFromDS,omitempty"`

	// Filterable indicates if the Field's data can be filtered by additional calls.
	Filterable bool `json:"filterable,omitempty"`

	// Interval indicates the expected regular step between values in the series.
	// When an interval exists, consumers can identify "missing" values when the expected value is not present.
	// The grafana timeseries visualization will render disconnected values when missing values are found it the time field.
	// The interval uses the same units as the values.  For time.Time, this is defined in milliseconds.
	Interval float64 `json:"interval,omitempty"`

	// The behavior when clicking on a result
	Links []*DataLink `json:"links"`

	// mappings
	Mappings ValueMappings `json:"mappings,omitempty"`

	// max
	Max ConfFloat64 `json:"max,omitempty"`

	// min
	Min ConfFloat64 `json:"min,omitempty"`

	// Alternative to empty string
	NoValue string `json:"noValue,omitempty"`

	// Path is an explicit path to the field in the datasource. When the frame meta includes a path,
	// this will default to `${frame.meta.path}/${field.name}
	//
	// When defined, this value can be used as an identifier within the datasource scope, and
	// may be used as an identifier to update values in a subsequent request
	Path string `json:"path,omitempty"`

	// thresholds
	Thresholds *ThresholdsConfig `json:"thresholds,omitempty"`

	// type
	Type *FieldTypeConfig `json:"type,omitempty"`

	// Numeric Options
	Unit string `json:"unit,omitempty"`

	// Writeable indicates that the datasource knows how to update this value
	Writeable bool `json:"writeable,omitempty"`
}

FieldConfig FieldConfig represents the display properties for a Field.

swagger:model FieldConfig

func (*FieldConfig) ContextValidate ¶

func (m *FieldConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this field config based on the context it is used

func (*FieldConfig) MarshalBinary ¶

func (m *FieldConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FieldConfig) UnmarshalBinary ¶

func (m *FieldConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FieldConfig) Validate ¶

func (m *FieldConfig) Validate(formats strfmt.Registry) error

Validate validates this field config

type FieldTypeConfig ¶

type FieldTypeConfig struct {

	// enum
	Enum *EnumFieldConfig `json:"enum,omitempty"`
}

FieldTypeConfig FieldTypeConfig has type specific configs, only one should be active at a time

swagger:model FieldTypeConfig

func (*FieldTypeConfig) ContextValidate ¶

func (m *FieldTypeConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this field type config based on the context it is used

func (*FieldTypeConfig) MarshalBinary ¶

func (m *FieldTypeConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FieldTypeConfig) UnmarshalBinary ¶

func (m *FieldTypeConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FieldTypeConfig) Validate ¶

func (m *FieldTypeConfig) Validate(formats strfmt.Registry) error

Validate validates this field type config

type FindTagsResult ¶

type FindTagsResult struct {

	// tags
	Tags []*TagsDTO `json:"tags"`
}

FindTagsResult FindTagsResult is the result of a tags search.

swagger:model FindTagsResult

func (*FindTagsResult) ContextValidate ¶

func (m *FindTagsResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this find tags result based on the context it is used

func (*FindTagsResult) MarshalBinary ¶

func (m *FindTagsResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FindTagsResult) UnmarshalBinary ¶

func (m *FindTagsResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FindTagsResult) Validate ¶

func (m *FindTagsResult) Validate(formats strfmt.Registry) error

Validate validates this find tags result

type FloatHistogram ¶

type FloatHistogram struct {

	// Total number of observations. Must be zero or positive.
	Count float64 `json:"Count,omitempty"`

	// counter reset hint
	CounterResetHint CounterResetHint `json:"CounterResetHint,omitempty"`

	// Observation counts in buckets. Each represents an absolute count and
	// must be zero or positive.
	PositiveBuckets []float64 `json:"PositiveBuckets"`

	// Spans for positive and negative buckets (see Span below).
	PositiveSpans []*Span `json:"PositiveSpans"`

	// Currently valid schema numbers are -4 <= n <= 8.  They are all for
	// base-2 bucket schemas, where 1 is a bucket boundary in each case, and
	// then each power of two is divided into 2^n logarithmic buckets.  Or
	// in other words, each bucket boundary is the previous boundary times
	// 2^(2^-n).
	Schema int32 `json:"Schema,omitempty"`

	// Sum of observations. This is also used as the stale marker.
	Sum float64 `json:"Sum,omitempty"`

	// Observations falling into the zero bucket. Must be zero or positive.
	ZeroCount float64 `json:"ZeroCount,omitempty"`

	// Width of the zero bucket.
	ZeroThreshold float64 `json:"ZeroThreshold,omitempty"`
}

FloatHistogram FloatHistogram is similar to Histogram but uses float64 for all counts. Additionally, bucket counts are absolute and not deltas.

A FloatHistogram is needed by PromQL to handle operations that might result in fractional counts. Since the counts in a histogram are unlikely to be too large to be represented precisely by a float64, a FloatHistogram can also be used to represent a histogram with integer counts and thus serves as a more generalized representation.

swagger:model FloatHistogram

func (*FloatHistogram) ContextValidate ¶

func (m *FloatHistogram) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this float histogram based on the context it is used

func (*FloatHistogram) MarshalBinary ¶

func (m *FloatHistogram) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FloatHistogram) UnmarshalBinary ¶

func (m *FloatHistogram) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FloatHistogram) Validate ¶

func (m *FloatHistogram) Validate(formats strfmt.Registry) error

Validate validates this float histogram

type Folder ¶

type Folder struct {

	// access control
	AccessControl Metadata `json:"accessControl,omitempty"`

	// can admin
	CanAdmin bool `json:"canAdmin,omitempty"`

	// can delete
	CanDelete bool `json:"canDelete,omitempty"`

	// can edit
	CanEdit bool `json:"canEdit,omitempty"`

	// can save
	CanSave bool `json:"canSave,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// created by
	CreatedBy string `json:"createdBy,omitempty"`

	// has Acl
	HasACL bool `json:"hasAcl,omitempty"`

	// Deprecated: use UID instead
	ID int64 `json:"id,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// only used if nested folders are enabled
	ParentUID string `json:"parentUid,omitempty"`

	// the parent folders starting from the root going down
	Parents []*Folder `json:"parents"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// updated by
	UpdatedBy string `json:"updatedBy,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

Folder folder

swagger:model Folder

func (*Folder) ContextValidate ¶

func (m *Folder) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this folder based on the context it is used

func (*Folder) MarshalBinary ¶

func (m *Folder) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Folder) UnmarshalBinary ¶

func (m *Folder) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Folder) Validate ¶

func (m *Folder) Validate(formats strfmt.Registry) error

Validate validates this folder

type FolderSearchHit ¶

type FolderSearchHit struct {

	// id
	ID int64 `json:"id,omitempty"`

	// parent Uid
	ParentUID string `json:"parentUid,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

FolderSearchHit folder search hit

swagger:model FolderSearchHit

func (*FolderSearchHit) ContextValidate ¶

func (m *FolderSearchHit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this folder search hit based on context it is used

func (*FolderSearchHit) MarshalBinary ¶

func (m *FolderSearchHit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FolderSearchHit) UnmarshalBinary ¶

func (m *FolderSearchHit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FolderSearchHit) Validate ¶

func (m *FolderSearchHit) Validate(formats strfmt.Registry) error

Validate validates this folder search hit

type ForbiddenError ¶

type ForbiddenError struct {

	// body
	Body *PublicError `json:"body,omitempty"`
}

ForbiddenError forbidden error

swagger:model ForbiddenError

func (*ForbiddenError) ContextValidate ¶

func (m *ForbiddenError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this forbidden error based on the context it is used

func (*ForbiddenError) MarshalBinary ¶

func (m *ForbiddenError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ForbiddenError) UnmarshalBinary ¶

func (m *ForbiddenError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ForbiddenError) Validate ¶

func (m *ForbiddenError) Validate(formats strfmt.Registry) error

Validate validates this forbidden error

type Frame ¶

type Frame struct {

	// Fields are the columns of a frame.
	// All Fields must be of the same the length when marshalling the Frame for transmission.
	// There should be no `nil` entries in the Fields slice (making them pointers was a mistake).
	Fields []*Field `json:"Fields"`

	// meta
	Meta *FrameMeta `json:"Meta,omitempty"`

	// Name is used in some Grafana visualizations.
	Name string `json:"Name,omitempty"`

	// RefID is a property that can be set to match a Frame to its originating query.
	RefID string `json:"RefID,omitempty"`
}

Frame Frame is a columnar data structure where each column is a Field.

Each Field is well typed by its FieldType and supports optional Labels.

A Frame is a general data container for Grafana. A Frame can be table data or time series data depending on its content and field types.

swagger:model Frame

func (*Frame) ContextValidate ¶

func (m *Frame) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this frame based on the context it is used

func (*Frame) MarshalBinary ¶

func (m *Frame) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Frame) UnmarshalBinary ¶

func (m *Frame) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Frame) Validate ¶

func (m *Frame) Validate(formats strfmt.Registry) error

Validate validates this frame

type FrameLabels ¶

type FrameLabels map[string]string

FrameLabels Labels are used to add metadata to an object. The JSON will always be sorted keys

swagger:model FrameLabels

func (FrameLabels) ContextValidate ¶

func (m FrameLabels) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this frame labels based on context it is used

func (FrameLabels) Validate ¶

func (m FrameLabels) Validate(formats strfmt.Registry) error

Validate validates this frame labels

type FrameMeta ¶

type FrameMeta struct {

	// Channel is the path to a stream in grafana live that has real-time updates for this data.
	Channel string `json:"channel,omitempty"`

	// Custom datasource specific values.
	Custom interface{} `json:"custom,omitempty"`

	// data topic
	DataTopic DataTopic `json:"dataTopic,omitempty"`

	// ExecutedQueryString is the raw query sent to the underlying system. All macros and templating
	// have been applied.  When metadata contains this value, it will be shown in the query inspector.
	ExecutedQueryString string `json:"executedQueryString,omitempty"`

	// Notices provide additional information about the data in the Frame that
	// Grafana can display to the user in the user interface.
	Notices []*Notice `json:"notices"`

	// Path is a browsable path on the datasource.
	Path string `json:"path,omitempty"`

	// PathSeparator defines the separator pattern to decode a hierarchy. The default separator is '/'.
	PathSeparator string `json:"pathSeparator,omitempty"`

	// PreferredVisualizationPluginId sets the panel plugin id to use to render the data when using Explore. If
	// the plugin cannot be found will fall back to PreferredVisualization.
	PreferredVisualisationPluginID string `json:"preferredVisualisationPluginId,omitempty"`

	// preferred visualisation type
	PreferredVisualisationType VisType `json:"preferredVisualisationType,omitempty"`

	// Stats is an array of query result statistics.
	Stats []*QueryStat `json:"stats"`

	// type
	Type FrameType `json:"type,omitempty"`

	// type version
	TypeVersion FrameTypeVersion `json:"typeVersion,omitempty"`

	// Array of field indices which values create a unique id for each row. Ideally this should be globally unique ID
	// but that isn't guarantied. Should help with keeping track and deduplicating rows in visualizations, especially
	// with streaming data with frequent updates.
	// Example: TraceID in Tempo, table name + primary key in SQL
	UniqueRowIDFields []int64 `json:"uniqueRowIdFields"`
}

FrameMeta FrameMeta matches:

https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L11 NOTE -- in javascript this can accept any `[key: string]: any;` however this interface only exposes the values we want to be exposed

swagger:model FrameMeta

func (*FrameMeta) ContextValidate ¶

func (m *FrameMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this frame meta based on the context it is used

func (*FrameMeta) MarshalBinary ¶

func (m *FrameMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FrameMeta) UnmarshalBinary ¶

func (m *FrameMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FrameMeta) Validate ¶

func (m *FrameMeta) Validate(formats strfmt.Registry) error

Validate validates this frame meta

type FrameType ¶

type FrameType string

FrameType A FrameType string, when present in a frame's metadata, asserts that the frame's structure conforms to the FrameType's specification. This property is currently optional, so FrameType may be FrameTypeUnknown even if the properties of the Frame correspond to a defined FrameType. +enum

swagger:model FrameType

func (FrameType) ContextValidate ¶

func (m FrameType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this frame type based on context it is used

func (FrameType) Validate ¶

func (m FrameType) Validate(formats strfmt.Registry) error

Validate validates this frame type

type FrameTypeVersion ¶

type FrameTypeVersion []uint64

FrameTypeVersion FrameType is a 2 number version (Major / Minor).

swagger:model FrameTypeVersion

func (FrameTypeVersion) ContextValidate ¶

func (m FrameTypeVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this frame type version based on context it is used

func (FrameTypeVersion) Validate ¶

func (m FrameTypeVersion) Validate(formats strfmt.Registry) error

Validate validates this frame type version

type Frames ¶

type Frames []*Frame

Frames Frames is a slice of Frame pointers.

It is the main data container within a backend.DataResponse. There should be no `nil` entries in the Frames slice (making them pointers was a mistake).

swagger:model Frames

func (Frames) ContextValidate ¶

func (m Frames) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this frames based on the context it is used

func (Frames) Validate ¶

func (m Frames) Validate(formats strfmt.Registry) error

Validate validates this frames

type GenericPublicError ¶

type GenericPublicError struct {

	// body
	Body *PublicError `json:"body,omitempty"`
}

GenericPublicError generic public error

swagger:model GenericPublicError

func (*GenericPublicError) ContextValidate ¶

func (m *GenericPublicError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this generic public error based on the context it is used

func (*GenericPublicError) MarshalBinary ¶

func (m *GenericPublicError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericPublicError) UnmarshalBinary ¶

func (m *GenericPublicError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericPublicError) Validate ¶

func (m *GenericPublicError) Validate(formats strfmt.Registry) error

Validate validates this generic public error

type GetAnnotationTagsResponse ¶

type GetAnnotationTagsResponse struct {

	// result
	Result *FindTagsResult `json:"result,omitempty"`
}

GetAnnotationTagsResponse GetAnnotationTagsResponse is a response struct for FindTagsResult.

swagger:model GetAnnotationTagsResponse

func (*GetAnnotationTagsResponse) ContextValidate ¶

func (m *GetAnnotationTagsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get annotation tags response based on the context it is used

func (*GetAnnotationTagsResponse) MarshalBinary ¶

func (m *GetAnnotationTagsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetAnnotationTagsResponse) UnmarshalBinary ¶

func (m *GetAnnotationTagsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetAnnotationTagsResponse) Validate ¶

func (m *GetAnnotationTagsResponse) Validate(formats strfmt.Registry) error

Validate validates this get annotation tags response

type GetDataSourceIDByNameOKBody ¶

type GetDataSourceIDByNameOKBody struct {

	// ID Identifier of the data source.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`
}

GetDataSourceIDByNameOKBody get data source Id by name Ok body

swagger:model getDataSourceIdByNameOkBody

func (*GetDataSourceIDByNameOKBody) ContextValidate ¶

func (m *GetDataSourceIDByNameOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get data source Id by name Ok body based on context it is used

func (*GetDataSourceIDByNameOKBody) MarshalBinary ¶

func (m *GetDataSourceIDByNameOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetDataSourceIDByNameOKBody) UnmarshalBinary ¶

func (m *GetDataSourceIDByNameOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetDataSourceIDByNameOKBody) Validate ¶

func (m *GetDataSourceIDByNameOKBody) Validate(formats strfmt.Registry) error

Validate validates this get data source Id by name Ok body

type GetHomeDashboardResponse ¶

type GetHomeDashboardResponse struct {
	GetHomeDashboardResponseAllOf0

	GetHomeDashboardResponseAllOf1
}

GetHomeDashboardResponse Get home dashboard response.

swagger:model GetHomeDashboardResponse

func (*GetHomeDashboardResponse) ContextValidate ¶

func (m *GetHomeDashboardResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get home dashboard response based on the context it is used

func (*GetHomeDashboardResponse) MarshalBinary ¶

func (m *GetHomeDashboardResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (GetHomeDashboardResponse) MarshalJSON ¶

func (m GetHomeDashboardResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetHomeDashboardResponse) UnmarshalBinary ¶

func (m *GetHomeDashboardResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetHomeDashboardResponse) UnmarshalJSON ¶

func (m *GetHomeDashboardResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetHomeDashboardResponse) Validate ¶

func (m *GetHomeDashboardResponse) Validate(formats strfmt.Registry) error

Validate validates this get home dashboard response

type GetHomeDashboardResponseAllOf0 ¶

type GetHomeDashboardResponseAllOf0 struct {

	// dashboard
	Dashboard JSON `json:"dashboard,omitempty"`

	// meta
	Meta *DashboardMeta `json:"meta,omitempty"`
}

GetHomeDashboardResponseAllOf0 get home dashboard response all of0

swagger:model getHomeDashboardResponseAllOf0

func (*GetHomeDashboardResponseAllOf0) ContextValidate ¶

func (m *GetHomeDashboardResponseAllOf0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get home dashboard response all of0 based on the context it is used

func (*GetHomeDashboardResponseAllOf0) MarshalBinary ¶

func (m *GetHomeDashboardResponseAllOf0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetHomeDashboardResponseAllOf0) UnmarshalBinary ¶

func (m *GetHomeDashboardResponseAllOf0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetHomeDashboardResponseAllOf0) Validate ¶

func (m *GetHomeDashboardResponseAllOf0) Validate(formats strfmt.Registry) error

Validate validates this get home dashboard response all of0

type GetHomeDashboardResponseAllOf1 ¶

type GetHomeDashboardResponseAllOf1 struct {

	// redirect Uri
	RedirectURI string `json:"redirectUri,omitempty"`
}

GetHomeDashboardResponseAllOf1 get home dashboard response all of1

swagger:model getHomeDashboardResponseAllOf1

func (*GetHomeDashboardResponseAllOf1) ContextValidate ¶

func (m *GetHomeDashboardResponseAllOf1) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get home dashboard response all of1 based on context it is used

func (*GetHomeDashboardResponseAllOf1) MarshalBinary ¶

func (m *GetHomeDashboardResponseAllOf1) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetHomeDashboardResponseAllOf1) UnmarshalBinary ¶

func (m *GetHomeDashboardResponseAllOf1) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetHomeDashboardResponseAllOf1) Validate ¶

func (m *GetHomeDashboardResponseAllOf1) Validate(formats strfmt.Registry) error

Validate validates this get home dashboard response all of1

type GetProviderSettingsOKBody ¶

type GetProviderSettingsOKBody struct {

	// id
	ID string `json:"id,omitempty"`

	// provider
	Provider string `json:"provider,omitempty"`

	// settings
	Settings interface{} `json:"settings,omitempty"`

	// source
	Source string `json:"source,omitempty"`
}

GetProviderSettingsOKBody get provider settings Ok body

swagger:model getProviderSettingsOkBody

func (*GetProviderSettingsOKBody) ContextValidate ¶

func (m *GetProviderSettingsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get provider settings Ok body based on context it is used

func (*GetProviderSettingsOKBody) MarshalBinary ¶

func (m *GetProviderSettingsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetProviderSettingsOKBody) UnmarshalBinary ¶

func (m *GetProviderSettingsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetProviderSettingsOKBody) Validate ¶

func (m *GetProviderSettingsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get provider settings Ok body

type GetSharingOptionsOKBody ¶

type GetSharingOptionsOKBody struct {

	// external enabled
	ExternalEnabled bool `json:"externalEnabled,omitempty"`

	// external snapshot name
	ExternalSnapshotName string `json:"externalSnapshotName,omitempty"`

	// external snapshot URL
	ExternalSnapshotURL string `json:"externalSnapshotURL,omitempty"`
}

GetSharingOptionsOKBody get sharing options Ok body

swagger:model getSharingOptionsOkBody

func (*GetSharingOptionsOKBody) ContextValidate ¶

func (m *GetSharingOptionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get sharing options Ok body based on context it is used

func (*GetSharingOptionsOKBody) MarshalBinary ¶

func (m *GetSharingOptionsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetSharingOptionsOKBody) UnmarshalBinary ¶

func (m *GetSharingOptionsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetSharingOptionsOKBody) Validate ¶

func (m *GetSharingOptionsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get sharing options Ok body

type GettableAPIAlertingConfig ¶

type GettableAPIAlertingConfig struct {

	// global
	Global *GlobalConfig `json:"global,omitempty"`

	// inhibit rules
	InhibitRules []*InhibitRule `json:"inhibit_rules"`

	// mute time provenances
	MuteTimeProvenances map[string]Provenance `json:"muteTimeProvenances,omitempty"`

	// MuteTimeIntervals is deprecated and will be removed before Alertmanager 1.0.
	MuteTimeIntervals []*MuteTimeInterval `json:"mute_time_intervals"`

	// Override with our superset receiver type
	Receivers []*GettableAPIReceiver `json:"receivers"`

	// route
	Route *Route `json:"route,omitempty"`

	// templates
	Templates []string `json:"templates"`

	// time intervals
	TimeIntervals []*TimeInterval `json:"time_intervals"`
}

GettableAPIAlertingConfig gettable Api alerting config

swagger:model GettableApiAlertingConfig

func (*GettableAPIAlertingConfig) ContextValidate ¶

func (m *GettableAPIAlertingConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable Api alerting config based on the context it is used

func (*GettableAPIAlertingConfig) MarshalBinary ¶

func (m *GettableAPIAlertingConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableAPIAlertingConfig) UnmarshalBinary ¶

func (m *GettableAPIAlertingConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableAPIAlertingConfig) Validate ¶

func (m *GettableAPIAlertingConfig) Validate(formats strfmt.Registry) error

Validate validates this gettable Api alerting config

type GettableAPIReceiver ¶

type GettableAPIReceiver struct {

	// discord configs
	DiscordConfigs []*DiscordConfig `json:"discord_configs"`

	// email configs
	EmailConfigs []*EmailConfig `json:"email_configs"`

	// grafana managed receiver configs
	GrafanaManagedReceiverConfigs []*GettableGrafanaReceiver `json:"grafana_managed_receiver_configs"`

	// msteams configs
	MsteamsConfigs []*MSTeamsConfig `json:"msteams_configs"`

	// A unique identifier for this receiver.
	Name string `json:"name,omitempty"`

	// opsgenie configs
	OpsgenieConfigs []*OpsGenieConfig `json:"opsgenie_configs"`

	// pagerduty configs
	PagerdutyConfigs []*PagerdutyConfig `json:"pagerduty_configs"`

	// pushover configs
	PushoverConfigs []*PushoverConfig `json:"pushover_configs"`

	// slack configs
	SlackConfigs []*SlackConfig `json:"slack_configs"`

	// sns configs
	SNSConfigs []*SNSConfig `json:"sns_configs"`

	// telegram configs
	TelegramConfigs []*TelegramConfig `json:"telegram_configs"`

	// victorops configs
	VictoropsConfigs []*VictorOpsConfig `json:"victorops_configs"`

	// webex configs
	WebexConfigs []*WebexConfig `json:"webex_configs"`

	// webhook configs
	WebhookConfigs []*WebhookConfig `json:"webhook_configs"`

	// wechat configs
	WechatConfigs []*WechatConfig `json:"wechat_configs"`
}

GettableAPIReceiver gettable Api receiver

swagger:model GettableApiReceiver

func (*GettableAPIReceiver) ContextValidate ¶

func (m *GettableAPIReceiver) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable Api receiver based on the context it is used

func (*GettableAPIReceiver) MarshalBinary ¶

func (m *GettableAPIReceiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableAPIReceiver) UnmarshalBinary ¶

func (m *GettableAPIReceiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableAPIReceiver) Validate ¶

func (m *GettableAPIReceiver) Validate(formats strfmt.Registry) error

Validate validates this gettable Api receiver

type GettableAlert ¶

type GettableAlert struct {

	// annotations
	// Required: true
	Annotations LabelSet `json:"annotations"`

	// ends at
	// Required: true
	// Format: date-time
	EndsAt *strfmt.DateTime `json:"endsAt"`

	// fingerprint
	// Required: true
	Fingerprint *string `json:"fingerprint"`

	// generator URL
	// Format: uri
	// Format: uri
	GeneratorURL strfmt.URI `json:"generatorURL,omitempty"`

	// labels
	// Required: true
	Labels LabelSet `json:"labels"`

	// receivers
	// Required: true
	Receivers []*Receiver `json:"receivers"`

	// starts at
	// Required: true
	// Format: date-time
	StartsAt *strfmt.DateTime `json:"startsAt"`

	// status
	// Required: true
	Status *AlertStatus `json:"status"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt"`
}

GettableAlert GettableAlert gettable alert

swagger:model gettableAlert

func (*GettableAlert) ContextValidate ¶

func (m *GettableAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable alert based on the context it is used

func (*GettableAlert) MarshalBinary ¶

func (m *GettableAlert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableAlert) UnmarshalBinary ¶

func (m *GettableAlert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableAlert) Validate ¶

func (m *GettableAlert) Validate(formats strfmt.Registry) error

Validate validates this gettable alert

type GettableExtendedRuleNode ¶

type GettableExtendedRuleNode struct {

	// alert
	Alert string `json:"alert,omitempty"`

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// expr
	Expr string `json:"expr,omitempty"`

	// for
	For string `json:"for,omitempty"`

	// grafana alert
	GrafanaAlert *GettableGrafanaRule `json:"grafana_alert,omitempty"`

	// keep firing for
	KeepFiringFor string `json:"keep_firing_for,omitempty"`

	// labels
	Labels map[string]string `json:"labels,omitempty"`

	// record
	Record string `json:"record,omitempty"`
}

GettableExtendedRuleNode gettable extended rule node

swagger:model GettableExtendedRuleNode

func (*GettableExtendedRuleNode) ContextValidate ¶

func (m *GettableExtendedRuleNode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable extended rule node based on the context it is used

func (*GettableExtendedRuleNode) MarshalBinary ¶

func (m *GettableExtendedRuleNode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableExtendedRuleNode) UnmarshalBinary ¶

func (m *GettableExtendedRuleNode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableExtendedRuleNode) Validate ¶

func (m *GettableExtendedRuleNode) Validate(formats strfmt.Registry) error

Validate validates this gettable extended rule node

type GettableGrafanaReceiver ¶

type GettableGrafanaReceiver struct {

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// provenance
	Provenance Provenance `json:"provenance,omitempty"`

	// secure fields
	SecureFields map[string]bool `json:"secureFields,omitempty"`

	// settings
	Settings RawMessage `json:"settings,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

GettableGrafanaReceiver gettable grafana receiver

swagger:model GettableGrafanaReceiver

func (*GettableGrafanaReceiver) ContextValidate ¶

func (m *GettableGrafanaReceiver) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable grafana receiver based on the context it is used

func (*GettableGrafanaReceiver) MarshalBinary ¶

func (m *GettableGrafanaReceiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableGrafanaReceiver) UnmarshalBinary ¶

func (m *GettableGrafanaReceiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableGrafanaReceiver) Validate ¶

func (m *GettableGrafanaReceiver) Validate(formats strfmt.Registry) error

Validate validates this gettable grafana receiver

type GettableGrafanaRule ¶

type GettableGrafanaRule struct {

	// condition
	Condition string `json:"condition,omitempty"`

	// data
	Data []*AlertQuery `json:"data"`

	// exec err state
	// Enum: [OK Alerting Error]
	ExecErrState string `json:"exec_err_state,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// interval seconds
	IntervalSeconds int64 `json:"intervalSeconds,omitempty"`

	// is paused
	IsPaused bool `json:"is_paused,omitempty"`

	// namespace uid
	NamespaceUID string `json:"namespace_uid,omitempty"`

	// no data state
	// Enum: [Alerting NoData OK]
	NoDataState string `json:"no_data_state,omitempty"`

	// notification settings
	NotificationSettings *AlertRuleNotificationSettings `json:"notification_settings,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// provenance
	Provenance Provenance `json:"provenance,omitempty"`

	// rule group
	RuleGroup string `json:"rule_group,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

GettableGrafanaRule gettable grafana rule

swagger:model GettableGrafanaRule

func (*GettableGrafanaRule) ContextValidate ¶

func (m *GettableGrafanaRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable grafana rule based on the context it is used

func (*GettableGrafanaRule) MarshalBinary ¶

func (m *GettableGrafanaRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableGrafanaRule) UnmarshalBinary ¶

func (m *GettableGrafanaRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableGrafanaRule) Validate ¶

func (m *GettableGrafanaRule) Validate(formats strfmt.Registry) error

Validate validates this gettable grafana rule

type GettableRuleGroupConfig ¶

type GettableRuleGroupConfig struct {

	// interval
	Interval Duration `json:"interval,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// rules
	Rules []*GettableExtendedRuleNode `json:"rules"`

	// source tenants
	SourceTenants []string `json:"source_tenants"`
}

GettableRuleGroupConfig gettable rule group config

swagger:model GettableRuleGroupConfig

func (*GettableRuleGroupConfig) ContextValidate ¶

func (m *GettableRuleGroupConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable rule group config based on the context it is used

func (*GettableRuleGroupConfig) MarshalBinary ¶

func (m *GettableRuleGroupConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableRuleGroupConfig) UnmarshalBinary ¶

func (m *GettableRuleGroupConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableRuleGroupConfig) Validate ¶

func (m *GettableRuleGroupConfig) Validate(formats strfmt.Registry) error

Validate validates this gettable rule group config

type GettableSilence ¶

type GettableSilence struct {

	// comment
	// Required: true
	Comment *string `json:"comment"`

	// created by
	// Required: true
	CreatedBy *string `json:"createdBy"`

	// ends at
	// Required: true
	// Format: date-time
	EndsAt *strfmt.DateTime `json:"endsAt"`

	// id
	// Required: true
	ID *string `json:"id"`

	// matchers
	// Required: true
	Matchers Matchers `json:"matchers"`

	// starts at
	// Required: true
	// Format: date-time
	StartsAt *strfmt.DateTime `json:"startsAt"`

	// status
	// Required: true
	Status *SilenceStatus `json:"status"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt"`
}

GettableSilence gettable silence

swagger:model gettableSilence

func (*GettableSilence) ContextValidate ¶

func (m *GettableSilence) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gettable silence based on the context it is used

func (*GettableSilence) MarshalBinary ¶

func (m *GettableSilence) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GettableSilence) UnmarshalBinary ¶

func (m *GettableSilence) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GettableSilence) Validate ¶

func (m *GettableSilence) Validate(formats strfmt.Registry) error

Validate validates this gettable silence

type GlobalConfig ¶

type GlobalConfig struct {

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// opsgenie api key
	OpsgenieAPIKey Secret `json:"opsgenie_api_key,omitempty"`

	// opsgenie api key file
	OpsgenieAPIKeyFile string `json:"opsgenie_api_key_file,omitempty"`

	// opsgenie api url
	OpsgenieAPIURL *URL `json:"opsgenie_api_url,omitempty"`

	// pagerduty url
	PagerdutyURL *URL `json:"pagerduty_url,omitempty"`

	// resolve timeout
	ResolveTimeout Duration `json:"resolve_timeout,omitempty"`

	// slack api url
	SlackAPIURL *SecretURL `json:"slack_api_url,omitempty"`

	// slack api url file
	SlackAPIURLFile string `json:"slack_api_url_file,omitempty"`

	// smtp auth identity
	SMTPAuthIdentity string `json:"smtp_auth_identity,omitempty"`

	// smtp auth password
	SMTPAuthPassword Secret `json:"smtp_auth_password,omitempty"`

	// smtp auth password file
	SMTPAuthPasswordFile string `json:"smtp_auth_password_file,omitempty"`

	// smtp auth secret
	SMTPAuthSecret Secret `json:"smtp_auth_secret,omitempty"`

	// smtp auth username
	SMTPAuthUsername string `json:"smtp_auth_username,omitempty"`

	// smtp from
	SMTPFrom string `json:"smtp_from,omitempty"`

	// smtp hello
	SMTPHello string `json:"smtp_hello,omitempty"`

	// smtp require tls
	SMTPRequireTLS bool `json:"smtp_require_tls,omitempty"`

	// smtp smarthost
	SMTPSmarthost *HostPort `json:"smtp_smarthost,omitempty"`

	// telegram api url
	TelegramAPIURL *URL `json:"telegram_api_url,omitempty"`

	// victorops api key
	VictoropsAPIKey Secret `json:"victorops_api_key,omitempty"`

	// victorops api key file
	VictoropsAPIKeyFile string `json:"victorops_api_key_file,omitempty"`

	// victorops api url
	VictoropsAPIURL *URL `json:"victorops_api_url,omitempty"`

	// webex api url
	WebexAPIURL *URL `json:"webex_api_url,omitempty"`

	// wechat api corp id
	WechatAPICorpID string `json:"wechat_api_corp_id,omitempty"`

	// wechat api secret
	WechatAPISecret Secret `json:"wechat_api_secret,omitempty"`

	// wechat api url
	WechatAPIURL *URL `json:"wechat_api_url,omitempty"`
}

GlobalConfig GlobalConfig defines configuration parameters that are valid globally unless overwritten.

swagger:model GlobalConfig

func (*GlobalConfig) ContextValidate ¶

func (m *GlobalConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this global config based on the context it is used

func (*GlobalConfig) MarshalBinary ¶

func (m *GlobalConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GlobalConfig) UnmarshalBinary ¶

func (m *GlobalConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GlobalConfig) Validate ¶

func (m *GlobalConfig) Validate(formats strfmt.Registry) error

Validate validates this global config

type HTTPClientConfig ¶

type HTTPClientConfig struct {

	// authorization
	Authorization *Authorization `json:"authorization,omitempty"`

	// basic auth
	BasicAuth *BasicAuth `json:"basic_auth,omitempty"`

	// bearer token
	BearerToken Secret `json:"bearer_token,omitempty"`

	// The bearer token file for the targets. Deprecated in favour of
	// Authorization.CredentialsFile.
	BearerTokenFile string `json:"bearer_token_file,omitempty"`

	// EnableHTTP2 specifies whether the client should configure HTTP2.
	// The omitempty flag is not set, because it would be hidden from the
	// marshalled configuration when set to false.
	EnableHttp2 bool `json:"enable_http2,omitempty"`

	// FollowRedirects specifies whether the client should follow HTTP 3xx redirects.
	// The omitempty flag is not set, because it would be hidden from the
	// marshalled configuration when set to false.
	FollowRedirects bool `json:"follow_redirects,omitempty"`

	// NoProxy contains addresses that should not use a proxy.
	NoProxy string `json:"no_proxy,omitempty"`

	// oauth2
	Oauth2 *OAuth2 `json:"oauth2,omitempty"`

	// proxy connect header
	ProxyConnectHeader Header `json:"proxy_connect_header,omitempty"`

	// ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function
	// to determine proxies.
	ProxyFromEnvironment bool `json:"proxy_from_environment,omitempty"`

	// proxy url
	ProxyURL *URL `json:"proxy_url,omitempty"`

	// tls config
	TLSConfig *TLSConfig `json:"tls_config,omitempty"`
}

HTTPClientConfig HTTPClientConfig configures an HTTP client.

swagger:model HTTPClientConfig

func (*HTTPClientConfig) ContextValidate ¶

func (m *HTTPClientConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this HTTP client config based on the context it is used

func (*HTTPClientConfig) MarshalBinary ¶

func (m *HTTPClientConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HTTPClientConfig) UnmarshalBinary ¶

func (m *HTTPClientConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HTTPClientConfig) Validate ¶

func (m *HTTPClientConfig) Validate(formats strfmt.Registry) error

Validate validates this HTTP client config

type Header map[string][]Secret

Header header

swagger:model Header

func (Header) ContextValidate ¶

func (m Header) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this header based on the context it is used

func (Header) Validate ¶

func (m Header) Validate(formats strfmt.Registry) error

Validate validates this header

type Hit ¶

type Hit struct {

	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// folder title
	FolderTitle string `json:"folderTitle,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// folder Url
	FolderURL string `json:"folderUrl,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is starred
	IsStarred bool `json:"isStarred,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

	// sort meta
	SortMeta int64 `json:"sortMeta,omitempty"`

	// sort meta name
	SortMetaName string `json:"sortMetaName,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// title
	Title string `json:"title,omitempty"`

	// type
	Type HitType `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// uri
	URI string `json:"uri,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

Hit hit

swagger:model Hit

func (*Hit) ContextValidate ¶

func (m *Hit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hit based on the context it is used

func (*Hit) MarshalBinary ¶

func (m *Hit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Hit) UnmarshalBinary ¶

func (m *Hit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Hit) Validate ¶

func (m *Hit) Validate(formats strfmt.Registry) error

Validate validates this hit

type HitList ¶

type HitList []*Hit

HitList hit list

swagger:model HitList

func (HitList) ContextValidate ¶

func (m HitList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hit list based on the context it is used

func (HitList) Validate ¶

func (m HitList) Validate(formats strfmt.Registry) error

Validate validates this hit list

type HitType ¶

type HitType string

HitType hit type

swagger:model HitType

func (HitType) ContextValidate ¶

func (m HitType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hit type based on context it is used

func (HitType) Validate ¶

func (m HitType) Validate(formats strfmt.Registry) error

Validate validates this hit type

type HostPort ¶

type HostPort struct {

	// host
	Host string `json:"Host,omitempty"`

	// port
	Port string `json:"Port,omitempty"`
}

HostPort HostPort represents a "host:port" network address.

swagger:model HostPort

func (*HostPort) ContextValidate ¶

func (m *HostPort) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this host port based on context it is used

func (*HostPort) MarshalBinary ¶

func (m *HostPort) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HostPort) UnmarshalBinary ¶

func (m *HostPort) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostPort) Validate ¶

func (m *HostPort) Validate(formats strfmt.Registry) error

Validate validates this host port

type IPMask ¶

type IPMask []uint8

IPMask An IPMask is a bitmask that can be used to manipulate IP addresses for IP addressing and routing.

See type IPNet and func ParseCIDR for details.

swagger:model IPMask

func (IPMask) ContextValidate ¶

func (m IPMask) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this IP mask based on context it is used

func (IPMask) Validate ¶

func (m IPMask) Validate(formats strfmt.Registry) error

Validate validates this IP mask

type IPNet ¶

type IPNet struct {

	// IP
	IP string `json:"IP,omitempty"`

	// mask
	Mask IPMask `json:"Mask,omitempty"`
}

IPNet An IPNet represents an IP network.

swagger:model IPNet

func (*IPNet) ContextValidate ¶

func (m *IPNet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this IP net based on the context it is used

func (*IPNet) MarshalBinary ¶

func (m *IPNet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IPNet) UnmarshalBinary ¶

func (m *IPNet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IPNet) Validate ¶

func (m *IPNet) Validate(formats strfmt.Registry) error

Validate validates this IP net

type ImportDashboardInput ¶

type ImportDashboardInput struct {

	// name
	Name string `json:"name,omitempty"`

	// plugin Id
	PluginID string `json:"pluginId,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

ImportDashboardInput ImportDashboardInput definition of input parameters when importing a dashboard.

swagger:model ImportDashboardInput

func (*ImportDashboardInput) ContextValidate ¶

func (m *ImportDashboardInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this import dashboard input based on context it is used

func (*ImportDashboardInput) MarshalBinary ¶

func (m *ImportDashboardInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImportDashboardInput) UnmarshalBinary ¶

func (m *ImportDashboardInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImportDashboardInput) Validate ¶

func (m *ImportDashboardInput) Validate(formats strfmt.Registry) error

Validate validates this import dashboard input

type ImportDashboardRequest ¶

type ImportDashboardRequest struct {

	// dashboard
	Dashboard JSON `json:"dashboard,omitempty"`

	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// inputs
	Inputs []*ImportDashboardInput `json:"inputs"`

	// overwrite
	Overwrite bool `json:"overwrite,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// plugin Id
	PluginID string `json:"pluginId,omitempty"`
}

ImportDashboardRequest ImportDashboardRequest request object for importing a dashboard.

swagger:model ImportDashboardRequest

func (*ImportDashboardRequest) ContextValidate ¶

func (m *ImportDashboardRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this import dashboard request based on the context it is used

func (*ImportDashboardRequest) MarshalBinary ¶

func (m *ImportDashboardRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImportDashboardRequest) UnmarshalBinary ¶

func (m *ImportDashboardRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImportDashboardRequest) Validate ¶

func (m *ImportDashboardRequest) Validate(formats strfmt.Registry) error

Validate validates this import dashboard request

type ImportDashboardResponse ¶

type ImportDashboardResponse struct {

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// imported
	Imported bool `json:"imported,omitempty"`

	// imported revision
	ImportedRevision int64 `json:"importedRevision,omitempty"`

	// imported Uri
	ImportedURI string `json:"importedUri,omitempty"`

	// imported Url
	ImportedURL string `json:"importedUrl,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// plugin Id
	PluginID string `json:"pluginId,omitempty"`

	// removed
	Removed bool `json:"removed,omitempty"`

	// revision
	Revision int64 `json:"revision,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

ImportDashboardResponse ImportDashboardResponse response object returned when importing a dashboard.

swagger:model ImportDashboardResponse

func (*ImportDashboardResponse) ContextValidate ¶

func (m *ImportDashboardResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this import dashboard response based on context it is used

func (*ImportDashboardResponse) MarshalBinary ¶

func (m *ImportDashboardResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImportDashboardResponse) UnmarshalBinary ¶

func (m *ImportDashboardResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImportDashboardResponse) Validate ¶

func (m *ImportDashboardResponse) Validate(formats strfmt.Registry) error

Validate validates this import dashboard response

type InhibitRule ¶

type InhibitRule struct {

	// equal
	Equal LabelNames `json:"equal,omitempty"`

	// SourceMatch defines a set of labels that have to equal the given
	// value for source alerts. Deprecated. Remove before v1.0 release.
	SourceMatch map[string]string `json:"source_match,omitempty"`

	// source match re
	SourceMatchRe MatchRegexps `json:"source_match_re,omitempty"`

	// source matchers
	SourceMatchers Matchers `json:"source_matchers,omitempty"`

	// TargetMatch defines a set of labels that have to equal the given
	// value for target alerts. Deprecated. Remove before v1.0 release.
	TargetMatch map[string]string `json:"target_match,omitempty"`

	// target match re
	TargetMatchRe MatchRegexps `json:"target_match_re,omitempty"`

	// target matchers
	TargetMatchers Matchers `json:"target_matchers,omitempty"`
}

InhibitRule InhibitRule defines an inhibition rule that mutes alerts that match the target labels if an alert matching the source labels exists. Both alerts have to have a set of labels being equal.

swagger:model InhibitRule

func (*InhibitRule) ContextValidate ¶

func (m *InhibitRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this inhibit rule based on the context it is used

func (*InhibitRule) MarshalBinary ¶

func (m *InhibitRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InhibitRule) UnmarshalBinary ¶

func (m *InhibitRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InhibitRule) Validate ¶

func (m *InhibitRule) Validate(formats strfmt.Registry) error

Validate validates this inhibit rule

type InspectType ¶

type InspectType int64

InspectType InspectType is a type for the Inspect property of a Notice.

swagger:model InspectType

func (InspectType) ContextValidate ¶

func (m InspectType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this inspect type based on context it is used

func (InspectType) Validate ¶

func (m InspectType) Validate(formats strfmt.Registry) error

Validate validates this inspect type

type Integration ¶

type Integration struct {

	// A timestamp indicating the last attempt to deliver a notification regardless of the outcome.
	// Format: date-time
	// Format: date-time
	LastNotifyAttempt strfmt.DateTime `json:"lastNotifyAttempt,omitempty"`

	// Duration of the last attempt to deliver a notification in humanized format (`1s` or `15ms`, etc).
	LastNotifyAttemptDuration string `json:"lastNotifyAttemptDuration,omitempty"`

	// Error string for the last attempt to deliver a notification. Empty if the last attempt was successful.
	LastNotifyAttemptError string `json:"lastNotifyAttemptError,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// send resolved
	// Required: true
	SendResolved *bool `json:"sendResolved"`
}

Integration Integration integration

swagger:model integration

func (*Integration) ContextValidate ¶

func (m *Integration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this integration based on context it is used

func (*Integration) MarshalBinary ¶

func (m *Integration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Integration) UnmarshalBinary ¶

func (m *Integration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Integration) Validate ¶

func (m *Integration) Validate(formats strfmt.Registry) error

Validate validates this integration

type InternalDataLink struct {

	// datasource name
	DatasourceName string `json:"datasourceName,omitempty"`

	// datasource Uid
	DatasourceUID string `json:"datasourceUid,omitempty"`

	// panels state
	PanelsState ExplorePanelsState `json:"panelsState,omitempty"`

	// query
	Query interface{} `json:"query,omitempty"`

	// time range
	TimeRange *TimeRange `json:"timeRange,omitempty"`

	// transformations
	Transformations []*LinkTransformationConfig `json:"transformations"`
}

InternalDataLink InternalDataLink definition to allow Explore links to be constructed in the backend

swagger:model InternalDataLink

func (*InternalDataLink) ContextValidate ¶

func (m *InternalDataLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this internal data link based on the context it is used

func (*InternalDataLink) MarshalBinary ¶

func (m *InternalDataLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InternalDataLink) UnmarshalBinary ¶

func (m *InternalDataLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InternalDataLink) Validate ¶

func (m *InternalDataLink) Validate(formats strfmt.Registry) error

Validate validates this internal data link

type JSON ¶

type JSON interface{}

JSON Json

swagger:model Json

type JSONWebKey ¶

type JSONWebKey struct {

	// Key algorithm, parsed from `alg` header.
	Algorithm string `json:"Algorithm,omitempty"`

	// X.509 certificate thumbprint (SHA-1), parsed from `x5t` header.
	CertificateThumbprintSHA1 []uint8 `json:"CertificateThumbprintSHA1"`

	// X.509 certificate thumbprint (SHA-256), parsed from `x5t#S256` header.
	CertificateThumbprintSHA256 []uint8 `json:"CertificateThumbprintSHA256"`

	// X.509 certificate chain, parsed from `x5c` header.
	Certificates []*Certificate `json:"Certificates"`

	// certificates URL
	CertificatesURL *URL `json:"CertificatesURL,omitempty"`

	// Key is the Go in-memory representation of this key. It must have one
	// of these types:
	// ed25519.PublicKey
	// ed25519.PrivateKey
	// ecdsa.PublicKey
	// ecdsa.PrivateKey
	// rsa.PublicKey
	// rsa.PrivateKey
	// []byte (a symmetric key)
	//
	// When marshaling this JSONWebKey into JSON, the "kty" header parameter
	// will be automatically set based on the type of this field.
	Key interface{} `json:"Key,omitempty"`

	// Key identifier, parsed from `kid` header.
	KeyID string `json:"KeyID,omitempty"`

	// Key use, parsed from `use` header.
	Use string `json:"Use,omitempty"`
}

JSONWebKey JSONWebKey represents a public or private key in JWK format. It can be marshaled into JSON and unmarshaled from JSON.

swagger:model JSONWebKey

func (*JSONWebKey) ContextValidate ¶

func (m *JSONWebKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this JSON web key based on the context it is used

func (*JSONWebKey) MarshalBinary ¶

func (m *JSONWebKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JSONWebKey) UnmarshalBinary ¶

func (m *JSONWebKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JSONWebKey) Validate ¶

func (m *JSONWebKey) Validate(formats strfmt.Registry) error

Validate validates this JSON web key

type KeyUsage ¶

type KeyUsage int64

KeyUsage KeyUsage represents the set of actions that are valid for a given key. It's a bitmap of the KeyUsage* constants.

swagger:model KeyUsage

func (KeyUsage) ContextValidate ¶

func (m KeyUsage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this key usage based on context it is used

func (KeyUsage) Validate ¶

func (m KeyUsage) Validate(formats strfmt.Registry) error

Validate validates this key usage

type Label ¶

type Label struct {

	// name
	Name string `json:"Name,omitempty"`
}

Label Label is a key/value pair of strings.

swagger:model Label

func (*Label) ContextValidate ¶

func (m *Label) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label based on context it is used

func (*Label) MarshalBinary ¶

func (m *Label) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Label) UnmarshalBinary ¶

func (m *Label) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Label) Validate ¶

func (m *Label) Validate(formats strfmt.Registry) error

Validate validates this label

type LabelName ¶

type LabelName string

LabelName A LabelName is a key for a LabelSet or Metric. It has a value associated therewith.

swagger:model LabelName

func (LabelName) ContextValidate ¶

func (m LabelName) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label name based on context it is used

func (LabelName) Validate ¶

func (m LabelName) Validate(formats strfmt.Registry) error

Validate validates this label name

type LabelNames ¶

type LabelNames []LabelName

LabelNames LabelNames is a sortable LabelName slice. In implements sort.Interface.

swagger:model LabelNames

func (LabelNames) ContextValidate ¶

func (m LabelNames) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this label names based on the context it is used

func (LabelNames) Validate ¶

func (m LabelNames) Validate(formats strfmt.Registry) error

Validate validates this label names

type LabelSet ¶

type LabelSet map[string]string

LabelSet LabelSet label set

swagger:model labelSet

func (LabelSet) ContextValidate ¶

func (m LabelSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label set based on context it is used

func (LabelSet) Validate ¶

func (m LabelSet) Validate(formats strfmt.Registry) error

Validate validates this label set

type LabelValue ¶

type LabelValue string

LabelValue A LabelValue is an associated value for a LabelName.

swagger:model LabelValue

func (LabelValue) ContextValidate ¶

func (m LabelValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label value based on context it is used

func (LabelValue) Validate ¶

func (m LabelValue) Validate(formats strfmt.Registry) error

Validate validates this label value

type Labels ¶

type Labels []*Label

Labels Labels is a sorted set of labels. Order has to be guaranteed upon instantiation.

swagger:model Labels

func (Labels) ContextValidate ¶

func (m Labels) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this labels based on the context it is used

func (Labels) Validate ¶

func (m Labels) Validate(formats strfmt.Registry) error

Validate validates this labels

type LibraryElementArrayResponse ¶

type LibraryElementArrayResponse struct {

	// result
	Result []*LibraryElementDTO `json:"result"`
}

LibraryElementArrayResponse LibraryElementArrayResponse is a response struct for an array of LibraryElementDTO.

swagger:model LibraryElementArrayResponse

func (*LibraryElementArrayResponse) ContextValidate ¶

func (m *LibraryElementArrayResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element array response based on the context it is used

func (*LibraryElementArrayResponse) MarshalBinary ¶

func (m *LibraryElementArrayResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementArrayResponse) UnmarshalBinary ¶

func (m *LibraryElementArrayResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementArrayResponse) Validate ¶

func (m *LibraryElementArrayResponse) Validate(formats strfmt.Registry) error

Validate validates this library element array response

type LibraryElementConnectionDTO ¶

type LibraryElementConnectionDTO struct {

	// connection Id
	ConnectionID int64 `json:"connectionId,omitempty"`

	// connection Uid
	ConnectionUID string `json:"connectionUid,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// created by
	CreatedBy *LibraryElementDTOMetaUser `json:"createdBy,omitempty"`

	// element Id
	ElementID int64 `json:"elementId,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// kind
	Kind int64 `json:"kind,omitempty"`
}

LibraryElementConnectionDTO LibraryElementConnectionDTO is the frontend DTO for element connections.

swagger:model LibraryElementConnectionDTO

func (*LibraryElementConnectionDTO) ContextValidate ¶

func (m *LibraryElementConnectionDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element connection DTO based on the context it is used

func (*LibraryElementConnectionDTO) MarshalBinary ¶

func (m *LibraryElementConnectionDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementConnectionDTO) UnmarshalBinary ¶

func (m *LibraryElementConnectionDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementConnectionDTO) Validate ¶

func (m *LibraryElementConnectionDTO) Validate(formats strfmt.Registry) error

Validate validates this library element connection DTO

type LibraryElementConnectionsResponse ¶

type LibraryElementConnectionsResponse struct {

	// result
	Result []*LibraryElementConnectionDTO `json:"result"`
}

LibraryElementConnectionsResponse LibraryElementConnectionsResponse is a response struct for an array of LibraryElementConnectionDTO.

swagger:model LibraryElementConnectionsResponse

func (*LibraryElementConnectionsResponse) ContextValidate ¶

func (m *LibraryElementConnectionsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element connections response based on the context it is used

func (*LibraryElementConnectionsResponse) MarshalBinary ¶

func (m *LibraryElementConnectionsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementConnectionsResponse) UnmarshalBinary ¶

func (m *LibraryElementConnectionsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementConnectionsResponse) Validate ¶

Validate validates this library element connections response

type LibraryElementDTO ¶

type LibraryElementDTO struct {

	// description
	Description string `json:"description,omitempty"`

	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// kind
	Kind int64 `json:"kind,omitempty"`

	// meta
	Meta *LibraryElementDTOMeta `json:"meta,omitempty"`

	// model
	Model interface{} `json:"model,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// schema version
	SchemaVersion int64 `json:"schemaVersion,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

LibraryElementDTO LibraryElementDTO is the frontend DTO for entities.

swagger:model LibraryElementDTO

func (*LibraryElementDTO) ContextValidate ¶

func (m *LibraryElementDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element DTO based on the context it is used

func (*LibraryElementDTO) MarshalBinary ¶

func (m *LibraryElementDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementDTO) UnmarshalBinary ¶

func (m *LibraryElementDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementDTO) Validate ¶

func (m *LibraryElementDTO) Validate(formats strfmt.Registry) error

Validate validates this library element DTO

type LibraryElementDTOMeta ¶

type LibraryElementDTOMeta struct {

	// connected dashboards
	ConnectedDashboards int64 `json:"connectedDashboards,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// created by
	CreatedBy *LibraryElementDTOMetaUser `json:"createdBy,omitempty"`

	// folder name
	FolderName string `json:"folderName,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// updated by
	UpdatedBy *LibraryElementDTOMetaUser `json:"updatedBy,omitempty"`
}

LibraryElementDTOMeta LibraryElementDTOMeta is the meta information for LibraryElementDTO.

swagger:model LibraryElementDTOMeta

func (*LibraryElementDTOMeta) ContextValidate ¶

func (m *LibraryElementDTOMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element DTO meta based on the context it is used

func (*LibraryElementDTOMeta) MarshalBinary ¶

func (m *LibraryElementDTOMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementDTOMeta) UnmarshalBinary ¶

func (m *LibraryElementDTOMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementDTOMeta) Validate ¶

func (m *LibraryElementDTOMeta) Validate(formats strfmt.Registry) error

Validate validates this library element DTO meta

type LibraryElementDTOMetaUser ¶

type LibraryElementDTOMetaUser struct {

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

LibraryElementDTOMetaUser LibraryElementDTOMetaUser defines model for LibraryElementDTOMetaUser.

swagger:model LibraryElementDTOMetaUser

func (*LibraryElementDTOMetaUser) ContextValidate ¶

func (m *LibraryElementDTOMetaUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this library element DTO meta user based on context it is used

func (*LibraryElementDTOMetaUser) MarshalBinary ¶

func (m *LibraryElementDTOMetaUser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementDTOMetaUser) UnmarshalBinary ¶

func (m *LibraryElementDTOMetaUser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementDTOMetaUser) Validate ¶

func (m *LibraryElementDTOMetaUser) Validate(formats strfmt.Registry) error

Validate validates this library element DTO meta user

type LibraryElementResponse ¶

type LibraryElementResponse struct {

	// result
	Result *LibraryElementDTO `json:"result,omitempty"`
}

LibraryElementResponse LibraryElementResponse is a response struct for LibraryElementDTO.

swagger:model LibraryElementResponse

func (*LibraryElementResponse) ContextValidate ¶

func (m *LibraryElementResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element response based on the context it is used

func (*LibraryElementResponse) MarshalBinary ¶

func (m *LibraryElementResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementResponse) UnmarshalBinary ¶

func (m *LibraryElementResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementResponse) Validate ¶

func (m *LibraryElementResponse) Validate(formats strfmt.Registry) error

Validate validates this library element response

type LibraryElementSearchResponse ¶

type LibraryElementSearchResponse struct {

	// result
	Result *LibraryElementSearchResult `json:"result,omitempty"`
}

LibraryElementSearchResponse LibraryElementSearchResponse is a response struct for LibraryElementSearchResult.

swagger:model LibraryElementSearchResponse

func (*LibraryElementSearchResponse) ContextValidate ¶

func (m *LibraryElementSearchResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element search response based on the context it is used

func (*LibraryElementSearchResponse) MarshalBinary ¶

func (m *LibraryElementSearchResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementSearchResponse) UnmarshalBinary ¶

func (m *LibraryElementSearchResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementSearchResponse) Validate ¶

func (m *LibraryElementSearchResponse) Validate(formats strfmt.Registry) error

Validate validates this library element search response

type LibraryElementSearchResult ¶

type LibraryElementSearchResult struct {

	// elements
	Elements []*LibraryElementDTO `json:"elements"`

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

LibraryElementSearchResult LibraryElementSearchResult is the search result for entities.

swagger:model LibraryElementSearchResult

func (*LibraryElementSearchResult) ContextValidate ¶

func (m *LibraryElementSearchResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this library element search result based on the context it is used

func (*LibraryElementSearchResult) MarshalBinary ¶

func (m *LibraryElementSearchResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LibraryElementSearchResult) UnmarshalBinary ¶

func (m *LibraryElementSearchResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LibraryElementSearchResult) Validate ¶

func (m *LibraryElementSearchResult) Validate(formats strfmt.Registry) error

Validate validates this library element search result

type LinkTransformationConfig ¶

type LinkTransformationConfig struct {

	// expression
	Expression string `json:"expression,omitempty"`

	// field
	Field string `json:"field,omitempty"`

	// map value
	MapValue string `json:"mapValue,omitempty"`

	// type
	Type SupportedTransformationTypes `json:"type,omitempty"`
}

LinkTransformationConfig link transformation config

swagger:model LinkTransformationConfig

func (*LinkTransformationConfig) ContextValidate ¶

func (m *LinkTransformationConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this link transformation config based on the context it is used

func (*LinkTransformationConfig) MarshalBinary ¶

func (m *LinkTransformationConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LinkTransformationConfig) UnmarshalBinary ¶

func (m *LinkTransformationConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LinkTransformationConfig) Validate ¶

func (m *LinkTransformationConfig) Validate(formats strfmt.Registry) error

Validate validates this link transformation config

type ListAllProvidersSettingsOKBodyItems ¶

type ListAllProvidersSettingsOKBodyItems struct {

	// id
	ID string `json:"id,omitempty"`

	// provider
	Provider string `json:"provider,omitempty"`

	// settings
	Settings interface{} `json:"settings,omitempty"`

	// source
	Source string `json:"source,omitempty"`
}

ListAllProvidersSettingsOKBodyItems list all providers settings Ok body items

swagger:model listAllProvidersSettingsOkBodyItems

func (*ListAllProvidersSettingsOKBodyItems) ContextValidate ¶

func (m *ListAllProvidersSettingsOKBodyItems) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list all providers settings Ok body items based on context it is used

func (*ListAllProvidersSettingsOKBodyItems) MarshalBinary ¶

func (m *ListAllProvidersSettingsOKBodyItems) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListAllProvidersSettingsOKBodyItems) UnmarshalBinary ¶

func (m *ListAllProvidersSettingsOKBodyItems) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListAllProvidersSettingsOKBodyItems) Validate ¶

Validate validates this list all providers settings Ok body items

type ListSortOptionsOKBody ¶

type ListSortOptionsOKBody struct {

	// description
	Description string `json:"description,omitempty"`

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// meta
	Meta string `json:"meta,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

ListSortOptionsOKBody list sort options Ok body

swagger:model listSortOptionsOkBody

func (*ListSortOptionsOKBody) ContextValidate ¶

func (m *ListSortOptionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list sort options Ok body based on context it is used

func (*ListSortOptionsOKBody) MarshalBinary ¶

func (m *ListSortOptionsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListSortOptionsOKBody) UnmarshalBinary ¶

func (m *ListSortOptionsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListSortOptionsOKBody) Validate ¶

func (m *ListSortOptionsOKBody) Validate(formats strfmt.Registry) error

Validate validates this list sort options Ok body

type MSTeamsConfig ¶

type MSTeamsConfig struct {

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// summary
	Summary string `json:"summary,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// webhook url
	WebhookURL *SecretURL `json:"webhook_url,omitempty"`

	// webhook url file
	WebhookURLFile string `json:"webhook_url_file,omitempty"`
}

MSTeamsConfig m s teams config

swagger:model MSTeamsConfig

func (*MSTeamsConfig) ContextValidate ¶

func (m *MSTeamsConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this m s teams config based on the context it is used

func (*MSTeamsConfig) MarshalBinary ¶

func (m *MSTeamsConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MSTeamsConfig) UnmarshalBinary ¶

func (m *MSTeamsConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MSTeamsConfig) Validate ¶

func (m *MSTeamsConfig) Validate(formats strfmt.Registry) error

Validate validates this m s teams config

type MassDeleteAnnotationsCmd ¶

type MassDeleteAnnotationsCmd struct {

	// annotation Id
	AnnotationID int64 `json:"annotationId,omitempty"`

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// dashboard UID
	DashboardUID string `json:"dashboardUID,omitempty"`

	// panel Id
	PanelID int64 `json:"panelId,omitempty"`
}

MassDeleteAnnotationsCmd mass delete annotations cmd

swagger:model MassDeleteAnnotationsCmd

func (*MassDeleteAnnotationsCmd) ContextValidate ¶

func (m *MassDeleteAnnotationsCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this mass delete annotations cmd based on context it is used

func (*MassDeleteAnnotationsCmd) MarshalBinary ¶

func (m *MassDeleteAnnotationsCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MassDeleteAnnotationsCmd) UnmarshalBinary ¶

func (m *MassDeleteAnnotationsCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MassDeleteAnnotationsCmd) Validate ¶

func (m *MassDeleteAnnotationsCmd) Validate(formats strfmt.Registry) error

Validate validates this mass delete annotations cmd

type MatchRegexps ¶

type MatchRegexps map[string]string

MatchRegexps MatchRegexps represents a map of Regexp.

swagger:model MatchRegexps

func (MatchRegexps) ContextValidate ¶

func (m MatchRegexps) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this match regexps based on context it is used

func (MatchRegexps) Validate ¶

func (m MatchRegexps) Validate(formats strfmt.Registry) error

Validate validates this match regexps

type MatchType ¶

type MatchType int64

MatchType MatchType is an enum for label matching types.

swagger:model MatchType

func (MatchType) ContextValidate ¶

func (m MatchType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this match type based on context it is used

func (MatchType) Validate ¶

func (m MatchType) Validate(formats strfmt.Registry) error

Validate validates this match type

type Matcher ¶

type Matcher struct {

	// is equal
	IsEqual bool `json:"isEqual,omitempty"`

	// is regex
	// Required: true
	IsRegex *bool `json:"isRegex"`

	// name
	// Required: true
	Name *string `json:"name"`

	// value
	// Required: true
	Value *string `json:"value"`
}

Matcher Matcher matcher

swagger:model matcher

func (*Matcher) ContextValidate ¶

func (m *Matcher) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this matcher based on context it is used

func (*Matcher) MarshalBinary ¶

func (m *Matcher) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Matcher) UnmarshalBinary ¶

func (m *Matcher) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Matcher) Validate ¶

func (m *Matcher) Validate(formats strfmt.Registry) error

Validate validates this matcher

type Matchers ¶

type Matchers []*Matcher

Matchers Matchers matchers

swagger:model matchers

func (Matchers) ContextValidate ¶

func (m Matchers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this matchers based on the context it is used

func (Matchers) Validate ¶

func (m Matchers) Validate(formats strfmt.Registry) error

Validate validates this matchers

type Metadata ¶

type Metadata map[string]bool

Metadata Metadata contains user accesses for a given resource Ex: map[string]bool{"create":true, "delete": true}

swagger:model Metadata

func (Metadata) ContextValidate ¶

func (m Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metadata based on context it is used

func (Metadata) Validate ¶

func (m Metadata) Validate(formats strfmt.Registry) error

Validate validates this metadata

type MetricRequest ¶

type MetricRequest struct {

	// debug
	Debug bool `json:"debug,omitempty"`

	// From Start time in epoch timestamps in milliseconds or relative using Grafana time units.
	// Example: now-1h
	// Required: true
	From *string `json:"from"`

	// queries.refId – Specifies an identifier of the query. Is optional and default to “A”.
	// queries.datasourceId – Specifies the data source to be queried. Each query in the request must have an unique datasourceId.
	// queries.maxDataPoints - Species maximum amount of data points that dashboard panel can render. Is optional and default to 100.
	// queries.intervalMs - Specifies the time interval in milliseconds of time series. Is optional and defaults to 1000.
	// Example: [{"datasource":{"uid":"PD8C576611E62080A"},"format":"table","intervalMs":86400000,"maxDataPoints":1092,"rawSql":"SELECT 1 as valueOne, 2 as valueTwo","refId":"A"}]
	// Required: true
	Queries []JSON `json:"queries"`

	// To End time in epoch timestamps in milliseconds or relative using Grafana time units.
	// Example: now
	// Required: true
	To *string `json:"to"`
}

MetricRequest metric request

swagger:model MetricRequest

func (*MetricRequest) ContextValidate ¶

func (m *MetricRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metric request based on context it is used

func (*MetricRequest) MarshalBinary ¶

func (m *MetricRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MetricRequest) UnmarshalBinary ¶

func (m *MetricRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MetricRequest) Validate ¶

func (m *MetricRequest) Validate(formats strfmt.Registry) error

Validate validates this metric request

type MoveFolderCommand ¶

type MoveFolderCommand struct {

	// parent Uid
	ParentUID string `json:"parentUid,omitempty"`
}

MoveFolderCommand MoveFolderCommand captures the information required by the folder service to move a folder.

swagger:model MoveFolderCommand

func (*MoveFolderCommand) ContextValidate ¶

func (m *MoveFolderCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this move folder command based on context it is used

func (*MoveFolderCommand) MarshalBinary ¶

func (m *MoveFolderCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MoveFolderCommand) UnmarshalBinary ¶

func (m *MoveFolderCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MoveFolderCommand) Validate ¶

func (m *MoveFolderCommand) Validate(formats strfmt.Registry) error

Validate validates this move folder command

type MuteTimeInterval ¶

type MuteTimeInterval struct {

	// name
	Name string `json:"name,omitempty"`

	// time intervals
	TimeIntervals []*TimeIntervalItem `json:"time_intervals"`
}

MuteTimeInterval MuteTimeInterval represents a named set of time intervals for which a route should be muted.

swagger:model MuteTimeInterval

func (*MuteTimeInterval) ContextValidate ¶

func (m *MuteTimeInterval) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this mute time interval based on the context it is used

func (*MuteTimeInterval) MarshalBinary ¶

func (m *MuteTimeInterval) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MuteTimeInterval) UnmarshalBinary ¶

func (m *MuteTimeInterval) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MuteTimeInterval) Validate ¶

func (m *MuteTimeInterval) Validate(formats strfmt.Registry) error

Validate validates this mute time interval

type MuteTimeIntervalExport ¶

type MuteTimeIntervalExport struct {

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// time intervals
	TimeIntervals []*TimeInterval `json:"time_intervals"`
}

MuteTimeIntervalExport mute time interval export

swagger:model MuteTimeIntervalExport

func (*MuteTimeIntervalExport) ContextValidate ¶

func (m *MuteTimeIntervalExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this mute time interval export based on the context it is used

func (*MuteTimeIntervalExport) MarshalBinary ¶

func (m *MuteTimeIntervalExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MuteTimeIntervalExport) UnmarshalBinary ¶

func (m *MuteTimeIntervalExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MuteTimeIntervalExport) Validate ¶

func (m *MuteTimeIntervalExport) Validate(formats strfmt.Registry) error

Validate validates this mute time interval export

type MuteTimings ¶

type MuteTimings []*MuteTimeInterval

MuteTimings mute timings

swagger:model MuteTimings

func (MuteTimings) ContextValidate ¶

func (m MuteTimings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this mute timings based on the context it is used

func (MuteTimings) Validate ¶

func (m MuteTimings) Validate(formats strfmt.Registry) error

Validate validates this mute timings

type Name ¶

type Name struct {

	// country
	Country []string `json:"Country"`

	// ExtraNames contains attributes to be copied, raw, into any marshaled
	// distinguished names. Values override any attributes with the same OID.
	// The ExtraNames field is not populated when parsing, see Names.
	ExtraNames []*AttributeTypeAndValue `json:"ExtraNames"`

	// locality
	Locality []string `json:"Locality"`

	// Names contains all parsed attributes. When parsing distinguished names,
	// this can be used to extract non-standard attributes that are not parsed
	// by this package. When marshaling to RDNSequences, the Names field is
	// ignored, see ExtraNames.
	Names []*AttributeTypeAndValue `json:"Names"`

	// serial number
	SerialNumber string `json:"SerialNumber,omitempty"`

	// street address
	StreetAddress []string `json:"StreetAddress"`
}

Name Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure. If an accurate representation is needed, asn1.Unmarshal the raw subject or issuer as an RDNSequence.

swagger:model Name

func (*Name) ContextValidate ¶

func (m *Name) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this name based on the context it is used

func (*Name) MarshalBinary ¶

func (m *Name) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Name) UnmarshalBinary ¶

func (m *Name) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Name) Validate ¶

func (m *Name) Validate(formats strfmt.Registry) error

Validate validates this name

type NewAPIKeyResult ¶

type NewAPIKeyResult struct {

	// id
	// Example: 1
	ID int64 `json:"id,omitempty"`

	// key
	// Example: glsa_yscW25imSKJIuav8zF37RZmnbiDvB05G_fcaaf58a
	Key string `json:"key,omitempty"`

	// name
	// Example: grafana
	Name string `json:"name,omitempty"`
}

NewAPIKeyResult new Api key result

swagger:model NewApiKeyResult

func (*NewAPIKeyResult) ContextValidate ¶

func (m *NewAPIKeyResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this new Api key result based on context it is used

func (*NewAPIKeyResult) MarshalBinary ¶

func (m *NewAPIKeyResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NewAPIKeyResult) UnmarshalBinary ¶

func (m *NewAPIKeyResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NewAPIKeyResult) Validate ¶

func (m *NewAPIKeyResult) Validate(formats strfmt.Registry) error

Validate validates this new Api key result

type NotFound ¶

type NotFound interface{}

NotFound not found

swagger:model NotFound

type Notice ¶

type Notice struct {

	// inspect
	Inspect InspectType `json:"inspect,omitempty"`

	// Link is an optional link for display in the user interface and can be an
	// absolute URL or a path relative to Grafana's root url.
	Link string `json:"link,omitempty"`

	// severity
	Severity NoticeSeverity `json:"severity,omitempty"`

	// Text is freeform descriptive text for the notice.
	Text string `json:"text,omitempty"`
}

Notice Notice provides a structure for presenting notifications in Grafana's user interface.

swagger:model Notice

func (*Notice) ContextValidate ¶

func (m *Notice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this notice based on the context it is used

func (*Notice) MarshalBinary ¶

func (m *Notice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Notice) UnmarshalBinary ¶

func (m *Notice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Notice) Validate ¶

func (m *Notice) Validate(formats strfmt.Registry) error

Validate validates this notice

type NoticeSeverity ¶

type NoticeSeverity int64

NoticeSeverity NoticeSeverity is a type for the Severity property of a Notice.

swagger:model NoticeSeverity

func (NoticeSeverity) ContextValidate ¶

func (m NoticeSeverity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this notice severity based on context it is used

func (NoticeSeverity) Validate ¶

func (m NoticeSeverity) Validate(formats strfmt.Registry) error

Validate validates this notice severity

type NotificationPolicyExport ¶

type NotificationPolicyExport struct {

	// continue
	Continue bool `json:"continue,omitempty"`

	// group by
	GroupBy []string `json:"group_by"`

	// group interval
	GroupInterval string `json:"group_interval,omitempty"`

	// group wait
	GroupWait string `json:"group_wait,omitempty"`

	// Deprecated. Remove before v1.0 release.
	Match map[string]string `json:"match,omitempty"`

	// match re
	MatchRe MatchRegexps `json:"match_re,omitempty"`

	// matchers
	Matchers Matchers `json:"matchers,omitempty"`

	// mute time intervals
	MuteTimeIntervals []string `json:"mute_time_intervals"`

	// object matchers
	ObjectMatchers ObjectMatchers `json:"object_matchers,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// receiver
	Receiver string `json:"receiver,omitempty"`

	// repeat interval
	RepeatInterval string `json:"repeat_interval,omitempty"`

	// routes
	Routes []*RouteExport `json:"routes"`
}

NotificationPolicyExport NotificationPolicyExport is the provisioned file export of alerting.NotificiationPolicyV1.

swagger:model NotificationPolicyExport

func (*NotificationPolicyExport) ContextValidate ¶

func (m *NotificationPolicyExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this notification policy export based on the context it is used

func (*NotificationPolicyExport) MarshalBinary ¶

func (m *NotificationPolicyExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotificationPolicyExport) UnmarshalBinary ¶

func (m *NotificationPolicyExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotificationPolicyExport) Validate ¶

func (m *NotificationPolicyExport) Validate(formats strfmt.Registry) error

Validate validates this notification policy export

type NotificationTemplate ¶

type NotificationTemplate struct {

	// name
	Name string `json:"name,omitempty"`

	// provenance
	Provenance Provenance `json:"provenance,omitempty"`

	// template
	Template string `json:"template,omitempty"`
}

NotificationTemplate notification template

swagger:model NotificationTemplate

func (*NotificationTemplate) ContextValidate ¶

func (m *NotificationTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this notification template based on the context it is used

func (*NotificationTemplate) MarshalBinary ¶

func (m *NotificationTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotificationTemplate) UnmarshalBinary ¶

func (m *NotificationTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotificationTemplate) Validate ¶

func (m *NotificationTemplate) Validate(formats strfmt.Registry) error

Validate validates this notification template

type NotificationTemplateContent ¶

type NotificationTemplateContent struct {

	// template
	Template string `json:"template,omitempty"`
}

NotificationTemplateContent notification template content

swagger:model NotificationTemplateContent

func (*NotificationTemplateContent) ContextValidate ¶

func (m *NotificationTemplateContent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this notification template content based on context it is used

func (*NotificationTemplateContent) MarshalBinary ¶

func (m *NotificationTemplateContent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotificationTemplateContent) UnmarshalBinary ¶

func (m *NotificationTemplateContent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotificationTemplateContent) Validate ¶

func (m *NotificationTemplateContent) Validate(formats strfmt.Registry) error

Validate validates this notification template content

type NotificationTemplates ¶

type NotificationTemplates []*NotificationTemplate

NotificationTemplates notification templates

swagger:model NotificationTemplates

func (NotificationTemplates) ContextValidate ¶

func (m NotificationTemplates) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this notification templates based on the context it is used

func (NotificationTemplates) Validate ¶

func (m NotificationTemplates) Validate(formats strfmt.Registry) error

Validate validates this notification templates

type OAuth2 ¶

type OAuth2 struct {

	// TLS config
	TLSConfig *TLSConfig `json:"TLSConfig,omitempty"`

	// client id
	ClientID string `json:"client_id,omitempty"`

	// client secret
	ClientSecret Secret `json:"client_secret,omitempty"`

	// client secret file
	ClientSecretFile string `json:"client_secret_file,omitempty"`

	// endpoint params
	EndpointParams map[string]string `json:"endpoint_params,omitempty"`

	// NoProxy contains addresses that should not use a proxy.
	NoProxy string `json:"no_proxy,omitempty"`

	// proxy connect header
	ProxyConnectHeader Header `json:"proxy_connect_header,omitempty"`

	// ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function
	// to determine proxies.
	ProxyFromEnvironment bool `json:"proxy_from_environment,omitempty"`

	// proxy url
	ProxyURL *URL `json:"proxy_url,omitempty"`

	// scopes
	Scopes []string `json:"scopes"`

	// token url
	TokenURL string `json:"token_url,omitempty"`
}

OAuth2 OAuth2 is the oauth2 client configuration.

swagger:model OAuth2

func (*OAuth2) ContextValidate ¶

func (m *OAuth2) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this o auth2 based on the context it is used

func (*OAuth2) MarshalBinary ¶

func (m *OAuth2) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OAuth2) UnmarshalBinary ¶

func (m *OAuth2) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OAuth2) Validate ¶

func (m *OAuth2) Validate(formats strfmt.Registry) error

Validate validates this o auth2

type ObjectIdentifier ¶

type ObjectIdentifier []int64

ObjectIdentifier An ObjectIdentifier represents an ASN.1 OBJECT IDENTIFIER.

swagger:model ObjectIdentifier

func (ObjectIdentifier) ContextValidate ¶

func (m ObjectIdentifier) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this object identifier based on context it is used

func (ObjectIdentifier) Validate ¶

func (m ObjectIdentifier) Validate(formats strfmt.Registry) error

Validate validates this object identifier

type ObjectMatcher ¶

type ObjectMatcher []string

ObjectMatcher ObjectMatcher is a matcher that can be used to filter alerts.

swagger:model ObjectMatcher

func (ObjectMatcher) ContextValidate ¶

func (m ObjectMatcher) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this object matcher based on context it is used

func (ObjectMatcher) Validate ¶

func (m ObjectMatcher) Validate(formats strfmt.Registry) error

Validate validates this object matcher

type ObjectMatchers ¶

type ObjectMatchers []ObjectMatcher

ObjectMatchers object matchers

swagger:model ObjectMatchers

func (ObjectMatchers) ContextValidate ¶

func (m ObjectMatchers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this object matchers based on the context it is used

func (ObjectMatchers) Validate ¶

func (m ObjectMatchers) Validate(formats strfmt.Registry) error

Validate validates this object matchers

type OpsGenieConfig ¶

type OpsGenieConfig struct {

	// actions
	Actions string `json:"actions,omitempty"`

	// api key
	APIKey Secret `json:"api_key,omitempty"`

	// api key file
	APIKeyFile string `json:"api_key_file,omitempty"`

	// api url
	APIURL *URL `json:"api_url,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// details
	Details map[string]string `json:"details,omitempty"`

	// entity
	Entity string `json:"entity,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// note
	Note string `json:"note,omitempty"`

	// priority
	Priority string `json:"priority,omitempty"`

	// responders
	Responders []*OpsGenieConfigResponder `json:"responders"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// source
	Source string `json:"source,omitempty"`

	// tags
	Tags string `json:"tags,omitempty"`

	// update alerts
	UpdateAlerts bool `json:"update_alerts,omitempty"`
}

OpsGenieConfig OpsGenieConfig configures notifications via OpsGenie.

swagger:model OpsGenieConfig

func (*OpsGenieConfig) ContextValidate ¶

func (m *OpsGenieConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ops genie config based on the context it is used

func (*OpsGenieConfig) MarshalBinary ¶

func (m *OpsGenieConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpsGenieConfig) UnmarshalBinary ¶

func (m *OpsGenieConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpsGenieConfig) Validate ¶

func (m *OpsGenieConfig) Validate(formats strfmt.Registry) error

Validate validates this ops genie config

type OpsGenieConfigResponder ¶

type OpsGenieConfigResponder struct {

	// One of those 3 should be filled.
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// team, user, escalation, schedule etc.
	Type string `json:"type,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

OpsGenieConfigResponder ops genie config responder

swagger:model OpsGenieConfigResponder

func (*OpsGenieConfigResponder) ContextValidate ¶

func (m *OpsGenieConfigResponder) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ops genie config responder based on context it is used

func (*OpsGenieConfigResponder) MarshalBinary ¶

func (m *OpsGenieConfigResponder) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpsGenieConfigResponder) UnmarshalBinary ¶

func (m *OpsGenieConfigResponder) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpsGenieConfigResponder) Validate ¶

func (m *OpsGenieConfigResponder) Validate(formats strfmt.Registry) error

Validate validates this ops genie config responder

type OrgDTO ¶

type OrgDTO struct {

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

OrgDTO org DTO

swagger:model OrgDTO

func (*OrgDTO) ContextValidate ¶

func (m *OrgDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this org DTO based on context it is used

func (*OrgDTO) MarshalBinary ¶

func (m *OrgDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgDTO) UnmarshalBinary ¶

func (m *OrgDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgDTO) Validate ¶

func (m *OrgDTO) Validate(formats strfmt.Registry) error

Validate validates this org DTO

type OrgDetailsDTO ¶

type OrgDetailsDTO struct {

	// address
	Address *Address `json:"address,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

OrgDetailsDTO org details DTO

swagger:model OrgDetailsDTO

func (*OrgDetailsDTO) ContextValidate ¶

func (m *OrgDetailsDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org details DTO based on the context it is used

func (*OrgDetailsDTO) MarshalBinary ¶

func (m *OrgDetailsDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgDetailsDTO) UnmarshalBinary ¶

func (m *OrgDetailsDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgDetailsDTO) Validate ¶

func (m *OrgDetailsDTO) Validate(formats strfmt.Registry) error

Validate validates this org details DTO

type OrgUserDTO ¶

type OrgUserDTO struct {

	// access control
	AccessControl map[string]bool `json:"accessControl,omitempty"`

	// auth labels
	AuthLabels []string `json:"authLabels"`

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// is disabled
	IsDisabled bool `json:"isDisabled,omitempty"`

	// is externally synced
	IsExternallySynced bool `json:"isExternallySynced,omitempty"`

	// last seen at
	// Format: date-time
	LastSeenAt strfmt.DateTime `json:"lastSeenAt,omitempty"`

	// last seen at age
	LastSeenAtAge string `json:"lastSeenAtAge,omitempty"`

	// login
	Login string `json:"login,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// role
	Role string `json:"role,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

OrgUserDTO org user DTO

swagger:model OrgUserDTO

func (*OrgUserDTO) ContextValidate ¶

func (m *OrgUserDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this org user DTO based on context it is used

func (*OrgUserDTO) MarshalBinary ¶

func (m *OrgUserDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgUserDTO) UnmarshalBinary ¶

func (m *OrgUserDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgUserDTO) Validate ¶

func (m *OrgUserDTO) Validate(formats strfmt.Registry) error

Validate validates this org user DTO

type OverrideLabels ¶

type OverrideLabels map[string]string

OverrideLabels override the labels type with a map for generation.

The custom marshaling for labels.Labels ends up doing this anyways.

swagger:model overrideLabels

func (OverrideLabels) ContextValidate ¶

func (m OverrideLabels) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this override labels based on context it is used

func (OverrideLabels) Validate ¶

func (m OverrideLabels) Validate(formats strfmt.Registry) error

Validate validates this override labels

type PagerdutyConfig ¶

type PagerdutyConfig struct {

	// class
	Class string `json:"class,omitempty"`

	// client
	Client string `json:"client,omitempty"`

	// client url
	ClientURL string `json:"client_url,omitempty"`

	// component
	Component string `json:"component,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// details
	Details map[string]string `json:"details,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// images
	Images []*PagerdutyImage `json:"images"`

	// links
	Links []*PagerdutyLink `json:"links"`

	// routing key
	RoutingKey Secret `json:"routing_key,omitempty"`

	// routing key file
	RoutingKeyFile string `json:"routing_key_file,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// service key
	ServiceKey Secret `json:"service_key,omitempty"`

	// service key file
	ServiceKeyFile string `json:"service_key_file,omitempty"`

	// severity
	Severity string `json:"severity,omitempty"`

	// source
	Source string `json:"source,omitempty"`

	// url
	URL *URL `json:"url,omitempty"`
}

PagerdutyConfig PagerdutyConfig configures notifications via PagerDuty.

swagger:model PagerdutyConfig

func (*PagerdutyConfig) ContextValidate ¶

func (m *PagerdutyConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this pagerduty config based on the context it is used

func (*PagerdutyConfig) MarshalBinary ¶

func (m *PagerdutyConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PagerdutyConfig) UnmarshalBinary ¶

func (m *PagerdutyConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PagerdutyConfig) Validate ¶

func (m *PagerdutyConfig) Validate(formats strfmt.Registry) error

Validate validates this pagerduty config

type PagerdutyImage ¶

type PagerdutyImage struct {

	// alt
	Alt string `json:"alt,omitempty"`

	// href
	Href string `json:"href,omitempty"`

	// src
	Src string `json:"src,omitempty"`
}

PagerdutyImage PagerdutyImage is an image

swagger:model PagerdutyImage

func (*PagerdutyImage) ContextValidate ¶

func (m *PagerdutyImage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pagerduty image based on context it is used

func (*PagerdutyImage) MarshalBinary ¶

func (m *PagerdutyImage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PagerdutyImage) UnmarshalBinary ¶

func (m *PagerdutyImage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PagerdutyImage) Validate ¶

func (m *PagerdutyImage) Validate(formats strfmt.Registry) error

Validate validates this pagerduty image

type PagerdutyLink struct {

	// href
	Href string `json:"href,omitempty"`

	// text
	Text string `json:"text,omitempty"`
}

PagerdutyLink PagerdutyLink is a link

swagger:model PagerdutyLink

func (*PagerdutyLink) ContextValidate ¶

func (m *PagerdutyLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pagerduty link based on context it is used

func (*PagerdutyLink) MarshalBinary ¶

func (m *PagerdutyLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PagerdutyLink) UnmarshalBinary ¶

func (m *PagerdutyLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PagerdutyLink) Validate ¶

func (m *PagerdutyLink) Validate(formats strfmt.Registry) error

Validate validates this pagerduty link

type Password ¶

type Password string

Password password

swagger:model Password

func (Password) ContextValidate ¶

func (m Password) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this password based on context it is used

func (Password) Validate ¶

func (m Password) Validate(formats strfmt.Registry) error

Validate validates this password

type PatchAnnotationsCmd ¶

type PatchAnnotationsCmd struct {

	// data
	Data JSON `json:"data,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// text
	Text string `json:"text,omitempty"`

	// time
	Time int64 `json:"time,omitempty"`

	// time end
	TimeEnd int64 `json:"timeEnd,omitempty"`
}

PatchAnnotationsCmd patch annotations cmd

swagger:model PatchAnnotationsCmd

func (*PatchAnnotationsCmd) ContextValidate ¶

func (m *PatchAnnotationsCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this patch annotations cmd based on context it is used

func (*PatchAnnotationsCmd) MarshalBinary ¶

func (m *PatchAnnotationsCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchAnnotationsCmd) UnmarshalBinary ¶

func (m *PatchAnnotationsCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchAnnotationsCmd) Validate ¶

func (m *PatchAnnotationsCmd) Validate(formats strfmt.Registry) error

Validate validates this patch annotations cmd

type PatchLibraryElementCommand ¶

type PatchLibraryElementCommand struct {

	// ID of the folder where the library element is stored.
	//
	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// UID of the folder where the library element is stored.
	FolderUID string `json:"folderUid,omitempty"`

	// Kind of element to create, Use 1 for library panels or 2 for c.
	// Description:
	// 1 - library panels
	// 2 - library variables
	// Enum: [1 2]
	Kind int64 `json:"kind,omitempty"`

	// The JSON model for the library element.
	Model interface{} `json:"model,omitempty"`

	// Name of the library element.
	Name string `json:"name,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// Version of the library element you are updating.
	Version int64 `json:"version,omitempty"`
}

PatchLibraryElementCommand PatchLibraryElementCommand is the command for patching a LibraryElement

swagger:model PatchLibraryElementCommand

func (*PatchLibraryElementCommand) ContextValidate ¶

func (m *PatchLibraryElementCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this patch library element command based on context it is used

func (*PatchLibraryElementCommand) MarshalBinary ¶

func (m *PatchLibraryElementCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchLibraryElementCommand) UnmarshalBinary ¶

func (m *PatchLibraryElementCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchLibraryElementCommand) Validate ¶

func (m *PatchLibraryElementCommand) Validate(formats strfmt.Registry) error

Validate validates this patch library element command

type PatchPrefsCmd ¶

type PatchPrefsCmd struct {

	// cookies
	Cookies []CookieType `json:"cookies"`

	// The numerical :id of a favorited dashboard
	HomeDashboardID int64 `json:"homeDashboardId,omitempty"`

	// home dashboard UID
	HomeDashboardUID string `json:"homeDashboardUID,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// query history
	QueryHistory *QueryHistoryPreference `json:"queryHistory,omitempty"`

	// theme
	// Enum: [light dark]
	Theme string `json:"theme,omitempty"`

	// timezone
	// Enum: [utc browser]
	Timezone string `json:"timezone,omitempty"`

	// week start
	WeekStart string `json:"weekStart,omitempty"`
}

PatchPrefsCmd patch prefs cmd

swagger:model PatchPrefsCmd

func (*PatchPrefsCmd) ContextValidate ¶

func (m *PatchPrefsCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this patch prefs cmd based on the context it is used

func (*PatchPrefsCmd) MarshalBinary ¶

func (m *PatchPrefsCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchPrefsCmd) UnmarshalBinary ¶

func (m *PatchPrefsCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchPrefsCmd) Validate ¶

func (m *PatchPrefsCmd) Validate(formats strfmt.Registry) error

Validate validates this patch prefs cmd

type PatchQueryCommentInQueryHistoryCommand ¶

type PatchQueryCommentInQueryHistoryCommand struct {

	// Updated comment
	Comment string `json:"comment,omitempty"`
}

PatchQueryCommentInQueryHistoryCommand PatchQueryCommentInQueryHistoryCommand is the command for updating comment for query in query history

swagger:model PatchQueryCommentInQueryHistoryCommand

func (*PatchQueryCommentInQueryHistoryCommand) ContextValidate ¶

ContextValidate validates this patch query comment in query history command based on context it is used

func (*PatchQueryCommentInQueryHistoryCommand) MarshalBinary ¶

func (m *PatchQueryCommentInQueryHistoryCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchQueryCommentInQueryHistoryCommand) UnmarshalBinary ¶

func (m *PatchQueryCommentInQueryHistoryCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchQueryCommentInQueryHistoryCommand) Validate ¶

Validate validates this patch query comment in query history command

type PeerStatus ¶

type PeerStatus struct {

	// address
	// Required: true
	Address *string `json:"address"`

	// name
	// Required: true
	Name *string `json:"name"`
}

PeerStatus PeerStatus peer status

swagger:model peerStatus

func (*PeerStatus) ContextValidate ¶

func (m *PeerStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this peer status based on context it is used

func (*PeerStatus) MarshalBinary ¶

func (m *PeerStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PeerStatus) UnmarshalBinary ¶

func (m *PeerStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PeerStatus) Validate ¶

func (m *PeerStatus) Validate(formats strfmt.Registry) error

Validate validates this peer status

type Permission ¶

type Permission struct {

	// action
	Action string `json:"action,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// scope
	Scope string `json:"scope,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`
}

Permission Permission is the model for access control permissions.

swagger:model Permission

func (*Permission) ContextValidate ¶

func (m *Permission) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this permission based on context it is used

func (*Permission) MarshalBinary ¶

func (m *Permission) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Permission) UnmarshalBinary ¶

func (m *Permission) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Permission) Validate ¶

func (m *Permission) Validate(formats strfmt.Registry) error

Validate validates this permission

type PermissionDenied ¶

type PermissionDenied interface{}

PermissionDenied permission denied

swagger:model PermissionDenied

type PermissionType ¶

type PermissionType int64

PermissionType permission type

swagger:model PermissionType

func (PermissionType) ContextValidate ¶

func (m PermissionType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this permission type based on context it is used

func (PermissionType) Validate ¶

func (m PermissionType) Validate(formats strfmt.Registry) error

Validate validates this permission type

type Playlist ¶

type Playlist struct {

	// id
	ID int64 `json:"id,omitempty"`

	// interval
	Interval string `json:"interval,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

Playlist Playlist model

swagger:model Playlist

func (*Playlist) ContextValidate ¶

func (m *Playlist) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this playlist based on context it is used

func (*Playlist) MarshalBinary ¶

func (m *Playlist) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Playlist) UnmarshalBinary ¶

func (m *Playlist) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Playlist) Validate ¶

func (m *Playlist) Validate(formats strfmt.Registry) error

Validate validates this playlist

type PlaylistDashboard ¶

type PlaylistDashboard struct {

	// id
	ID int64 `json:"id,omitempty"`

	// order
	Order int64 `json:"order,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uri
	URI string `json:"uri,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

PlaylistDashboard playlist dashboard

swagger:model PlaylistDashboard

func (*PlaylistDashboard) ContextValidate ¶

func (m *PlaylistDashboard) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this playlist dashboard based on context it is used

func (*PlaylistDashboard) MarshalBinary ¶

func (m *PlaylistDashboard) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PlaylistDashboard) UnmarshalBinary ¶

func (m *PlaylistDashboard) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PlaylistDashboard) Validate ¶

func (m *PlaylistDashboard) Validate(formats strfmt.Registry) error

Validate validates this playlist dashboard

type PlaylistItem ¶

type PlaylistItem struct {

	// Id
	ID int64 `json:"Id,omitempty"`

	// playlist Id
	PlaylistID int64 `json:"PlaylistId,omitempty"`

	// order
	Order int64 `json:"order,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

PlaylistItem playlist item

swagger:model PlaylistItem

func (*PlaylistItem) ContextValidate ¶

func (m *PlaylistItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this playlist item based on context it is used

func (*PlaylistItem) MarshalBinary ¶

func (m *PlaylistItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PlaylistItem) UnmarshalBinary ¶

func (m *PlaylistItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PlaylistItem) Validate ¶

func (m *PlaylistItem) Validate(formats strfmt.Registry) error

Validate validates this playlist item

type PlaylistItemDTO ¶

type PlaylistItemDTO struct {

	// Title is an unused property -- it will be removed in the future
	Title string `json:"title,omitempty"`

	// Type of the item.
	Type string `json:"type,omitempty"`

	// Value depends on type and describes the playlist item.
	//
	// dashboard_by_id: The value is an internal numerical identifier set by Grafana. This
	// is not portable as the numerical identifier is non-deterministic between different instances.
	// Will be replaced by dashboard_by_uid in the future. (deprecated)
	// dashboard_by_tag: The value is a tag which is set on any number of dashboards. All
	// dashboards behind the tag will be added to the playlist.
	// dashboard_by_uid: The value is the dashboard UID
	Value string `json:"value,omitempty"`
}

PlaylistItemDTO playlist item DTO

swagger:model PlaylistItemDTO

func (*PlaylistItemDTO) ContextValidate ¶

func (m *PlaylistItemDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this playlist item DTO based on context it is used

func (*PlaylistItemDTO) MarshalBinary ¶

func (m *PlaylistItemDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PlaylistItemDTO) UnmarshalBinary ¶

func (m *PlaylistItemDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PlaylistItemDTO) Validate ¶

func (m *PlaylistItemDTO) Validate(formats strfmt.Registry) error

Validate validates this playlist item DTO

type Playlists ¶

type Playlists []*Playlist

Playlists playlists

swagger:model Playlists

func (Playlists) ContextValidate ¶

func (m Playlists) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this playlists based on the context it is used

func (Playlists) Validate ¶

func (m Playlists) Validate(formats strfmt.Registry) error

Validate validates this playlists

type PostAnnotationOKBody ¶

type PostAnnotationOKBody struct {

	// ID Identifier of the created annotation.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the created annotation.
	// Required: true
	Message *string `json:"message"`
}

PostAnnotationOKBody post annotation Ok body

swagger:model postAnnotationOkBody

func (*PostAnnotationOKBody) ContextValidate ¶

func (m *PostAnnotationOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post annotation Ok body based on context it is used

func (*PostAnnotationOKBody) MarshalBinary ¶

func (m *PostAnnotationOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostAnnotationOKBody) UnmarshalBinary ¶

func (m *PostAnnotationOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostAnnotationOKBody) Validate ¶

func (m *PostAnnotationOKBody) Validate(formats strfmt.Registry) error

Validate validates this post annotation Ok body

type PostAnnotationsCmd ¶

type PostAnnotationsCmd struct {

	// dashboard Id
	DashboardID int64 `json:"dashboardId,omitempty"`

	// dashboard UID
	DashboardUID string `json:"dashboardUID,omitempty"`

	// data
	Data JSON `json:"data,omitempty"`

	// panel Id
	PanelID int64 `json:"panelId,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// text
	// Required: true
	Text *string `json:"text"`

	// time
	Time int64 `json:"time,omitempty"`

	// time end
	TimeEnd int64 `json:"timeEnd,omitempty"`
}

PostAnnotationsCmd post annotations cmd

swagger:model PostAnnotationsCmd

func (*PostAnnotationsCmd) ContextValidate ¶

func (m *PostAnnotationsCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post annotations cmd based on context it is used

func (*PostAnnotationsCmd) MarshalBinary ¶

func (m *PostAnnotationsCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostAnnotationsCmd) UnmarshalBinary ¶

func (m *PostAnnotationsCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostAnnotationsCmd) Validate ¶

func (m *PostAnnotationsCmd) Validate(formats strfmt.Registry) error

Validate validates this post annotations cmd

type PostDashboardOKBody ¶

type PostDashboardOKBody struct {

	// FolderUID The unique identifier (uid) of the folder the dashboard belongs to.
	FolderUID string `json:"folderUid,omitempty"`

	// ID The unique identifier (id) of the created/updated dashboard.
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

	// Status status of the response.
	// Example: success
	// Required: true
	Status *string `json:"status"`

	// Slug The slug of the dashboard.
	// Example: my-dashboard
	// Required: true
	Title *string `json:"title"`

	// UID The unique identifier (uid) of the created/updated dashboard.
	// Example: nHz3SXiiz
	// Required: true
	UID *string `json:"uid"`

	// URL The relative URL for accessing the created/updated dashboard.
	// Example: /d/nHz3SXiiz/my-dashboard
	// Required: true
	URL *string `json:"url"`

	// Version The version of the dashboard.
	// Example: 2
	// Required: true
	Version *int64 `json:"version"`
}

PostDashboardOKBody post dashboard Ok body

swagger:model postDashboardOkBody

func (*PostDashboardOKBody) ContextValidate ¶

func (m *PostDashboardOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post dashboard Ok body based on context it is used

func (*PostDashboardOKBody) MarshalBinary ¶

func (m *PostDashboardOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostDashboardOKBody) UnmarshalBinary ¶

func (m *PostDashboardOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostDashboardOKBody) Validate ¶

func (m *PostDashboardOKBody) Validate(formats strfmt.Registry) error

Validate validates this post dashboard Ok body

type PostGraphiteAnnotationOKBody ¶

type PostGraphiteAnnotationOKBody struct {

	// ID Identifier of the created annotation.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the created annotation.
	// Required: true
	Message *string `json:"message"`
}

PostGraphiteAnnotationOKBody post graphite annotation Ok body

swagger:model postGraphiteAnnotationOkBody

func (*PostGraphiteAnnotationOKBody) ContextValidate ¶

func (m *PostGraphiteAnnotationOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post graphite annotation Ok body based on context it is used

func (*PostGraphiteAnnotationOKBody) MarshalBinary ¶

func (m *PostGraphiteAnnotationOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostGraphiteAnnotationOKBody) UnmarshalBinary ¶

func (m *PostGraphiteAnnotationOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostGraphiteAnnotationOKBody) Validate ¶

func (m *PostGraphiteAnnotationOKBody) Validate(formats strfmt.Registry) error

Validate validates this post graphite annotation Ok body

type PostGraphiteAnnotationsCmd ¶

type PostGraphiteAnnotationsCmd struct {

	// data
	Data string `json:"data,omitempty"`

	// tags
	Tags interface{} `json:"tags,omitempty"`

	// what
	What string `json:"what,omitempty"`

	// when
	When int64 `json:"when,omitempty"`
}

PostGraphiteAnnotationsCmd post graphite annotations cmd

swagger:model PostGraphiteAnnotationsCmd

func (*PostGraphiteAnnotationsCmd) ContextValidate ¶

func (m *PostGraphiteAnnotationsCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post graphite annotations cmd based on context it is used

func (*PostGraphiteAnnotationsCmd) MarshalBinary ¶

func (m *PostGraphiteAnnotationsCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostGraphiteAnnotationsCmd) UnmarshalBinary ¶

func (m *PostGraphiteAnnotationsCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostGraphiteAnnotationsCmd) Validate ¶

func (m *PostGraphiteAnnotationsCmd) Validate(formats strfmt.Registry) error

Validate validates this post graphite annotations cmd

type PostableAPIAlertingConfig ¶

type PostableAPIAlertingConfig struct {

	// global
	Global *GlobalConfig `json:"global,omitempty"`

	// inhibit rules
	InhibitRules []*InhibitRule `json:"inhibit_rules"`

	// MuteTimeIntervals is deprecated and will be removed before Alertmanager 1.0.
	MuteTimeIntervals []*MuteTimeInterval `json:"mute_time_intervals"`

	// Override with our superset receiver type
	Receivers []*PostableAPIReceiver `json:"receivers"`

	// route
	Route *Route `json:"route,omitempty"`

	// templates
	Templates []string `json:"templates"`

	// time intervals
	TimeIntervals []*TimeInterval `json:"time_intervals"`
}

PostableAPIAlertingConfig nolint:revive

swagger:model PostableApiAlertingConfig

func (*PostableAPIAlertingConfig) ContextValidate ¶

func (m *PostableAPIAlertingConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable Api alerting config based on the context it is used

func (*PostableAPIAlertingConfig) MarshalBinary ¶

func (m *PostableAPIAlertingConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostableAPIAlertingConfig) UnmarshalBinary ¶

func (m *PostableAPIAlertingConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostableAPIAlertingConfig) Validate ¶

func (m *PostableAPIAlertingConfig) Validate(formats strfmt.Registry) error

Validate validates this postable Api alerting config

type PostableAPIReceiver ¶

type PostableAPIReceiver struct {

	// discord configs
	DiscordConfigs []*DiscordConfig `json:"discord_configs"`

	// email configs
	EmailConfigs []*EmailConfig `json:"email_configs"`

	// grafana managed receiver configs
	GrafanaManagedReceiverConfigs []*PostableGrafanaReceiver `json:"grafana_managed_receiver_configs"`

	// msteams configs
	MsteamsConfigs []*MSTeamsConfig `json:"msteams_configs"`

	// A unique identifier for this receiver.
	Name string `json:"name,omitempty"`

	// opsgenie configs
	OpsgenieConfigs []*OpsGenieConfig `json:"opsgenie_configs"`

	// pagerduty configs
	PagerdutyConfigs []*PagerdutyConfig `json:"pagerduty_configs"`

	// pushover configs
	PushoverConfigs []*PushoverConfig `json:"pushover_configs"`

	// slack configs
	SlackConfigs []*SlackConfig `json:"slack_configs"`

	// sns configs
	SNSConfigs []*SNSConfig `json:"sns_configs"`

	// telegram configs
	TelegramConfigs []*TelegramConfig `json:"telegram_configs"`

	// victorops configs
	VictoropsConfigs []*VictorOpsConfig `json:"victorops_configs"`

	// webex configs
	WebexConfigs []*WebexConfig `json:"webex_configs"`

	// webhook configs
	WebhookConfigs []*WebhookConfig `json:"webhook_configs"`

	// wechat configs
	WechatConfigs []*WechatConfig `json:"wechat_configs"`
}

PostableAPIReceiver nolint:revive

swagger:model PostableApiReceiver

func (*PostableAPIReceiver) ContextValidate ¶

func (m *PostableAPIReceiver) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable Api receiver based on the context it is used

func (*PostableAPIReceiver) MarshalBinary ¶

func (m *PostableAPIReceiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostableAPIReceiver) UnmarshalBinary ¶

func (m *PostableAPIReceiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostableAPIReceiver) Validate ¶

func (m *PostableAPIReceiver) Validate(formats strfmt.Registry) error

Validate validates this postable Api receiver

type PostableAlert ¶

type PostableAlert struct {

	// annotations
	Annotations LabelSet `json:"annotations,omitempty"`

	// ends at
	// Format: date-time
	// Format: date-time
	EndsAt strfmt.DateTime `json:"endsAt,omitempty"`

	// generator URL
	// Format: uri
	// Format: uri
	GeneratorURL strfmt.URI `json:"generatorURL,omitempty"`

	// labels
	// Required: true
	Labels LabelSet `json:"labels"`

	// starts at
	// Format: date-time
	// Format: date-time
	StartsAt strfmt.DateTime `json:"startsAt,omitempty"`
}

PostableAlert PostableAlert postable alert

swagger:model postableAlert

func (*PostableAlert) ContextValidate ¶

func (m *PostableAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable alert based on the context it is used

func (*PostableAlert) MarshalBinary ¶

func (m *PostableAlert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostableAlert) UnmarshalBinary ¶

func (m *PostableAlert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostableAlert) Validate ¶

func (m *PostableAlert) Validate(formats strfmt.Registry) error

Validate validates this postable alert

type PostableExtendedRuleNode ¶

type PostableExtendedRuleNode struct {

	// alert
	Alert string `json:"alert,omitempty"`

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// expr
	Expr string `json:"expr,omitempty"`

	// for
	For string `json:"for,omitempty"`

	// grafana alert
	GrafanaAlert *PostableGrafanaRule `json:"grafana_alert,omitempty"`

	// keep firing for
	KeepFiringFor string `json:"keep_firing_for,omitempty"`

	// labels
	Labels map[string]string `json:"labels,omitempty"`

	// record
	Record string `json:"record,omitempty"`
}

PostableExtendedRuleNode postable extended rule node

swagger:model PostableExtendedRuleNode

func (*PostableExtendedRuleNode) ContextValidate ¶

func (m *PostableExtendedRuleNode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable extended rule node based on the context it is used

func (*PostableExtendedRuleNode) MarshalBinary ¶

func (m *PostableExtendedRuleNode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostableExtendedRuleNode) UnmarshalBinary ¶

func (m *PostableExtendedRuleNode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostableExtendedRuleNode) Validate ¶

func (m *PostableExtendedRuleNode) Validate(formats strfmt.Registry) error

Validate validates this postable extended rule node

type PostableGrafanaReceiver ¶

type PostableGrafanaReceiver struct {

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// secure settings
	SecureSettings map[string]string `json:"secureSettings,omitempty"`

	// settings
	Settings RawMessage `json:"settings,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

PostableGrafanaReceiver postable grafana receiver

swagger:model PostableGrafanaReceiver

func (*PostableGrafanaReceiver) ContextValidate ¶

func (m *PostableGrafanaReceiver) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this postable grafana receiver based on context it is used

func (*PostableGrafanaReceiver) MarshalBinary ¶

func (m *PostableGrafanaReceiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostableGrafanaReceiver) UnmarshalBinary ¶

func (m *PostableGrafanaReceiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostableGrafanaReceiver) Validate ¶

func (m *PostableGrafanaReceiver) Validate(formats strfmt.Registry) error

Validate validates this postable grafana receiver

type PostableGrafanaRule ¶

type PostableGrafanaRule struct {

	// condition
	Condition string `json:"condition,omitempty"`

	// data
	Data []*AlertQuery `json:"data"`

	// exec err state
	// Enum: [OK Alerting Error]
	ExecErrState string `json:"exec_err_state,omitempty"`

	// is paused
	IsPaused bool `json:"is_paused,omitempty"`

	// no data state
	// Enum: [Alerting NoData OK]
	NoDataState string `json:"no_data_state,omitempty"`

	// notification settings
	NotificationSettings *AlertRuleNotificationSettings `json:"notification_settings,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

PostableGrafanaRule postable grafana rule

swagger:model PostableGrafanaRule

func (*PostableGrafanaRule) ContextValidate ¶

func (m *PostableGrafanaRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this postable grafana rule based on the context it is used

func (*PostableGrafanaRule) MarshalBinary ¶

func (m *PostableGrafanaRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostableGrafanaRule) UnmarshalBinary ¶

func (m *PostableGrafanaRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostableGrafanaRule) Validate ¶

func (m *PostableGrafanaRule) Validate(formats strfmt.Registry) error

Validate validates this postable grafana rule

type Preferences ¶

type Preferences struct {

	// cookie preferences
	CookiePreferences *CookiePreferences `json:"cookiePreferences,omitempty"`

	// ID for the home dashboard. This is deprecated and will be removed in a future version. Use homeDashboardUid instead.
	HomeDashboardID int64 `json:"homeDashboardId,omitempty"`

	// UID for the home dashboard
	HomeDashboardUID string `json:"homeDashboardUID,omitempty"`

	// Selected language (beta)
	Language string `json:"language,omitempty"`

	// query history
	QueryHistory *QueryHistoryPreference `json:"queryHistory,omitempty"`

	// Theme light, dark, empty is default
	Theme string `json:"theme,omitempty"`

	// The timezone selection
	// TODO: this should use the timezone defined in common
	Timezone string `json:"timezone,omitempty"`

	// WeekStart day of the week (sunday, monday, etc)
	WeekStart string `json:"weekStart,omitempty"`
}

Preferences Spec defines user, team or org Grafana preferences

swagger:model Preferences

func (*Preferences) ContextValidate ¶

func (m *Preferences) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preferences based on the context it is used

func (*Preferences) MarshalBinary ¶

func (m *Preferences) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Preferences) UnmarshalBinary ¶

func (m *Preferences) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Preferences) Validate ¶

func (m *Preferences) Validate(formats strfmt.Registry) error

Validate validates this preferences

type PrometheusRemoteWriteTargetJSON ¶

type PrometheusRemoteWriteTargetJSON struct {

	// data source uid
	DataSourceUID string `json:"data_source_uid,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// remote write path
	RemoteWritePath string `json:"remote_write_path,omitempty"`
}

PrometheusRemoteWriteTargetJSON prometheus remote write target JSON

swagger:model PrometheusRemoteWriteTargetJSON

func (*PrometheusRemoteWriteTargetJSON) ContextValidate ¶

func (m *PrometheusRemoteWriteTargetJSON) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this prometheus remote write target JSON based on context it is used

func (*PrometheusRemoteWriteTargetJSON) MarshalBinary ¶

func (m *PrometheusRemoteWriteTargetJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PrometheusRemoteWriteTargetJSON) UnmarshalBinary ¶

func (m *PrometheusRemoteWriteTargetJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PrometheusRemoteWriteTargetJSON) Validate ¶

Validate validates this prometheus remote write target JSON

type Provenance ¶

type Provenance string

Provenance provenance

swagger:model Provenance

func (Provenance) ContextValidate ¶

func (m Provenance) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this provenance based on context it is used

func (Provenance) Validate ¶

func (m Provenance) Validate(formats strfmt.Registry) error

Validate validates this provenance

type ProvisionedAlertRule ¶

type ProvisionedAlertRule struct {

	// annotations
	// Example: {"runbook_url":"https://supercoolrunbook.com/page/13"}
	Annotations map[string]string `json:"annotations,omitempty"`

	// condition
	// Example: A
	// Required: true
	Condition *string `json:"condition"`

	// data
	// Example: [{"datasourceUid":"__expr__","model":{"conditions":[{"evaluator":{"params":[0,0],"type":"gt"},"operator":{"type":"and"},"query":{"params":[]},"reducer":{"params":[],"type":"avg"},"type":"query"}],"datasource":{"type":"__expr__","uid":"__expr__"},"expression":"1 == 1","hide":false,"intervalMs":1000,"maxDataPoints":43200,"refId":"A","type":"math"},"queryType":"","refId":"A","relativeTimeRange":{"from":0,"to":0}}]
	// Required: true
	Data []*AlertQuery `json:"data"`

	// exec err state
	// Required: true
	// Enum: [OK Alerting Error]
	ExecErrState *string `json:"execErrState"`

	// folder UID
	// Example: project_x
	// Required: true
	FolderUID *string `json:"folderUID"`

	// for
	// Required: true
	// Format: duration
	For *strfmt.Duration `json:"for"`

	// id
	ID int64 `json:"id,omitempty"`

	// is paused
	// Example: false
	IsPaused bool `json:"isPaused,omitempty"`

	// labels
	// Example: {"team":"sre-team-1"}
	Labels map[string]string `json:"labels,omitempty"`

	// no data state
	// Required: true
	// Enum: [Alerting NoData OK]
	NoDataState *string `json:"noDataState"`

	// notification settings
	NotificationSettings *AlertRuleNotificationSettings `json:"notification_settings,omitempty"`

	// org ID
	// Required: true
	OrgID *int64 `json:"orgID"`

	// provenance
	Provenance Provenance `json:"provenance,omitempty"`

	// rule group
	// Example: eval_group_1
	// Required: true
	// Max Length: 190
	// Min Length: 1
	RuleGroup *string `json:"ruleGroup"`

	// title
	// Example: Always firing
	// Required: true
	// Max Length: 190
	// Min Length: 1
	Title *string `json:"title"`

	// uid
	// Max Length: 40
	// Min Length: 1
	// Pattern: ^[a-zA-Z0-9-_]+$
	UID string `json:"uid,omitempty"`

	// updated
	// Read Only: true
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`
}

ProvisionedAlertRule provisioned alert rule

swagger:model ProvisionedAlertRule

func (*ProvisionedAlertRule) ContextValidate ¶

func (m *ProvisionedAlertRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this provisioned alert rule based on the context it is used

func (*ProvisionedAlertRule) MarshalBinary ¶

func (m *ProvisionedAlertRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProvisionedAlertRule) UnmarshalBinary ¶

func (m *ProvisionedAlertRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProvisionedAlertRule) Validate ¶

func (m *ProvisionedAlertRule) Validate(formats strfmt.Registry) error

Validate validates this provisioned alert rule

type ProvisionedAlertRules ¶

type ProvisionedAlertRules []*ProvisionedAlertRule

ProvisionedAlertRules provisioned alert rules

swagger:model ProvisionedAlertRules

func (ProvisionedAlertRules) ContextValidate ¶

func (m ProvisionedAlertRules) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this provisioned alert rules based on the context it is used

func (ProvisionedAlertRules) Validate ¶

func (m ProvisionedAlertRules) Validate(formats strfmt.Registry) error

Validate validates this provisioned alert rules

type PublicDashboard ¶

type PublicDashboard struct {

	// access token
	AccessToken string `json:"accessToken,omitempty"`

	// annotations enabled
	AnnotationsEnabled bool `json:"annotationsEnabled,omitempty"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// created by
	CreatedBy int64 `json:"createdBy,omitempty"`

	// dashboard Uid
	DashboardUID string `json:"dashboardUid,omitempty"`

	// is enabled
	IsEnabled bool `json:"isEnabled,omitempty"`

	// recipients
	Recipients []*EmailDTO `json:"recipients"`

	// share
	Share ShareType `json:"share,omitempty"`

	// time selection enabled
	TimeSelectionEnabled bool `json:"timeSelectionEnabled,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`

	// updated by
	UpdatedBy int64 `json:"updatedBy,omitempty"`
}

PublicDashboard public dashboard

swagger:model PublicDashboard

func (*PublicDashboard) ContextValidate ¶

func (m *PublicDashboard) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public dashboard based on the context it is used

func (*PublicDashboard) MarshalBinary ¶

func (m *PublicDashboard) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicDashboard) UnmarshalBinary ¶

func (m *PublicDashboard) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicDashboard) Validate ¶

func (m *PublicDashboard) Validate(formats strfmt.Registry) error

Validate validates this public dashboard

type PublicDashboardDTO ¶

type PublicDashboardDTO struct {

	// access token
	AccessToken string `json:"accessToken,omitempty"`

	// annotations enabled
	AnnotationsEnabled bool `json:"annotationsEnabled,omitempty"`

	// is enabled
	IsEnabled bool `json:"isEnabled,omitempty"`

	// share
	Share ShareType `json:"share,omitempty"`

	// time selection enabled
	TimeSelectionEnabled bool `json:"timeSelectionEnabled,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

PublicDashboardDTO public dashboard DTO

swagger:model PublicDashboardDTO

func (*PublicDashboardDTO) ContextValidate ¶

func (m *PublicDashboardDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public dashboard DTO based on the context it is used

func (*PublicDashboardDTO) MarshalBinary ¶

func (m *PublicDashboardDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicDashboardDTO) UnmarshalBinary ¶

func (m *PublicDashboardDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicDashboardDTO) Validate ¶

func (m *PublicDashboardDTO) Validate(formats strfmt.Registry) error

Validate validates this public dashboard DTO

type PublicDashboardListResponse ¶

type PublicDashboardListResponse struct {

	// access token
	AccessToken string `json:"accessToken,omitempty"`

	// dashboard Uid
	DashboardUID string `json:"dashboardUid,omitempty"`

	// is enabled
	IsEnabled bool `json:"isEnabled,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

PublicDashboardListResponse public dashboard list response

swagger:model PublicDashboardListResponse

func (*PublicDashboardListResponse) ContextValidate ¶

func (m *PublicDashboardListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this public dashboard list response based on context it is used

func (*PublicDashboardListResponse) MarshalBinary ¶

func (m *PublicDashboardListResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicDashboardListResponse) UnmarshalBinary ¶

func (m *PublicDashboardListResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicDashboardListResponse) Validate ¶

func (m *PublicDashboardListResponse) Validate(formats strfmt.Registry) error

Validate validates this public dashboard list response

type PublicDashboardListResponseWithPagination ¶

type PublicDashboardListResponseWithPagination struct {

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// public dashboards
	PublicDashboards []*PublicDashboardListResponse `json:"publicDashboards"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

PublicDashboardListResponseWithPagination public dashboard list response with pagination

swagger:model PublicDashboardListResponseWithPagination

func (*PublicDashboardListResponseWithPagination) ContextValidate ¶

ContextValidate validate this public dashboard list response with pagination based on the context it is used

func (*PublicDashboardListResponseWithPagination) MarshalBinary ¶

func (m *PublicDashboardListResponseWithPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicDashboardListResponseWithPagination) UnmarshalBinary ¶

func (m *PublicDashboardListResponseWithPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicDashboardListResponseWithPagination) Validate ¶

Validate validates this public dashboard list response with pagination

type PublicError ¶

type PublicError struct {

	// Extra Additional information about the error
	Extra interface{} `json:"extra,omitempty"`

	// Message A human readable message
	Message string `json:"message,omitempty"`

	// MessageID A unique identifier for the error
	// Required: true
	MessageID *string `json:"messageId"`

	// StatusCode The HTTP status code returned
	// Required: true
	StatusCode *int64 `json:"statusCode"`
}

PublicError PublicError is derived from Error and only contains information available to the end user.

swagger:model publicError

func (*PublicError) ContextValidate ¶

func (m *PublicError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this public error based on context it is used

func (*PublicError) MarshalBinary ¶

func (m *PublicError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicError) UnmarshalBinary ¶

func (m *PublicError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicError) Validate ¶

func (m *PublicError) Validate(formats strfmt.Registry) error

Validate validates this public error

type PublicKeyAlgorithm ¶

type PublicKeyAlgorithm int64

PublicKeyAlgorithm public key algorithm

swagger:model PublicKeyAlgorithm

func (PublicKeyAlgorithm) ContextValidate ¶

func (m PublicKeyAlgorithm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this public key algorithm based on context it is used

func (PublicKeyAlgorithm) Validate ¶

func (m PublicKeyAlgorithm) Validate(formats strfmt.Registry) error

Validate validates this public key algorithm

type PushoverConfig ¶

type PushoverConfig struct {

	// device
	Device string `json:"device,omitempty"`

	// expire
	Expire string `json:"expire,omitempty"`

	// html
	HTML bool `json:"html,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// priority
	Priority string `json:"priority,omitempty"`

	// retry
	Retry string `json:"retry,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// sound
	Sound string `json:"sound,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// token
	Token Secret `json:"token,omitempty"`

	// token file
	TokenFile string `json:"token_file,omitempty"`

	// ttl
	TTL string `json:"ttl,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// url title
	URLTitle string `json:"url_title,omitempty"`

	// user key
	UserKey Secret `json:"user_key,omitempty"`

	// user key file
	UserKeyFile string `json:"user_key_file,omitempty"`
}

PushoverConfig pushover config

swagger:model PushoverConfig

func (*PushoverConfig) ContextValidate ¶

func (m *PushoverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this pushover config based on the context it is used

func (*PushoverConfig) MarshalBinary ¶

func (m *PushoverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PushoverConfig) UnmarshalBinary ¶

func (m *PushoverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PushoverConfig) Validate ¶

func (m *PushoverConfig) Validate(formats strfmt.Registry) error

Validate validates this pushover config

type QueryDataResponse ¶

type QueryDataResponse struct {

	// results
	Results Responses `json:"results,omitempty"`
}

QueryDataResponse QueryDataResponse contains the results from a QueryDataRequest.

It is the return type of a QueryData call.

swagger:model QueryDataResponse

func (*QueryDataResponse) ContextValidate ¶

func (m *QueryDataResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query data response based on the context it is used

func (*QueryDataResponse) MarshalBinary ¶

func (m *QueryDataResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryDataResponse) UnmarshalBinary ¶

func (m *QueryDataResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryDataResponse) Validate ¶

func (m *QueryDataResponse) Validate(formats strfmt.Registry) error

Validate validates this query data response

type QueryHistoryDTO ¶

type QueryHistoryDTO struct {

	// comment
	Comment string `json:"comment,omitempty"`

	// created at
	CreatedAt int64 `json:"createdAt,omitempty"`

	// created by
	CreatedBy int64 `json:"createdBy,omitempty"`

	// datasource Uid
	DatasourceUID string `json:"datasourceUid,omitempty"`

	// queries
	Queries JSON `json:"queries,omitempty"`

	// starred
	Starred bool `json:"starred,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

QueryHistoryDTO query history DTO

swagger:model QueryHistoryDTO

func (*QueryHistoryDTO) ContextValidate ¶

func (m *QueryHistoryDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this query history DTO based on context it is used

func (*QueryHistoryDTO) MarshalBinary ¶

func (m *QueryHistoryDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryHistoryDTO) UnmarshalBinary ¶

func (m *QueryHistoryDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryHistoryDTO) Validate ¶

func (m *QueryHistoryDTO) Validate(formats strfmt.Registry) error

Validate validates this query history DTO

type QueryHistoryDeleteQueryResponse ¶

type QueryHistoryDeleteQueryResponse struct {

	// id
	ID int64 `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

QueryHistoryDeleteQueryResponse QueryHistoryDeleteQueryResponse is the response struct for deleting a query from query history

swagger:model QueryHistoryDeleteQueryResponse

func (*QueryHistoryDeleteQueryResponse) ContextValidate ¶

func (m *QueryHistoryDeleteQueryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this query history delete query response based on context it is used

func (*QueryHistoryDeleteQueryResponse) MarshalBinary ¶

func (m *QueryHistoryDeleteQueryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryHistoryDeleteQueryResponse) UnmarshalBinary ¶

func (m *QueryHistoryDeleteQueryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryHistoryDeleteQueryResponse) Validate ¶

Validate validates this query history delete query response

type QueryHistoryPreference ¶

type QueryHistoryPreference struct {

	// HomeTab one of: ” | 'query' | 'starred';
	HomeTab string `json:"homeTab,omitempty"`
}

QueryHistoryPreference QueryHistoryPreference defines model for QueryHistoryPreference.

swagger:model QueryHistoryPreference

func (*QueryHistoryPreference) ContextValidate ¶

func (m *QueryHistoryPreference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this query history preference based on context it is used

func (*QueryHistoryPreference) MarshalBinary ¶

func (m *QueryHistoryPreference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryHistoryPreference) UnmarshalBinary ¶

func (m *QueryHistoryPreference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryHistoryPreference) Validate ¶

func (m *QueryHistoryPreference) Validate(formats strfmt.Registry) error

Validate validates this query history preference

type QueryHistoryResponse ¶

type QueryHistoryResponse struct {

	// result
	Result *QueryHistoryDTO `json:"result,omitempty"`
}

QueryHistoryResponse QueryHistoryResponse is a response struct for QueryHistoryDTO

swagger:model QueryHistoryResponse

func (*QueryHistoryResponse) ContextValidate ¶

func (m *QueryHistoryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query history response based on the context it is used

func (*QueryHistoryResponse) MarshalBinary ¶

func (m *QueryHistoryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryHistoryResponse) UnmarshalBinary ¶

func (m *QueryHistoryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryHistoryResponse) Validate ¶

func (m *QueryHistoryResponse) Validate(formats strfmt.Registry) error

Validate validates this query history response

type QueryHistorySearchResponse ¶

type QueryHistorySearchResponse struct {

	// result
	Result *QueryHistorySearchResult `json:"result,omitempty"`
}

QueryHistorySearchResponse query history search response

swagger:model QueryHistorySearchResponse

func (*QueryHistorySearchResponse) ContextValidate ¶

func (m *QueryHistorySearchResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query history search response based on the context it is used

func (*QueryHistorySearchResponse) MarshalBinary ¶

func (m *QueryHistorySearchResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryHistorySearchResponse) UnmarshalBinary ¶

func (m *QueryHistorySearchResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryHistorySearchResponse) Validate ¶

func (m *QueryHistorySearchResponse) Validate(formats strfmt.Registry) error

Validate validates this query history search response

type QueryHistorySearchResult ¶

type QueryHistorySearchResult struct {

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// query history
	QueryHistory []*QueryHistoryDTO `json:"queryHistory"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

QueryHistorySearchResult query history search result

swagger:model QueryHistorySearchResult

func (*QueryHistorySearchResult) ContextValidate ¶

func (m *QueryHistorySearchResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query history search result based on the context it is used

func (*QueryHistorySearchResult) MarshalBinary ¶

func (m *QueryHistorySearchResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryHistorySearchResult) UnmarshalBinary ¶

func (m *QueryHistorySearchResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryHistorySearchResult) Validate ¶

func (m *QueryHistorySearchResult) Validate(formats strfmt.Registry) error

Validate validates this query history search result

type QueryStat ¶

type QueryStat struct {

	// Map values to a display color
	// NOTE: this interface is under development in the frontend... so simple map for now
	Color interface{} `json:"color,omitempty"`

	// Panel Specific Values
	Custom interface{} `json:"custom,omitempty"`

	// decimals
	Decimals uint16 `json:"decimals,omitempty"`

	// Description is human readable field metadata
	Description string `json:"description,omitempty"`

	// DisplayName overrides Grafana default naming, should not be used from a data source
	DisplayName string `json:"displayName,omitempty"`

	// DisplayNameFromDS overrides Grafana default naming strategy.
	DisplayNameFromDS string `json:"displayNameFromDS,omitempty"`

	// Filterable indicates if the Field's data can be filtered by additional calls.
	Filterable bool `json:"filterable,omitempty"`

	// Interval indicates the expected regular step between values in the series.
	// When an interval exists, consumers can identify "missing" values when the expected value is not present.
	// The grafana timeseries visualization will render disconnected values when missing values are found it the time field.
	// The interval uses the same units as the values.  For time.Time, this is defined in milliseconds.
	Interval float64 `json:"interval,omitempty"`

	// The behavior when clicking on a result
	Links []*DataLink `json:"links"`

	// mappings
	Mappings ValueMappings `json:"mappings,omitempty"`

	// max
	Max ConfFloat64 `json:"max,omitempty"`

	// min
	Min ConfFloat64 `json:"min,omitempty"`

	// Alternative to empty string
	NoValue string `json:"noValue,omitempty"`

	// Path is an explicit path to the field in the datasource. When the frame meta includes a path,
	// this will default to `${frame.meta.path}/${field.name}
	//
	// When defined, this value can be used as an identifier within the datasource scope, and
	// may be used as an identifier to update values in a subsequent request
	Path string `json:"path,omitempty"`

	// thresholds
	Thresholds *ThresholdsConfig `json:"thresholds,omitempty"`

	// type
	Type *FieldTypeConfig `json:"type,omitempty"`

	// Numeric Options
	Unit string `json:"unit,omitempty"`

	// value
	Value float64 `json:"value,omitempty"`

	// Writeable indicates that the datasource knows how to update this value
	Writeable bool `json:"writeable,omitempty"`
}

QueryStat QueryStat is used for storing arbitrary statistics metadata related to a query and its result, e.g. total request time, data processing time.

The embedded FieldConfig's display name must be set. It corresponds to the QueryResultMetaStat on the frontend (https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L53).

swagger:model QueryStat

func (*QueryStat) ContextValidate ¶

func (m *QueryStat) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query stat based on the context it is used

func (*QueryStat) MarshalBinary ¶

func (m *QueryStat) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryStat) UnmarshalBinary ¶

func (m *QueryStat) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryStat) Validate ¶

func (m *QueryStat) Validate(formats strfmt.Registry) error

Validate validates this query stat

type QuotaDTO ¶

type QuotaDTO struct {

	// limit
	Limit int64 `json:"limit,omitempty"`

	// org id
	OrgID int64 `json:"org_id,omitempty"`

	// target
	Target string `json:"target,omitempty"`

	// used
	Used int64 `json:"used,omitempty"`

	// user id
	UserID int64 `json:"user_id,omitempty"`
}

QuotaDTO quota DTO

swagger:model QuotaDTO

func (*QuotaDTO) ContextValidate ¶

func (m *QuotaDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this quota DTO based on context it is used

func (*QuotaDTO) MarshalBinary ¶

func (m *QuotaDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QuotaDTO) UnmarshalBinary ¶

func (m *QuotaDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QuotaDTO) Validate ¶

func (m *QuotaDTO) Validate(formats strfmt.Registry) error

Validate validates this quota DTO

type RawMessage ¶

type RawMessage interface{}

RawMessage raw message

swagger:model RawMessage

type Receiver ¶

type Receiver struct {

	// active
	// Required: true
	Active *bool `json:"active"`

	// integrations
	// Required: true
	Integrations []*Integration `json:"integrations"`

	// name
	// Required: true
	Name *string `json:"name"`
}

Receiver Receiver receiver

swagger:model receiver

func (*Receiver) ContextValidate ¶

func (m *Receiver) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this receiver based on the context it is used

func (*Receiver) MarshalBinary ¶

func (m *Receiver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Receiver) UnmarshalBinary ¶

func (m *Receiver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Receiver) Validate ¶

func (m *Receiver) Validate(formats strfmt.Registry) error

Validate validates this receiver

type ReceiverExport ¶

type ReceiverExport struct {

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// settings
	Settings RawMessage `json:"settings,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

ReceiverExport ReceiverExport is the provisioned file export of alerting.ReceiverV1.

swagger:model ReceiverExport

func (*ReceiverExport) ContextValidate ¶

func (m *ReceiverExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this receiver export based on context it is used

func (*ReceiverExport) MarshalBinary ¶

func (m *ReceiverExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReceiverExport) UnmarshalBinary ¶

func (m *ReceiverExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReceiverExport) Validate ¶

func (m *ReceiverExport) Validate(formats strfmt.Registry) error

Validate validates this receiver export

type RecordingRuleJSON ¶

type RecordingRuleJSON struct {

	// active
	Active bool `json:"active,omitempty"`

	// count
	Count bool `json:"count,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// dest data source uid
	DestDataSourceUID string `json:"dest_data_source_uid,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// interval
	Interval int64 `json:"interval,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// prom name
	PromName string `json:"prom_name,omitempty"`

	// queries
	Queries []interface{} `json:"queries"`

	// range
	Range int64 `json:"range,omitempty"`

	// target ref id
	TargetRefID string `json:"target_ref_id,omitempty"`
}

RecordingRuleJSON RecordingRuleJSON is the external representation of a recording rule

swagger:model RecordingRuleJSON

func (*RecordingRuleJSON) ContextValidate ¶

func (m *RecordingRuleJSON) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this recording rule JSON based on context it is used

func (*RecordingRuleJSON) MarshalBinary ¶

func (m *RecordingRuleJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RecordingRuleJSON) UnmarshalBinary ¶

func (m *RecordingRuleJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RecordingRuleJSON) Validate ¶

func (m *RecordingRuleJSON) Validate(formats strfmt.Registry) error

Validate validates this recording rule JSON

type RelativeTimeRange ¶

type RelativeTimeRange struct {

	// from
	From Duration `json:"from,omitempty"`

	// to
	To Duration `json:"to,omitempty"`
}

RelativeTimeRange RelativeTimeRange is the per query start and end time for requests.

swagger:model RelativeTimeRange

func (*RelativeTimeRange) ContextValidate ¶

func (m *RelativeTimeRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this relative time range based on the context it is used

func (*RelativeTimeRange) MarshalBinary ¶

func (m *RelativeTimeRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RelativeTimeRange) UnmarshalBinary ¶

func (m *RelativeTimeRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RelativeTimeRange) Validate ¶

func (m *RelativeTimeRange) Validate(formats strfmt.Registry) error

Validate validates this relative time range

type RelativeTimeRangeExport ¶

type RelativeTimeRangeExport struct {

	// from
	From int64 `json:"from,omitempty"`

	// to
	To int64 `json:"to,omitempty"`
}

RelativeTimeRangeExport relative time range export

swagger:model RelativeTimeRangeExport

func (*RelativeTimeRangeExport) ContextValidate ¶

func (m *RelativeTimeRangeExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this relative time range export based on context it is used

func (*RelativeTimeRangeExport) MarshalBinary ¶

func (m *RelativeTimeRangeExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RelativeTimeRangeExport) UnmarshalBinary ¶

func (m *RelativeTimeRangeExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RelativeTimeRangeExport) Validate ¶

func (m *RelativeTimeRangeExport) Validate(formats strfmt.Registry) error

Validate validates this relative time range export

type Report ¶

type Report struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// dashboards
	Dashboards []*ReportDashboard `json:"dashboards"`

	// enable Csv
	EnableCSV bool `json:"enableCsv,omitempty"`

	// enable dashboard Url
	EnableDashboardURL bool `json:"enableDashboardUrl,omitempty"`

	// formats
	Formats []Type `json:"formats"`

	// id
	ID int64 `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// options
	Options *ReportOptions `json:"options,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// recipients
	Recipients string `json:"recipients,omitempty"`

	// reply to
	ReplyTo string `json:"replyTo,omitempty"`

	// scale factor
	ScaleFactor int64 `json:"scaleFactor,omitempty"`

	// schedule
	Schedule *ReportSchedule `json:"schedule,omitempty"`

	// state
	State State `json:"state,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

Report ConfigDTO is model representation in transfer

swagger:model Report

func (*Report) ContextValidate ¶

func (m *Report) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this report based on the context it is used

func (*Report) MarshalBinary ¶

func (m *Report) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Report) UnmarshalBinary ¶

func (m *Report) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Report) Validate ¶

func (m *Report) Validate(formats strfmt.Registry) error

Validate validates this report

type ReportBrandingOptions ¶

type ReportBrandingOptions struct {

	// email footer link
	EmailFooterLink string `json:"emailFooterLink,omitempty"`

	// email footer mode
	EmailFooterMode string `json:"emailFooterMode,omitempty"`

	// email footer text
	EmailFooterText string `json:"emailFooterText,omitempty"`

	// email logo Url
	EmailLogoURL string `json:"emailLogoUrl,omitempty"`

	// report logo Url
	ReportLogoURL string `json:"reportLogoUrl,omitempty"`
}

ReportBrandingOptions report branding options

swagger:model ReportBrandingOptions

func (*ReportBrandingOptions) ContextValidate ¶

func (m *ReportBrandingOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this report branding options based on context it is used

func (*ReportBrandingOptions) MarshalBinary ¶

func (m *ReportBrandingOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportBrandingOptions) UnmarshalBinary ¶

func (m *ReportBrandingOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportBrandingOptions) Validate ¶

func (m *ReportBrandingOptions) Validate(formats strfmt.Registry) error

Validate validates this report branding options

type ReportDashboard ¶

type ReportDashboard struct {

	// dashboard
	Dashboard *ReportDashboardID `json:"dashboard,omitempty"`

	// report variables
	ReportVariables interface{} `json:"reportVariables,omitempty"`

	// time range
	TimeRange *ReportTimeRange `json:"timeRange,omitempty"`
}

ReportDashboard report dashboard

swagger:model ReportDashboard

func (*ReportDashboard) ContextValidate ¶

func (m *ReportDashboard) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this report dashboard based on the context it is used

func (*ReportDashboard) MarshalBinary ¶

func (m *ReportDashboard) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportDashboard) UnmarshalBinary ¶

func (m *ReportDashboard) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportDashboard) Validate ¶

func (m *ReportDashboard) Validate(formats strfmt.Registry) error

Validate validates this report dashboard

type ReportDashboardID ¶

type ReportDashboardID struct {

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

ReportDashboardID report dashboard ID

swagger:model ReportDashboardID

func (*ReportDashboardID) ContextValidate ¶

func (m *ReportDashboardID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this report dashboard ID based on context it is used

func (*ReportDashboardID) MarshalBinary ¶

func (m *ReportDashboardID) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportDashboardID) UnmarshalBinary ¶

func (m *ReportDashboardID) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportDashboardID) Validate ¶

func (m *ReportDashboardID) Validate(formats strfmt.Registry) error

Validate validates this report dashboard ID

type ReportEmail ¶

type ReportEmail struct {

	// Comma-separated list of emails to which to send the report to.
	Emails string `json:"emails,omitempty"`

	// Send the report to the emails specified in the report. Required if emails is not present.
	ID string `json:"id,omitempty"`

	// Send the report to the emails specified in the report. Required if emails is not present.
	UseEmailsFromReport bool `json:"useEmailsFromReport,omitempty"`
}

ReportEmail report email

swagger:model ReportEmail

func (*ReportEmail) ContextValidate ¶

func (m *ReportEmail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this report email based on context it is used

func (*ReportEmail) MarshalBinary ¶

func (m *ReportEmail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportEmail) UnmarshalBinary ¶

func (m *ReportEmail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportEmail) Validate ¶

func (m *ReportEmail) Validate(formats strfmt.Registry) error

Validate validates this report email

type ReportOptions ¶

type ReportOptions struct {

	// layout
	Layout string `json:"layout,omitempty"`

	// orientation
	Orientation string `json:"orientation,omitempty"`

	// time range
	TimeRange *ReportTimeRange `json:"timeRange,omitempty"`
}

ReportOptions report options

swagger:model ReportOptions

func (*ReportOptions) ContextValidate ¶

func (m *ReportOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this report options based on the context it is used

func (*ReportOptions) MarshalBinary ¶

func (m *ReportOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportOptions) UnmarshalBinary ¶

func (m *ReportOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportOptions) Validate ¶

func (m *ReportOptions) Validate(formats strfmt.Registry) error

Validate validates this report options

type ReportSchedule ¶

type ReportSchedule struct {

	// day of month
	DayOfMonth string `json:"dayOfMonth,omitempty"`

	// end date
	// Format: date-time
	EndDate *strfmt.DateTime `json:"endDate,omitempty"`

	// frequency
	Frequency string `json:"frequency,omitempty"`

	// interval amount
	IntervalAmount int64 `json:"intervalAmount,omitempty"`

	// interval frequency
	IntervalFrequency string `json:"intervalFrequency,omitempty"`

	// start date
	// Format: date-time
	StartDate *strfmt.DateTime `json:"startDate,omitempty"`

	// time zone
	TimeZone string `json:"timeZone,omitempty"`

	// workdays only
	WorkdaysOnly bool `json:"workdaysOnly,omitempty"`
}

ReportSchedule report schedule

swagger:model ReportSchedule

func (*ReportSchedule) ContextValidate ¶

func (m *ReportSchedule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this report schedule based on context it is used

func (*ReportSchedule) MarshalBinary ¶

func (m *ReportSchedule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportSchedule) UnmarshalBinary ¶

func (m *ReportSchedule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportSchedule) Validate ¶

func (m *ReportSchedule) Validate(formats strfmt.Registry) error

Validate validates this report schedule

type ReportSettings ¶

type ReportSettings struct {

	// branding
	Branding *ReportBrandingOptions `json:"branding,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

ReportSettings report settings

swagger:model ReportSettings

func (*ReportSettings) ContextValidate ¶

func (m *ReportSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this report settings based on the context it is used

func (*ReportSettings) MarshalBinary ¶

func (m *ReportSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportSettings) UnmarshalBinary ¶

func (m *ReportSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportSettings) Validate ¶

func (m *ReportSettings) Validate(formats strfmt.Registry) error

Validate validates this report settings

type ReportTimeRange ¶

type ReportTimeRange struct {

	// from
	From string `json:"from,omitempty"`

	// to
	To string `json:"to,omitempty"`
}

ReportTimeRange report time range

swagger:model ReportTimeRange

func (*ReportTimeRange) ContextValidate ¶

func (m *ReportTimeRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this report time range based on context it is used

func (*ReportTimeRange) MarshalBinary ¶

func (m *ReportTimeRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReportTimeRange) UnmarshalBinary ¶

func (m *ReportTimeRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReportTimeRange) Validate ¶

func (m *ReportTimeRange) Validate(formats strfmt.Registry) error

Validate validates this report time range

type ResourcePermissionDTO ¶

type ResourcePermissionDTO struct {

	// actions
	Actions []string `json:"actions"`

	// built in role
	BuiltInRole string `json:"builtInRole,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is inherited
	IsInherited bool `json:"isInherited,omitempty"`

	// is managed
	IsManaged bool `json:"isManaged,omitempty"`

	// is service account
	IsServiceAccount bool `json:"isServiceAccount,omitempty"`

	// permission
	Permission string `json:"permission,omitempty"`

	// role name
	RoleName string `json:"roleName,omitempty"`

	// team
	Team string `json:"team,omitempty"`

	// team avatar Url
	TeamAvatarURL string `json:"teamAvatarUrl,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`

	// user avatar Url
	UserAvatarURL string `json:"userAvatarUrl,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`

	// user login
	UserLogin string `json:"userLogin,omitempty"`
}

ResourcePermissionDTO resource permission DTO

swagger:model resourcePermissionDTO

func (*ResourcePermissionDTO) ContextValidate ¶

func (m *ResourcePermissionDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource permission DTO based on context it is used

func (*ResourcePermissionDTO) MarshalBinary ¶

func (m *ResourcePermissionDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcePermissionDTO) UnmarshalBinary ¶

func (m *ResourcePermissionDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcePermissionDTO) Validate ¶

func (m *ResourcePermissionDTO) Validate(formats strfmt.Registry) error

Validate validates this resource permission DTO

type ResponseDetails ¶

type ResponseDetails struct {

	// msg
	Msg string `json:"msg,omitempty"`
}

ResponseDetails response details

swagger:model ResponseDetails

func (*ResponseDetails) ContextValidate ¶

func (m *ResponseDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this response details based on context it is used

func (*ResponseDetails) MarshalBinary ¶

func (m *ResponseDetails) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResponseDetails) UnmarshalBinary ¶

func (m *ResponseDetails) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResponseDetails) Validate ¶

func (m *ResponseDetails) Validate(formats strfmt.Registry) error

Validate validates this response details

type Responses ¶

type Responses map[string]DataResponse

Responses Responses is a map of RefIDs (Unique Query ID) to DataResponses.

The QueryData method the QueryDataHandler method will set the RefId property on the DataResponses' frames based on these RefIDs.

swagger:model Responses

func (Responses) ContextValidate ¶

func (m Responses) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this responses based on the context it is used

func (Responses) Validate ¶

func (m Responses) Validate(formats strfmt.Registry) error

Validate validates this responses

type RestoreDashboardVersionByIDOKBody ¶

type RestoreDashboardVersionByIDOKBody struct {

	// FolderUID The unique identifier (uid) of the folder the dashboard belongs to.
	FolderUID string `json:"folderUid,omitempty"`

	// ID The unique identifier (id) of the created/updated dashboard.
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

	// Status status of the response.
	// Example: success
	// Required: true
	Status *string `json:"status"`

	// Slug The slug of the dashboard.
	// Example: my-dashboard
	// Required: true
	Title *string `json:"title"`

	// UID The unique identifier (uid) of the created/updated dashboard.
	// Example: nHz3SXiiz
	// Required: true
	UID *string `json:"uid"`

	// URL The relative URL for accessing the created/updated dashboard.
	// Example: /d/nHz3SXiiz/my-dashboard
	// Required: true
	URL *string `json:"url"`

	// Version The version of the dashboard.
	// Example: 2
	// Required: true
	Version *int64 `json:"version"`
}

RestoreDashboardVersionByIDOKBody restore dashboard version by Id Ok body

swagger:model restoreDashboardVersionByIdOkBody

func (*RestoreDashboardVersionByIDOKBody) ContextValidate ¶

func (m *RestoreDashboardVersionByIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this restore dashboard version by Id Ok body based on context it is used

func (*RestoreDashboardVersionByIDOKBody) MarshalBinary ¶

func (m *RestoreDashboardVersionByIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestoreDashboardVersionByIDOKBody) UnmarshalBinary ¶

func (m *RestoreDashboardVersionByIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestoreDashboardVersionByIDOKBody) Validate ¶

Validate validates this restore dashboard version by Id Ok body

type RestoreDashboardVersionByUIDOKBody ¶

type RestoreDashboardVersionByUIDOKBody struct {

	// FolderUID The unique identifier (uid) of the folder the dashboard belongs to.
	FolderUID string `json:"folderUid,omitempty"`

	// ID The unique identifier (id) of the created/updated dashboard.
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

	// Status status of the response.
	// Example: success
	// Required: true
	Status *string `json:"status"`

	// Slug The slug of the dashboard.
	// Example: my-dashboard
	// Required: true
	Title *string `json:"title"`

	// UID The unique identifier (uid) of the created/updated dashboard.
	// Example: nHz3SXiiz
	// Required: true
	UID *string `json:"uid"`

	// URL The relative URL for accessing the created/updated dashboard.
	// Example: /d/nHz3SXiiz/my-dashboard
	// Required: true
	URL *string `json:"url"`

	// Version The version of the dashboard.
	// Example: 2
	// Required: true
	Version *int64 `json:"version"`
}

RestoreDashboardVersionByUIDOKBody restore dashboard version by Uid Ok body

swagger:model restoreDashboardVersionByUidOkBody

func (*RestoreDashboardVersionByUIDOKBody) ContextValidate ¶

func (m *RestoreDashboardVersionByUIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this restore dashboard version by Uid Ok body based on context it is used

func (*RestoreDashboardVersionByUIDOKBody) MarshalBinary ¶

func (m *RestoreDashboardVersionByUIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestoreDashboardVersionByUIDOKBody) UnmarshalBinary ¶

func (m *RestoreDashboardVersionByUIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestoreDashboardVersionByUIDOKBody) Validate ¶

Validate validates this restore dashboard version by Uid Ok body

type RestoreDashboardVersionCommand ¶

type RestoreDashboardVersionCommand struct {

	// version
	Version int64 `json:"version,omitempty"`
}

RestoreDashboardVersionCommand restore dashboard version command

swagger:model RestoreDashboardVersionCommand

func (*RestoreDashboardVersionCommand) ContextValidate ¶

func (m *RestoreDashboardVersionCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this restore dashboard version command based on context it is used

func (*RestoreDashboardVersionCommand) MarshalBinary ¶

func (m *RestoreDashboardVersionCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestoreDashboardVersionCommand) UnmarshalBinary ¶

func (m *RestoreDashboardVersionCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestoreDashboardVersionCommand) Validate ¶

func (m *RestoreDashboardVersionCommand) Validate(formats strfmt.Registry) error

Validate validates this restore dashboard version command

type RetrieveJWKSOKBody ¶

type RetrieveJWKSOKBody struct {

	// keys
	Keys []*JSONWebKey `json:"keys"`
}

RetrieveJWKSOKBody retrieve j w k s Ok body

swagger:model retrieveJWKSOkBody

func (*RetrieveJWKSOKBody) ContextValidate ¶

func (m *RetrieveJWKSOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this retrieve j w k s Ok body based on the context it is used

func (*RetrieveJWKSOKBody) MarshalBinary ¶

func (m *RetrieveJWKSOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RetrieveJWKSOKBody) UnmarshalBinary ¶

func (m *RetrieveJWKSOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RetrieveJWKSOKBody) Validate ¶

func (m *RetrieveJWKSOKBody) Validate(formats strfmt.Registry) error

Validate validates this retrieve j w k s Ok body

type RevokeAuthTokenCmd ¶

type RevokeAuthTokenCmd struct {

	// auth token Id
	AuthTokenID int64 `json:"authTokenId,omitempty"`
}

RevokeAuthTokenCmd revoke auth token cmd

swagger:model RevokeAuthTokenCmd

func (*RevokeAuthTokenCmd) ContextValidate ¶

func (m *RevokeAuthTokenCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this revoke auth token cmd based on context it is used

func (*RevokeAuthTokenCmd) MarshalBinary ¶

func (m *RevokeAuthTokenCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RevokeAuthTokenCmd) UnmarshalBinary ¶

func (m *RevokeAuthTokenCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RevokeAuthTokenCmd) Validate ¶

func (m *RevokeAuthTokenCmd) Validate(formats strfmt.Registry) error

Validate validates this revoke auth token cmd

type RoleAssignmentsDTO ¶

type RoleAssignmentsDTO struct {

	// role uid
	RoleUID string `json:"role_uid,omitempty"`

	// service accounts
	ServiceAccounts []int64 `json:"service_accounts"`

	// teams
	Teams []int64 `json:"teams"`

	// users
	Users []int64 `json:"users"`
}

RoleAssignmentsDTO role assignments DTO

swagger:model RoleAssignmentsDTO

func (*RoleAssignmentsDTO) ContextValidate ¶

func (m *RoleAssignmentsDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this role assignments DTO based on context it is used

func (*RoleAssignmentsDTO) MarshalBinary ¶

func (m *RoleAssignmentsDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RoleAssignmentsDTO) UnmarshalBinary ¶

func (m *RoleAssignmentsDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RoleAssignmentsDTO) Validate ¶

func (m *RoleAssignmentsDTO) Validate(formats strfmt.Registry) error

Validate validates this role assignments DTO

type RoleDTO ¶

type RoleDTO struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// delegatable
	Delegatable bool `json:"delegatable,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// global
	Global bool `json:"global,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// hidden
	Hidden bool `json:"hidden,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// permissions
	Permissions []*Permission `json:"permissions"`

	// uid
	UID string `json:"uid,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

RoleDTO role DTO

swagger:model RoleDTO

func (*RoleDTO) ContextValidate ¶

func (m *RoleDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this role DTO based on the context it is used

func (*RoleDTO) MarshalBinary ¶

func (m *RoleDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RoleDTO) UnmarshalBinary ¶

func (m *RoleDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RoleDTO) Validate ¶

func (m *RoleDTO) Validate(formats strfmt.Registry) error

Validate validates this role DTO

type RolesSearchQuery ¶

type RolesSearchQuery struct {

	// include hidden
	IncludeHidden bool `json:"includeHidden,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// team ids
	TeamIds []int64 `json:"teamIds"`

	// user ids
	UserIds []int64 `json:"userIds"`
}

RolesSearchQuery roles search query

swagger:model RolesSearchQuery

func (*RolesSearchQuery) ContextValidate ¶

func (m *RolesSearchQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this roles search query based on context it is used

func (*RolesSearchQuery) MarshalBinary ¶

func (m *RolesSearchQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolesSearchQuery) UnmarshalBinary ¶

func (m *RolesSearchQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolesSearchQuery) Validate ¶

func (m *RolesSearchQuery) Validate(formats strfmt.Registry) error

Validate validates this roles search query

type Route ¶

type Route struct {

	// continue
	Continue bool `json:"continue,omitempty"`

	// group by
	GroupBy []string `json:"group_by"`

	// group interval
	GroupInterval string `json:"group_interval,omitempty"`

	// group wait
	GroupWait string `json:"group_wait,omitempty"`

	// Deprecated. Remove before v1.0 release.
	Match map[string]string `json:"match,omitempty"`

	// match re
	MatchRe MatchRegexps `json:"match_re,omitempty"`

	// matchers
	Matchers Matchers `json:"matchers,omitempty"`

	// mute time intervals
	MuteTimeIntervals []string `json:"mute_time_intervals"`

	// object matchers
	ObjectMatchers ObjectMatchers `json:"object_matchers,omitempty"`

	// provenance
	Provenance Provenance `json:"provenance,omitempty"`

	// receiver
	Receiver string `json:"receiver,omitempty"`

	// repeat interval
	RepeatInterval string `json:"repeat_interval,omitempty"`

	// routes
	Routes []*Route `json:"routes"`
}

Route A Route is a node that contains definitions of how to handle alerts. This is modified from the upstream alertmanager in that it adds the ObjectMatchers property.

swagger:model Route

func (*Route) ContextValidate ¶

func (m *Route) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this route based on the context it is used

func (*Route) MarshalBinary ¶

func (m *Route) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Route) UnmarshalBinary ¶

func (m *Route) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Route) Validate ¶

func (m *Route) Validate(formats strfmt.Registry) error

Validate validates this route

type RouteExport ¶

type RouteExport struct {

	// continue
	Continue bool `json:"continue,omitempty"`

	// group by
	GroupBy []string `json:"group_by"`

	// group interval
	GroupInterval string `json:"group_interval,omitempty"`

	// group wait
	GroupWait string `json:"group_wait,omitempty"`

	// Deprecated. Remove before v1.0 release.
	Match map[string]string `json:"match,omitempty"`

	// match re
	MatchRe MatchRegexps `json:"match_re,omitempty"`

	// matchers
	Matchers Matchers `json:"matchers,omitempty"`

	// mute time intervals
	MuteTimeIntervals []string `json:"mute_time_intervals"`

	// object matchers
	ObjectMatchers ObjectMatchers `json:"object_matchers,omitempty"`

	// receiver
	Receiver string `json:"receiver,omitempty"`

	// repeat interval
	RepeatInterval string `json:"repeat_interval,omitempty"`

	// routes
	Routes []*RouteExport `json:"routes"`
}

RouteExport RouteExport is the provisioned file export of definitions.Route. This is needed to hide fields that aren't useable in provisioning file format. An alternative would be to define a custom MarshalJSON and MarshalYAML that excludes them.

swagger:model RouteExport

func (*RouteExport) ContextValidate ¶

func (m *RouteExport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this route export based on the context it is used

func (*RouteExport) MarshalBinary ¶

func (m *RouteExport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteExport) UnmarshalBinary ¶

func (m *RouteExport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteExport) Validate ¶

func (m *RouteExport) Validate(formats strfmt.Registry) error

Validate validates this route export

type RuleDiscovery ¶

type RuleDiscovery struct {

	// groups
	// Required: true
	Groups []*RuleGroup `json:"groups"`

	// totals
	Totals map[string]int64 `json:"totals,omitempty"`
}

RuleDiscovery rule discovery

swagger:model RuleDiscovery

func (*RuleDiscovery) ContextValidate ¶

func (m *RuleDiscovery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rule discovery based on the context it is used

func (*RuleDiscovery) MarshalBinary ¶

func (m *RuleDiscovery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RuleDiscovery) UnmarshalBinary ¶

func (m *RuleDiscovery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RuleDiscovery) Validate ¶

func (m *RuleDiscovery) Validate(formats strfmt.Registry) error

Validate validates this rule discovery

type RuleGroup ¶

type RuleGroup struct {

	// evaluation time
	EvaluationTime float64 `json:"evaluationTime,omitempty"`

	// file
	// Required: true
	File *string `json:"file"`

	// interval
	// Required: true
	Interval *float64 `json:"interval"`

	// last evaluation
	// Format: date-time
	LastEvaluation strfmt.DateTime `json:"lastEvaluation,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// In order to preserve rule ordering, while exposing type (alerting or recording)
	// specific properties, both alerting and recording rules are exposed in the
	// same array.
	// Required: true
	Rules []*AlertingRule `json:"rules"`

	// totals
	Totals map[string]int64 `json:"totals,omitempty"`
}

RuleGroup rule group

swagger:model RuleGroup

func (*RuleGroup) ContextValidate ¶

func (m *RuleGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rule group based on the context it is used

func (*RuleGroup) MarshalBinary ¶

func (m *RuleGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RuleGroup) UnmarshalBinary ¶

func (m *RuleGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RuleGroup) Validate ¶

func (m *RuleGroup) Validate(formats strfmt.Registry) error

Validate validates this rule group

type RuleType ¶

type RuleType string

RuleType RuleType models the type of a rule.

swagger:model RuleType

func (RuleType) ContextValidate ¶

func (m RuleType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rule type based on context it is used

func (RuleType) Validate ¶

func (m RuleType) Validate(formats strfmt.Registry) error

Validate validates this rule type

type SNSConfig ¶

type SNSConfig struct {

	// api url
	APIURL string `json:"api_url,omitempty"`

	// attributes
	Attributes map[string]string `json:"attributes,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// phone number
	PhoneNumber string `json:"phone_number,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// sigv4
	Sigv4 *SigV4Config `json:"sigv4,omitempty"`

	// subject
	Subject string `json:"subject,omitempty"`

	// target arn
	TargetArn string `json:"target_arn,omitempty"`

	// topic arn
	TopicArn string `json:"topic_arn,omitempty"`
}

SNSConfig SNS config

swagger:model SNSConfig

func (*SNSConfig) ContextValidate ¶

func (m *SNSConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this SNS config based on the context it is used

func (*SNSConfig) MarshalBinary ¶

func (m *SNSConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SNSConfig) UnmarshalBinary ¶

func (m *SNSConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SNSConfig) Validate ¶

func (m *SNSConfig) Validate(formats strfmt.Registry) error

Validate validates this SNS config

type Sample ¶

type Sample struct {

	// f
	F float64 `json:"F,omitempty"`

	// h
	H *FloatHistogram `json:"H,omitempty"`

	// metric
	Metric Labels `json:"Metric,omitempty"`

	// t
	T int64 `json:"T,omitempty"`
}

Sample Sample is a single sample belonging to a metric. It represents either a float sample or a histogram sample. If H is nil, it is a float sample. Otherwise, it is a histogram sample.

swagger:model Sample

func (*Sample) ContextValidate ¶

func (m *Sample) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sample based on the context it is used

func (*Sample) MarshalBinary ¶

func (m *Sample) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Sample) UnmarshalBinary ¶

func (m *Sample) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Sample) Validate ¶

func (m *Sample) Validate(formats strfmt.Registry) error

Validate validates this sample

type SaveDashboardCommand ¶

type SaveDashboardCommand struct {

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"`

	// dashboard
	Dashboard JSON `json:"dashboard,omitempty"`

	// Deprecated: use FolderUID instead
	FolderID int64 `json:"folderId,omitempty"`

	// folder Uid
	FolderUID string `json:"folderUid,omitempty"`

	// is folder
	IsFolder bool `json:"isFolder,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// overwrite
	Overwrite bool `json:"overwrite,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

SaveDashboardCommand save dashboard command

swagger:model SaveDashboardCommand

func (*SaveDashboardCommand) ContextValidate ¶

func (m *SaveDashboardCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this save dashboard command based on context it is used

func (*SaveDashboardCommand) MarshalBinary ¶

func (m *SaveDashboardCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SaveDashboardCommand) UnmarshalBinary ¶

func (m *SaveDashboardCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SaveDashboardCommand) Validate ¶

func (m *SaveDashboardCommand) Validate(formats strfmt.Registry) error

Validate validates this save dashboard command

type SearchDeviceQueryResult ¶

type SearchDeviceQueryResult struct {

	// devices
	Devices []*DeviceSearchHitDTO `json:"devices"`

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

SearchDeviceQueryResult search device query result

swagger:model SearchDeviceQueryResult

func (*SearchDeviceQueryResult) ContextValidate ¶

func (m *SearchDeviceQueryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search device query result based on the context it is used

func (*SearchDeviceQueryResult) MarshalBinary ¶

func (m *SearchDeviceQueryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchDeviceQueryResult) UnmarshalBinary ¶

func (m *SearchDeviceQueryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchDeviceQueryResult) Validate ¶

func (m *SearchDeviceQueryResult) Validate(formats strfmt.Registry) error

Validate validates this search device query result

type SearchOrgServiceAccountsResult ¶

type SearchOrgServiceAccountsResult struct {

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// service accounts
	ServiceAccounts []*ServiceAccountDTO `json:"serviceAccounts"`

	// It can be used for pagination of the user list
	// E.g. if totalCount is equal to 100 users and
	// the perpage parameter is set to 10 then there are 10 pages of users.
	TotalCount int64 `json:"totalCount,omitempty"`
}

SearchOrgServiceAccountsResult swagger: model

swagger:model SearchOrgServiceAccountsResult

func (*SearchOrgServiceAccountsResult) ContextValidate ¶

func (m *SearchOrgServiceAccountsResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search org service accounts result based on the context it is used

func (*SearchOrgServiceAccountsResult) MarshalBinary ¶

func (m *SearchOrgServiceAccountsResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchOrgServiceAccountsResult) UnmarshalBinary ¶

func (m *SearchOrgServiceAccountsResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchOrgServiceAccountsResult) Validate ¶

func (m *SearchOrgServiceAccountsResult) Validate(formats strfmt.Registry) error

Validate validates this search org service accounts result

type SearchOrgUsersQueryResult ¶

type SearchOrgUsersQueryResult struct {

	// org users
	OrgUsers []*OrgUserDTO `json:"orgUsers"`

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

SearchOrgUsersQueryResult search org users query result

swagger:model SearchOrgUsersQueryResult

func (*SearchOrgUsersQueryResult) ContextValidate ¶

func (m *SearchOrgUsersQueryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search org users query result based on the context it is used

func (*SearchOrgUsersQueryResult) MarshalBinary ¶

func (m *SearchOrgUsersQueryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchOrgUsersQueryResult) UnmarshalBinary ¶

func (m *SearchOrgUsersQueryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchOrgUsersQueryResult) Validate ¶

func (m *SearchOrgUsersQueryResult) Validate(formats strfmt.Registry) error

Validate validates this search org users query result

type SearchResult ¶

type SearchResult struct {

	// result
	Result []*SearchResultItem `json:"result"`
}

SearchResult search result

swagger:model SearchResult

func (*SearchResult) ContextValidate ¶

func (m *SearchResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search result based on the context it is used

func (*SearchResult) MarshalBinary ¶

func (m *SearchResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchResult) UnmarshalBinary ¶

func (m *SearchResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchResult) Validate ¶

func (m *SearchResult) Validate(formats strfmt.Registry) error

Validate validates this search result

type SearchResultItem ¶

type SearchResultItem struct {

	// action
	Action string `json:"action,omitempty"`

	// basic role
	BasicRole string `json:"basicRole,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// role name
	RoleName string `json:"roleName,omitempty"`

	// scope
	Scope string `json:"scope,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

SearchResultItem search result item

swagger:model SearchResultItem

func (*SearchResultItem) ContextValidate ¶

func (m *SearchResultItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search result item based on context it is used

func (*SearchResultItem) MarshalBinary ¶

func (m *SearchResultItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchResultItem) UnmarshalBinary ¶

func (m *SearchResultItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchResultItem) Validate ¶

func (m *SearchResultItem) Validate(formats strfmt.Registry) error

Validate validates this search result item

type SearchTeamQueryResult ¶

type SearchTeamQueryResult struct {

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// teams
	Teams []*TeamDTO `json:"teams"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

SearchTeamQueryResult search team query result

swagger:model SearchTeamQueryResult

func (*SearchTeamQueryResult) ContextValidate ¶

func (m *SearchTeamQueryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search team query result based on the context it is used

func (*SearchTeamQueryResult) MarshalBinary ¶

func (m *SearchTeamQueryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchTeamQueryResult) UnmarshalBinary ¶

func (m *SearchTeamQueryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchTeamQueryResult) Validate ¶

func (m *SearchTeamQueryResult) Validate(formats strfmt.Registry) error

Validate validates this search team query result

type SearchUserQueryResult ¶

type SearchUserQueryResult struct {

	// page
	Page int64 `json:"page,omitempty"`

	// per page
	PerPage int64 `json:"perPage,omitempty"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`

	// users
	Users []*UserSearchHitDTO `json:"users"`
}

SearchUserQueryResult search user query result

swagger:model SearchUserQueryResult

func (*SearchUserQueryResult) ContextValidate ¶

func (m *SearchUserQueryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search user query result based on the context it is used

func (*SearchUserQueryResult) MarshalBinary ¶

func (m *SearchUserQueryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchUserQueryResult) UnmarshalBinary ¶

func (m *SearchUserQueryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchUserQueryResult) Validate ¶

func (m *SearchUserQueryResult) Validate(formats strfmt.Registry) error

Validate validates this search user query result

type Secret ¶

type Secret string

Secret Secret special type for storing secrets.

swagger:model Secret

func (Secret) ContextValidate ¶

func (m Secret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this secret based on context it is used

func (Secret) Validate ¶

func (m Secret) Validate(formats strfmt.Registry) error

Validate validates this secret

type SecretURL ¶

type SecretURL struct {
	URL
}

SecretURL SecretURL is a URL that must not be revealed on marshaling.

swagger:model SecretURL

func (*SecretURL) ContextValidate ¶

func (m *SecretURL) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this secret URL based on the context it is used

func (SecretURL) MarshalJSON ¶

func (m SecretURL) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SecretURL) UnmarshalJSON ¶

func (m *SecretURL) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SecretURL) Validate ¶

func (m *SecretURL) Validate(formats strfmt.Registry) error

Validate validates this secret URL

type ServiceAccountDTO ¶

type ServiceAccountDTO struct {

	// access control
	// Example: {"serviceaccounts:delete":true,"serviceaccounts:read":true,"serviceaccounts:write":true}
	AccessControl map[string]bool `json:"accessControl,omitempty"`

	// avatar Url
	// Example: /avatar/85ec38023d90823d3e5b43ef35646af9
	AvatarURL string `json:"avatarUrl,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is disabled
	// Example: false
	IsDisabled bool `json:"isDisabled,omitempty"`

	// is external
	// Example: false
	IsExternal bool `json:"isExternal,omitempty"`

	// login
	// Example: sa-grafana
	Login string `json:"login,omitempty"`

	// name
	// Example: grafana
	Name string `json:"name,omitempty"`

	// org Id
	// Example: 1
	OrgID int64 `json:"orgId,omitempty"`

	// role
	// Example: Viewer
	Role string `json:"role,omitempty"`

	// tokens
	// Example: 0
	Tokens int64 `json:"tokens,omitempty"`
}

ServiceAccountDTO swagger: model

swagger:model ServiceAccountDTO

func (*ServiceAccountDTO) ContextValidate ¶

func (m *ServiceAccountDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this service account DTO based on context it is used

func (*ServiceAccountDTO) MarshalBinary ¶

func (m *ServiceAccountDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceAccountDTO) UnmarshalBinary ¶

func (m *ServiceAccountDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceAccountDTO) Validate ¶

func (m *ServiceAccountDTO) Validate(formats strfmt.Registry) error

Validate validates this service account DTO

type ServiceAccountProfileDTO ¶

type ServiceAccountProfileDTO struct {

	// access control
	AccessControl map[string]bool `json:"accessControl,omitempty"`

	// avatar Url
	// Example: /avatar/8ea890a677d6a223c591a1beea6ea9d2
	AvatarURL string `json:"avatarUrl,omitempty"`

	// created at
	// Example: 2022-03-21T14:35:33Z
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// id
	// Example: 2
	ID int64 `json:"id,omitempty"`

	// is disabled
	// Example: false
	IsDisabled bool `json:"isDisabled,omitempty"`

	// is external
	// Example: false
	IsExternal bool `json:"isExternal,omitempty"`

	// login
	// Example: sa-grafana
	Login string `json:"login,omitempty"`

	// name
	// Example: test
	Name string `json:"name,omitempty"`

	// org Id
	// Example: 1
	OrgID int64 `json:"orgId,omitempty"`

	// required by
	// Example: grafana-app
	RequiredBy string `json:"requiredBy,omitempty"`

	// role
	// Example: Editor
	Role string `json:"role,omitempty"`

	// teams
	// Example: []
	Teams []string `json:"teams"`

	// tokens
	Tokens int64 `json:"tokens,omitempty"`

	// updated at
	// Example: 2022-03-21T14:35:33Z
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}

ServiceAccountProfileDTO service account profile DTO

swagger:model ServiceAccountProfileDTO

func (*ServiceAccountProfileDTO) ContextValidate ¶

func (m *ServiceAccountProfileDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this service account profile DTO based on context it is used

func (*ServiceAccountProfileDTO) MarshalBinary ¶

func (m *ServiceAccountProfileDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceAccountProfileDTO) UnmarshalBinary ¶

func (m *ServiceAccountProfileDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceAccountProfileDTO) Validate ¶

func (m *ServiceAccountProfileDTO) Validate(formats strfmt.Registry) error

Validate validates this service account profile DTO

type SetHelpFlagOKBody ¶

type SetHelpFlagOKBody struct {

	// help flags1
	HelpFlags1 int64 `json:"helpFlags1,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

SetHelpFlagOKBody set help flag Ok body

swagger:model setHelpFlagOkBody

func (*SetHelpFlagOKBody) ContextValidate ¶

func (m *SetHelpFlagOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set help flag Ok body based on context it is used

func (*SetHelpFlagOKBody) MarshalBinary ¶

func (m *SetHelpFlagOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetHelpFlagOKBody) UnmarshalBinary ¶

func (m *SetHelpFlagOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetHelpFlagOKBody) Validate ¶

func (m *SetHelpFlagOKBody) Validate(formats strfmt.Registry) error

Validate validates this set help flag Ok body

type SetPermissionCommand ¶

type SetPermissionCommand struct {

	// permission
	Permission string `json:"permission,omitempty"`
}

SetPermissionCommand set permission command

swagger:model setPermissionCommand

func (*SetPermissionCommand) ContextValidate ¶

func (m *SetPermissionCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set permission command based on context it is used

func (*SetPermissionCommand) MarshalBinary ¶

func (m *SetPermissionCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetPermissionCommand) UnmarshalBinary ¶

func (m *SetPermissionCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetPermissionCommand) Validate ¶

func (m *SetPermissionCommand) Validate(formats strfmt.Registry) error

Validate validates this set permission command

type SetPermissionsCommand ¶

type SetPermissionsCommand struct {

	// permissions
	Permissions []*SetResourcePermissionCommand `json:"permissions"`
}

SetPermissionsCommand set permissions command

swagger:model setPermissionsCommand

func (*SetPermissionsCommand) ContextValidate ¶

func (m *SetPermissionsCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this set permissions command based on the context it is used

func (*SetPermissionsCommand) MarshalBinary ¶

func (m *SetPermissionsCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetPermissionsCommand) UnmarshalBinary ¶

func (m *SetPermissionsCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetPermissionsCommand) Validate ¶

func (m *SetPermissionsCommand) Validate(formats strfmt.Registry) error

Validate validates this set permissions command

type SetResourcePermissionCommand ¶

type SetResourcePermissionCommand struct {

	// built in role
	BuiltInRole string `json:"builtInRole,omitempty"`

	// permission
	Permission string `json:"permission,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

SetResourcePermissionCommand set resource permission command

swagger:model SetResourcePermissionCommand

func (*SetResourcePermissionCommand) ContextValidate ¶

func (m *SetResourcePermissionCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set resource permission command based on context it is used

func (*SetResourcePermissionCommand) MarshalBinary ¶

func (m *SetResourcePermissionCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetResourcePermissionCommand) UnmarshalBinary ¶

func (m *SetResourcePermissionCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetResourcePermissionCommand) Validate ¶

func (m *SetResourcePermissionCommand) Validate(formats strfmt.Registry) error

Validate validates this set resource permission command

type SetRoleAssignmentsCommand ¶

type SetRoleAssignmentsCommand struct {

	// service accounts
	ServiceAccounts []int64 `json:"service_accounts"`

	// teams
	Teams []int64 `json:"teams"`

	// users
	Users []int64 `json:"users"`
}

SetRoleAssignmentsCommand set role assignments command

swagger:model SetRoleAssignmentsCommand

func (*SetRoleAssignmentsCommand) ContextValidate ¶

func (m *SetRoleAssignmentsCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set role assignments command based on context it is used

func (*SetRoleAssignmentsCommand) MarshalBinary ¶

func (m *SetRoleAssignmentsCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetRoleAssignmentsCommand) UnmarshalBinary ¶

func (m *SetRoleAssignmentsCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetRoleAssignmentsCommand) Validate ¶

func (m *SetRoleAssignmentsCommand) Validate(formats strfmt.Registry) error

Validate validates this set role assignments command

type SetUserRolesCommand ¶

type SetUserRolesCommand struct {

	// global
	Global bool `json:"global,omitempty"`

	// include hidden
	IncludeHidden bool `json:"includeHidden,omitempty"`

	// role uids
	RoleUids []string `json:"roleUids"`
}

SetUserRolesCommand set user roles command

swagger:model SetUserRolesCommand

func (*SetUserRolesCommand) ContextValidate ¶

func (m *SetUserRolesCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set user roles command based on context it is used

func (*SetUserRolesCommand) MarshalBinary ¶

func (m *SetUserRolesCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetUserRolesCommand) UnmarshalBinary ¶

func (m *SetUserRolesCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetUserRolesCommand) Validate ¶

func (m *SetUserRolesCommand) Validate(formats strfmt.Registry) error

Validate validates this set user roles command

type SettingsBag ¶

type SettingsBag map[string]map[string]string

SettingsBag settings bag

swagger:model SettingsBag

func (SettingsBag) ContextValidate ¶

func (m SettingsBag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this settings bag based on context it is used

func (SettingsBag) Validate ¶

func (m SettingsBag) Validate(formats strfmt.Registry) error

Validate validates this settings bag

type ShareType ¶

type ShareType string

ShareType share type

swagger:model ShareType

func (ShareType) ContextValidate ¶

func (m ShareType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this share type based on context it is used

func (ShareType) Validate ¶

func (m ShareType) Validate(formats strfmt.Registry) error

Validate validates this share type

type SigV4Config ¶

type SigV4Config struct {

	// access key
	AccessKey string `json:"AccessKey,omitempty"`

	// profile
	Profile string `json:"Profile,omitempty"`

	// region
	Region string `json:"Region,omitempty"`

	// role a r n
	RoleARN string `json:"RoleARN,omitempty"`

	// secret key
	SecretKey Secret `json:"SecretKey,omitempty"`
}

SigV4Config SigV4Config is the configuration for signing remote write requests with AWS's SigV4 verification process. Empty values will be retrieved using the AWS default credentials chain.

swagger:model SigV4Config

func (*SigV4Config) ContextValidate ¶

func (m *SigV4Config) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sig v4 config based on the context it is used

func (*SigV4Config) MarshalBinary ¶

func (m *SigV4Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SigV4Config) UnmarshalBinary ¶

func (m *SigV4Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SigV4Config) Validate ¶

func (m *SigV4Config) Validate(formats strfmt.Registry) error

Validate validates this sig v4 config

type SignatureAlgorithm ¶

type SignatureAlgorithm int64

SignatureAlgorithm signature algorithm

swagger:model SignatureAlgorithm

func (SignatureAlgorithm) ContextValidate ¶

func (m SignatureAlgorithm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this signature algorithm based on context it is used

func (SignatureAlgorithm) Validate ¶

func (m SignatureAlgorithm) Validate(formats strfmt.Registry) error

Validate validates this signature algorithm

type SilenceStatus ¶

type SilenceStatus struct {

	// state
	// Required: true
	// Enum: [[expired active pending]]
	State *string `json:"state"`
}

SilenceStatus SilenceStatus silence status

swagger:model silenceStatus

func (*SilenceStatus) ContextValidate ¶

func (m *SilenceStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this silence status based on context it is used

func (*SilenceStatus) MarshalBinary ¶

func (m *SilenceStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SilenceStatus) UnmarshalBinary ¶

func (m *SilenceStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SilenceStatus) Validate ¶

func (m *SilenceStatus) Validate(formats strfmt.Registry) error

Validate validates this silence status

type SlackAction ¶

type SlackAction struct {

	// confirm
	Confirm *SlackConfirmationField `json:"confirm,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// style
	Style string `json:"style,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

SlackAction SlackAction configures a single Slack action that is sent with each notification.

See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons for more information.

swagger:model SlackAction

func (*SlackAction) ContextValidate ¶

func (m *SlackAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this slack action based on the context it is used

func (*SlackAction) MarshalBinary ¶

func (m *SlackAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackAction) UnmarshalBinary ¶

func (m *SlackAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackAction) Validate ¶

func (m *SlackAction) Validate(formats strfmt.Registry) error

Validate validates this slack action

type SlackConfig ¶

type SlackConfig struct {

	// actions
	Actions []*SlackAction `json:"actions"`

	// api url
	APIURL *SecretURL `json:"api_url,omitempty"`

	// api url file
	APIURLFile string `json:"api_url_file,omitempty"`

	// callback id
	CallbackID string `json:"callback_id,omitempty"`

	// Slack channel override, (like #other-channel or @username).
	Channel string `json:"channel,omitempty"`

	// color
	Color string `json:"color,omitempty"`

	// fallback
	Fallback string `json:"fallback,omitempty"`

	// fields
	Fields []*SlackField `json:"fields"`

	// footer
	Footer string `json:"footer,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// icon emoji
	IconEmoji string `json:"icon_emoji,omitempty"`

	// icon url
	IconURL string `json:"icon_url,omitempty"`

	// image url
	ImageURL string `json:"image_url,omitempty"`

	// link names
	LinkNames bool `json:"link_names,omitempty"`

	// mrkdwn in
	MrkdwnIn []string `json:"mrkdwn_in"`

	// pretext
	Pretext string `json:"pretext,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// short fields
	ShortFields bool `json:"short_fields,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// thumb url
	ThumbURL string `json:"thumb_url,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// title link
	TitleLink string `json:"title_link,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

SlackConfig SlackConfig configures notifications via Slack.

swagger:model SlackConfig

func (*SlackConfig) ContextValidate ¶

func (m *SlackConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this slack config based on the context it is used

func (*SlackConfig) MarshalBinary ¶

func (m *SlackConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackConfig) UnmarshalBinary ¶

func (m *SlackConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackConfig) Validate ¶

func (m *SlackConfig) Validate(formats strfmt.Registry) error

Validate validates this slack config

type SlackConfirmationField ¶

type SlackConfirmationField struct {

	// dismiss text
	DismissText string `json:"dismiss_text,omitempty"`

	// ok text
	OKText string `json:"ok_text,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

SlackConfirmationField SlackConfirmationField protect users from destructive actions or particularly distinguished decisions by asking them to confirm their button click one more time. See https://api.slack.com/docs/interactive-message-field-guide#confirmation_fields for more information.

swagger:model SlackConfirmationField

func (*SlackConfirmationField) ContextValidate ¶

func (m *SlackConfirmationField) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this slack confirmation field based on context it is used

func (*SlackConfirmationField) MarshalBinary ¶

func (m *SlackConfirmationField) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackConfirmationField) UnmarshalBinary ¶

func (m *SlackConfirmationField) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackConfirmationField) Validate ¶

func (m *SlackConfirmationField) Validate(formats strfmt.Registry) error

Validate validates this slack confirmation field

type SlackField ¶

type SlackField struct {

	// short
	Short bool `json:"short,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

SlackField SlackField configures a single Slack field that is sent with each notification.

Each field must contain a title, value, and optionally, a boolean value to indicate if the field is short enough to be displayed next to other fields designated as short. See https://api.slack.com/docs/message-attachments#fields for more information.

swagger:model SlackField

func (*SlackField) ContextValidate ¶

func (m *SlackField) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this slack field based on context it is used

func (*SlackField) MarshalBinary ¶

func (m *SlackField) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackField) UnmarshalBinary ¶

func (m *SlackField) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackField) Validate ¶

func (m *SlackField) Validate(formats strfmt.Registry) error

Validate validates this slack field

type Span ¶

type Span struct {

	// Length of the span.
	Length uint32 `json:"Length,omitempty"`

	// Gap to previous span (always positive), or starting index for the 1st
	// span (which can be negative).
	Offset int32 `json:"Offset,omitempty"`
}

Span A Span defines a continuous sequence of buckets.

swagger:model Span

func (*Span) ContextValidate ¶

func (m *Span) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this span based on context it is used

func (*Span) MarshalBinary ¶

func (m *Span) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Span) UnmarshalBinary ¶

func (m *Span) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Span) Validate ¶

func (m *Span) Validate(formats strfmt.Registry) error

Validate validates this span

type State ¶

type State string

State state

swagger:model State

func (State) ContextValidate ¶

func (m State) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this state based on context it is used

func (State) Validate ¶

func (m State) Validate(formats strfmt.Registry) error

Validate validates this state

type Status ¶

type Status int64

Status status

swagger:model Status

func (Status) ContextValidate ¶

func (m Status) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this status based on context it is used

func (Status) Validate ¶

func (m Status) Validate(formats strfmt.Registry) error

Validate validates this status

type SuccessResponseBody ¶

type SuccessResponseBody struct {

	// message
	Message string `json:"message,omitempty"`
}

SuccessResponseBody success response body

swagger:model SuccessResponseBody

func (*SuccessResponseBody) ContextValidate ¶

func (m *SuccessResponseBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this success response body based on context it is used

func (*SuccessResponseBody) MarshalBinary ¶

func (m *SuccessResponseBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SuccessResponseBody) UnmarshalBinary ¶

func (m *SuccessResponseBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SuccessResponseBody) Validate ¶

func (m *SuccessResponseBody) Validate(formats strfmt.Registry) error

Validate validates this success response body

type SupportedTransformationTypes ¶

type SupportedTransformationTypes string

SupportedTransformationTypes supported transformation types

swagger:model SupportedTransformationTypes

func (SupportedTransformationTypes) ContextValidate ¶

func (m SupportedTransformationTypes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this supported transformation types based on context it is used

func (SupportedTransformationTypes) Validate ¶

func (m SupportedTransformationTypes) Validate(formats strfmt.Registry) error

Validate validates this supported transformation types

type SyncResult ¶

type SyncResult struct {

	// elapsed
	Elapsed Duration `json:"Elapsed,omitempty"`

	// failed users
	FailedUsers []*FailedUser `json:"FailedUsers"`

	// missing user ids
	MissingUserIds []int64 `json:"MissingUserIds"`

	// started
	// Format: date-time
	Started strfmt.DateTime `json:"Started,omitempty"`

	// updated user ids
	UpdatedUserIds []int64 `json:"UpdatedUserIds"`
}

SyncResult SyncResult holds the result of a sync with LDAP. This gives us information on which users were updated and how.

swagger:model SyncResult

func (*SyncResult) ContextValidate ¶

func (m *SyncResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sync result based on the context it is used

func (*SyncResult) MarshalBinary ¶

func (m *SyncResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SyncResult) UnmarshalBinary ¶

func (m *SyncResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SyncResult) Validate ¶

func (m *SyncResult) Validate(formats strfmt.Registry) error

Validate validates this sync result

type TLSConfig ¶

type TLSConfig struct {

	// Text of the CA cert to use for the targets.
	Ca string `json:"ca,omitempty"`

	// The CA cert to use for the targets.
	CaFile string `json:"ca_file,omitempty"`

	// Text of the client cert file for the targets.
	Cert string `json:"cert,omitempty"`

	// The client cert file for the targets.
	CertFile string `json:"cert_file,omitempty"`

	// Disable target certificate validation.
	InsecureSkipVerify bool `json:"insecure_skip_verify,omitempty"`

	// key
	Key Secret `json:"key,omitempty"`

	// The client key file for the targets.
	KeyFile string `json:"key_file,omitempty"`

	// max version
	MaxVersion TLSVersion `json:"max_version,omitempty"`

	// min version
	MinVersion TLSVersion `json:"min_version,omitempty"`

	// Used to verify the hostname for the targets.
	ServerName string `json:"server_name,omitempty"`
}

TLSConfig TLSConfig configures the options for TLS connections.

swagger:model TLSConfig

func (*TLSConfig) ContextValidate ¶

func (m *TLSConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this TLS config based on the context it is used

func (*TLSConfig) MarshalBinary ¶

func (m *TLSConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TLSConfig) UnmarshalBinary ¶

func (m *TLSConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TLSConfig) Validate ¶

func (m *TLSConfig) Validate(formats strfmt.Registry) error

Validate validates this TLS config

type TLSVersion ¶

type TLSVersion uint16

TLSVersion TLS version

swagger:model TLSVersion

func (TLSVersion) ContextValidate ¶

func (m TLSVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this TLS version based on context it is used

func (TLSVersion) Validate ¶

func (m TLSVersion) Validate(formats strfmt.Registry) error

Validate validates this TLS version

type TagsDTO ¶

type TagsDTO struct {

	// count
	Count int64 `json:"count,omitempty"`

	// tag
	Tag string `json:"tag,omitempty"`
}

TagsDTO TagsDTO is the frontend DTO for Tag.

swagger:model TagsDTO

func (*TagsDTO) ContextValidate ¶

func (m *TagsDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this tags DTO based on context it is used

func (*TagsDTO) MarshalBinary ¶

func (m *TagsDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TagsDTO) UnmarshalBinary ¶

func (m *TagsDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TagsDTO) Validate ¶

func (m *TagsDTO) Validate(formats strfmt.Registry) error

Validate validates this tags DTO

type TeamDTO ¶

type TeamDTO struct {

	// access control
	AccessControl map[string]bool `json:"accessControl,omitempty"`

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// member count
	MemberCount int64 `json:"memberCount,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// permission
	Permission PermissionType `json:"permission,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

TeamDTO team DTO

swagger:model TeamDTO

func (*TeamDTO) ContextValidate ¶

func (m *TeamDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this team DTO based on the context it is used

func (*TeamDTO) MarshalBinary ¶

func (m *TeamDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TeamDTO) UnmarshalBinary ¶

func (m *TeamDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TeamDTO) Validate ¶

func (m *TeamDTO) Validate(formats strfmt.Registry) error

Validate validates this team DTO

type TeamGroupDTO ¶

type TeamGroupDTO struct {

	// group Id
	GroupID string `json:"groupId,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`
}

TeamGroupDTO team group DTO

swagger:model TeamGroupDTO

func (*TeamGroupDTO) ContextValidate ¶

func (m *TeamGroupDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this team group DTO based on context it is used

func (*TeamGroupDTO) MarshalBinary ¶

func (m *TeamGroupDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TeamGroupDTO) UnmarshalBinary ¶

func (m *TeamGroupDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TeamGroupDTO) Validate ¶

func (m *TeamGroupDTO) Validate(formats strfmt.Registry) error

Validate validates this team group DTO

type TeamGroupMapping ¶

type TeamGroupMapping struct {

	// group Id
	GroupID string `json:"groupId,omitempty"`
}

TeamGroupMapping team group mapping

swagger:model TeamGroupMapping

func (*TeamGroupMapping) ContextValidate ¶

func (m *TeamGroupMapping) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this team group mapping based on context it is used

func (*TeamGroupMapping) MarshalBinary ¶

func (m *TeamGroupMapping) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TeamGroupMapping) UnmarshalBinary ¶

func (m *TeamGroupMapping) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TeamGroupMapping) Validate ¶

func (m *TeamGroupMapping) Validate(formats strfmt.Registry) error

Validate validates this team group mapping

type TeamMemberDTO ¶

type TeamMemberDTO struct {

	// auth module
	AuthModule string `json:"auth_module,omitempty"`

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// labels
	Labels []string `json:"labels"`

	// login
	Login string `json:"login,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// permission
	Permission PermissionType `json:"permission,omitempty"`

	// team Id
	TeamID int64 `json:"teamId,omitempty"`

	// team UID
	TeamUID string `json:"teamUID,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

TeamMemberDTO team member DTO

swagger:model TeamMemberDTO

func (*TeamMemberDTO) ContextValidate ¶

func (m *TeamMemberDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this team member DTO based on the context it is used

func (*TeamMemberDTO) MarshalBinary ¶

func (m *TeamMemberDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TeamMemberDTO) UnmarshalBinary ¶

func (m *TeamMemberDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TeamMemberDTO) Validate ¶

func (m *TeamMemberDTO) Validate(formats strfmt.Registry) error

Validate validates this team member DTO

type TelegramConfig ¶

type TelegramConfig struct {

	// api url
	APIURL *URL `json:"api_url,omitempty"`

	// chat
	Chat int64 `json:"chat,omitempty"`

	// disable notifications
	DisableNotifications bool `json:"disable_notifications,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// parse mode
	ParseMode string `json:"parse_mode,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// token
	Token Secret `json:"token,omitempty"`

	// token file
	TokenFile string `json:"token_file,omitempty"`
}

TelegramConfig TelegramConfig configures notifications via Telegram.

swagger:model TelegramConfig

func (*TelegramConfig) ContextValidate ¶

func (m *TelegramConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this telegram config based on the context it is used

func (*TelegramConfig) MarshalBinary ¶

func (m *TelegramConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TelegramConfig) UnmarshalBinary ¶

func (m *TelegramConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TelegramConfig) Validate ¶

func (m *TelegramConfig) Validate(formats strfmt.Registry) error

Validate validates this telegram config

type TempUserDTO ¶

type TempUserDTO struct {

	// code
	Code string `json:"code,omitempty"`

	// created on
	// Format: date-time
	CreatedOn strfmt.DateTime `json:"createdOn,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// email sent
	EmailSent bool `json:"emailSent,omitempty"`

	// email sent on
	// Format: date-time
	EmailSentOn strfmt.DateTime `json:"emailSentOn,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// invited by email
	InvitedByEmail string `json:"invitedByEmail,omitempty"`

	// invited by login
	InvitedByLogin string `json:"invitedByLogin,omitempty"`

	// invited by name
	InvitedByName string `json:"invitedByName,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`

	// status
	Status TempUserStatus `json:"status,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

TempUserDTO temp user DTO

swagger:model TempUserDTO

func (*TempUserDTO) ContextValidate ¶

func (m *TempUserDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this temp user DTO based on the context it is used

func (*TempUserDTO) MarshalBinary ¶

func (m *TempUserDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TempUserDTO) UnmarshalBinary ¶

func (m *TempUserDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TempUserDTO) Validate ¶

func (m *TempUserDTO) Validate(formats strfmt.Registry) error

Validate validates this temp user DTO

type TempUserStatus ¶

type TempUserStatus string

TempUserStatus temp user status

swagger:model TempUserStatus

func (TempUserStatus) ContextValidate ¶

func (m TempUserStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this temp user status based on context it is used

func (TempUserStatus) Validate ¶

func (m TempUserStatus) Validate(formats strfmt.Registry) error

Validate validates this temp user status

type TestReceiverConfigResult ¶

type TestReceiverConfigResult struct {

	// error
	Error string `json:"error,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

TestReceiverConfigResult test receiver config result

swagger:model TestReceiverConfigResult

func (*TestReceiverConfigResult) ContextValidate ¶

func (m *TestReceiverConfigResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this test receiver config result based on context it is used

func (*TestReceiverConfigResult) MarshalBinary ¶

func (m *TestReceiverConfigResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestReceiverConfigResult) UnmarshalBinary ¶

func (m *TestReceiverConfigResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestReceiverConfigResult) Validate ¶

func (m *TestReceiverConfigResult) Validate(formats strfmt.Registry) error

Validate validates this test receiver config result

type TestReceiverResult ¶

type TestReceiverResult struct {

	// grafana managed receiver configs
	GrafanaManagedReceiverConfigs []*TestReceiverConfigResult `json:"grafana_managed_receiver_configs"`

	// name
	Name string `json:"name,omitempty"`
}

TestReceiverResult test receiver result

swagger:model TestReceiverResult

func (*TestReceiverResult) ContextValidate ¶

func (m *TestReceiverResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this test receiver result based on the context it is used

func (*TestReceiverResult) MarshalBinary ¶

func (m *TestReceiverResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestReceiverResult) UnmarshalBinary ¶

func (m *TestReceiverResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestReceiverResult) Validate ¶

func (m *TestReceiverResult) Validate(formats strfmt.Registry) error

Validate validates this test receiver result

type TestReceiversConfigAlertParams ¶

type TestReceiversConfigAlertParams struct {

	// annotations
	Annotations LabelSet `json:"annotations,omitempty"`

	// labels
	Labels LabelSet `json:"labels,omitempty"`
}

TestReceiversConfigAlertParams test receivers config alert params

swagger:model TestReceiversConfigAlertParams

func (*TestReceiversConfigAlertParams) ContextValidate ¶

func (m *TestReceiversConfigAlertParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this test receivers config alert params based on the context it is used

func (*TestReceiversConfigAlertParams) MarshalBinary ¶

func (m *TestReceiversConfigAlertParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestReceiversConfigAlertParams) UnmarshalBinary ¶

func (m *TestReceiversConfigAlertParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestReceiversConfigAlertParams) Validate ¶

func (m *TestReceiversConfigAlertParams) Validate(formats strfmt.Registry) error

Validate validates this test receivers config alert params

type TestTemplatesErrorResult ¶

type TestTemplatesErrorResult struct {

	// Kind of template error that occurred.
	// Enum: [invalid_template execution_error]
	Kind string `json:"kind,omitempty"`

	// Error message.
	Message string `json:"message,omitempty"`

	// Name of the associated template for this error. Will be empty if the Kind is "invalid_template".
	Name string `json:"name,omitempty"`
}

TestTemplatesErrorResult test templates error result

swagger:model TestTemplatesErrorResult

func (*TestTemplatesErrorResult) ContextValidate ¶

func (m *TestTemplatesErrorResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this test templates error result based on context it is used

func (*TestTemplatesErrorResult) MarshalBinary ¶

func (m *TestTemplatesErrorResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestTemplatesErrorResult) UnmarshalBinary ¶

func (m *TestTemplatesErrorResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestTemplatesErrorResult) Validate ¶

func (m *TestTemplatesErrorResult) Validate(formats strfmt.Registry) error

Validate validates this test templates error result

type TestTemplatesResult ¶

type TestTemplatesResult struct {

	// Name of the associated template definition for this result.
	Name string `json:"name,omitempty"`

	// Interpolated value of the template.
	Text string `json:"text,omitempty"`
}

TestTemplatesResult test templates result

swagger:model TestTemplatesResult

func (*TestTemplatesResult) ContextValidate ¶

func (m *TestTemplatesResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this test templates result based on context it is used

func (*TestTemplatesResult) MarshalBinary ¶

func (m *TestTemplatesResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestTemplatesResult) UnmarshalBinary ¶

func (m *TestTemplatesResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestTemplatesResult) Validate ¶

func (m *TestTemplatesResult) Validate(formats strfmt.Registry) error

Validate validates this test templates result

type Threshold ¶

type Threshold struct {

	// color
	Color string `json:"color,omitempty"`

	// state
	State string `json:"state,omitempty"`

	// value
	Value ConfFloat64 `json:"value,omitempty"`
}

Threshold Threshold a single step on the threshold list

swagger:model Threshold

func (*Threshold) ContextValidate ¶

func (m *Threshold) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this threshold based on the context it is used

func (*Threshold) MarshalBinary ¶

func (m *Threshold) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Threshold) UnmarshalBinary ¶

func (m *Threshold) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Threshold) Validate ¶

func (m *Threshold) Validate(formats strfmt.Registry) error

Validate validates this threshold

type ThresholdsConfig ¶

type ThresholdsConfig struct {

	// mode
	Mode ThresholdsMode `json:"mode,omitempty"`

	// Must be sorted by 'value', first value is always -Infinity
	Steps []*Threshold `json:"steps"`
}

ThresholdsConfig ThresholdsConfig setup thresholds

swagger:model ThresholdsConfig

func (*ThresholdsConfig) ContextValidate ¶

func (m *ThresholdsConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this thresholds config based on the context it is used

func (*ThresholdsConfig) MarshalBinary ¶

func (m *ThresholdsConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ThresholdsConfig) UnmarshalBinary ¶

func (m *ThresholdsConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ThresholdsConfig) Validate ¶

func (m *ThresholdsConfig) Validate(formats strfmt.Registry) error

Validate validates this thresholds config

type ThresholdsMode ¶

type ThresholdsMode string

ThresholdsMode ThresholdsMode absolute or percentage

swagger:model ThresholdsMode

func (ThresholdsMode) ContextValidate ¶

func (m ThresholdsMode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this thresholds mode based on context it is used

func (ThresholdsMode) Validate ¶

func (m ThresholdsMode) Validate(formats strfmt.Registry) error

Validate validates this thresholds mode

type TimeInterval ¶

type TimeInterval struct {

	// name
	Name string `json:"name,omitempty"`

	// time intervals
	TimeIntervals []*TimeIntervalItem `json:"time_intervals"`
}

TimeInterval TimeInterval represents a named set of time intervals for which a route should be muted.

swagger:model TimeInterval

func (*TimeInterval) ContextValidate ¶

func (m *TimeInterval) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this time interval based on the context it is used

func (*TimeInterval) MarshalBinary ¶

func (m *TimeInterval) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimeInterval) UnmarshalBinary ¶

func (m *TimeInterval) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeInterval) Validate ¶

func (m *TimeInterval) Validate(formats strfmt.Registry) error

Validate validates this time interval

type TimeIntervalItem ¶

type TimeIntervalItem struct {

	// days of month
	DaysOfMonth []string `json:"days_of_month"`

	// location
	Location string `json:"location,omitempty"`

	// months
	Months []string `json:"months"`

	// times
	Times []*TimeIntervalTimeRange `json:"times"`

	// weekdays
	Weekdays []string `json:"weekdays"`

	// years
	Years []string `json:"years"`
}

TimeIntervalItem time interval item

swagger:model TimeIntervalItem

func (*TimeIntervalItem) ContextValidate ¶

func (m *TimeIntervalItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this time interval item based on the context it is used

func (*TimeIntervalItem) MarshalBinary ¶

func (m *TimeIntervalItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimeIntervalItem) UnmarshalBinary ¶

func (m *TimeIntervalItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeIntervalItem) Validate ¶

func (m *TimeIntervalItem) Validate(formats strfmt.Registry) error

Validate validates this time interval item

type TimeIntervalTimeRange ¶

type TimeIntervalTimeRange struct {

	// end time
	EndTime string `json:"end_time,omitempty"`

	// start time
	StartTime string `json:"start_time,omitempty"`
}

TimeIntervalTimeRange time interval time range

swagger:model TimeIntervalTimeRange

func (*TimeIntervalTimeRange) ContextValidate ¶

func (m *TimeIntervalTimeRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this time interval time range based on context it is used

func (*TimeIntervalTimeRange) MarshalBinary ¶

func (m *TimeIntervalTimeRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimeIntervalTimeRange) UnmarshalBinary ¶

func (m *TimeIntervalTimeRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeIntervalTimeRange) Validate ¶

func (m *TimeIntervalTimeRange) Validate(formats strfmt.Registry) error

Validate validates this time interval time range

type TimeRange ¶

type TimeRange struct {

	// from
	// Format: date-time
	From strfmt.DateTime `json:"from,omitempty"`

	// to
	// Format: date-time
	To strfmt.DateTime `json:"to,omitempty"`
}

TimeRange Redefining this to avoid an import cycle

swagger:model TimeRange

func (*TimeRange) ContextValidate ¶

func (m *TimeRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this time range based on context it is used

func (*TimeRange) MarshalBinary ¶

func (m *TimeRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimeRange) UnmarshalBinary ¶

func (m *TimeRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeRange) Validate ¶

func (m *TimeRange) Validate(formats strfmt.Registry) error

Validate validates this time range

type Token ¶

type Token struct {

	// account
	Account string `json:"account,omitempty"`

	// anonymous ratio
	AnonymousRatio int64 `json:"anonymousRatio,omitempty"`

	// company
	Company string `json:"company,omitempty"`

	// details url
	DetailsURL string `json:"details_url,omitempty"`

	// exp
	Exp int64 `json:"exp,omitempty"`

	// iat
	Iat int64 `json:"iat,omitempty"`

	// included users
	IncludedUsers int64 `json:"included_users,omitempty"`

	// iss
	Iss string `json:"iss,omitempty"`

	// jti
	Jti string `json:"jti,omitempty"`

	// lexp
	Lexp int64 `json:"lexp,omitempty"`

	// lic exp warn days
	LicExpWarnDays int64 `json:"lic_exp_warn_days,omitempty"`

	// lid
	Lid string `json:"lid,omitempty"`

	// limit by
	LimitBy string `json:"limit_by,omitempty"`

	// max concurrent user sessions
	MaxConcurrentUserSessions int64 `json:"max_concurrent_user_sessions,omitempty"`

	// nbf
	Nbf int64 `json:"nbf,omitempty"`

	// prod
	Prod []string `json:"prod"`

	// slug
	Slug string `json:"slug,omitempty"`

	// status
	Status TokenStatus `json:"status,omitempty"`

	// sub
	Sub string `json:"sub,omitempty"`

	// tok exp warn days
	TokExpWarnDays int64 `json:"tok_exp_warn_days,omitempty"`

	// trial
	Trial bool `json:"trial,omitempty"`

	// trial exp
	TrialExp int64 `json:"trial_exp,omitempty"`

	// update days
	UpdateDays int64 `json:"update_days,omitempty"`

	// usage billing
	UsageBilling bool `json:"usage_billing,omitempty"`
}

Token token

swagger:model Token

func (*Token) ContextValidate ¶

func (m *Token) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this token based on the context it is used

func (*Token) MarshalBinary ¶

func (m *Token) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Token) UnmarshalBinary ¶

func (m *Token) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Token) Validate ¶

func (m *Token) Validate(formats strfmt.Registry) error

Validate validates this token

type TokenDTO ¶

type TokenDTO struct {

	// created
	// Example: 2022-03-23T10:31:02Z
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// expiration
	// Example: 2022-03-23T10:31:02Z
	// Format: date-time
	Expiration strfmt.DateTime `json:"expiration,omitempty"`

	// has expired
	// Example: false
	HasExpired bool `json:"hasExpired,omitempty"`

	// id
	// Example: 1
	ID int64 `json:"id,omitempty"`

	// is revoked
	// Example: false
	IsRevoked bool `json:"isRevoked,omitempty"`

	// last used at
	// Example: 2022-03-23T10:31:02Z
	// Format: date-time
	LastUsedAt strfmt.DateTime `json:"lastUsedAt,omitempty"`

	// name
	// Example: grafana
	Name string `json:"name,omitempty"`

	// seconds until expiration
	// Example: 0
	SecondsUntilExpiration float64 `json:"secondsUntilExpiration,omitempty"`
}

TokenDTO token DTO

swagger:model TokenDTO

func (*TokenDTO) ContextValidate ¶

func (m *TokenDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this token DTO based on context it is used

func (*TokenDTO) MarshalBinary ¶

func (m *TokenDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TokenDTO) UnmarshalBinary ¶

func (m *TokenDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TokenDTO) Validate ¶

func (m *TokenDTO) Validate(formats strfmt.Registry) error

Validate validates this token DTO

type TokenStatus ¶

type TokenStatus int64

TokenStatus token status

swagger:model TokenStatus

func (TokenStatus) ContextValidate ¶

func (m TokenStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this token status based on context it is used

func (TokenStatus) Validate ¶

func (m TokenStatus) Validate(formats strfmt.Registry) error

Validate validates this token status

type Transformation ¶

type Transformation struct {

	// expression
	Expression string `json:"expression,omitempty"`

	// field
	Field string `json:"field,omitempty"`

	// map value
	MapValue string `json:"mapValue,omitempty"`

	// type
	// Enum: [regex logfmt]
	Type string `json:"type,omitempty"`
}

Transformation transformation

swagger:model Transformation

func (*Transformation) ContextValidate ¶

func (m *Transformation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this transformation based on context it is used

func (*Transformation) MarshalBinary ¶

func (m *Transformation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Transformation) UnmarshalBinary ¶

func (m *Transformation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Transformation) Validate ¶

func (m *Transformation) Validate(formats strfmt.Registry) error

Validate validates this transformation

type Transformations ¶

type Transformations []*Transformation

Transformations transformations

swagger:model Transformations

func (Transformations) ContextValidate ¶

func (m Transformations) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this transformations based on the context it is used

func (Transformations) Validate ¶

func (m Transformations) Validate(formats strfmt.Registry) error

Validate validates this transformations

type Type ¶

type Type string

Type type

swagger:model Type

func (Type) ContextValidate ¶

func (m Type) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this type based on context it is used

func (Type) Validate ¶

func (m Type) Validate(formats strfmt.Registry) error

Validate validates this type

type URL ¶

type URL struct {

	// force query
	ForceQuery bool `json:"ForceQuery,omitempty"`

	// fragment
	Fragment string `json:"Fragment,omitempty"`

	// host
	Host string `json:"Host,omitempty"`

	// omit host
	OmitHost bool `json:"OmitHost,omitempty"`

	// opaque
	Opaque string `json:"Opaque,omitempty"`

	// path
	Path string `json:"Path,omitempty"`

	// raw fragment
	RawFragment string `json:"RawFragment,omitempty"`

	// raw path
	RawPath string `json:"RawPath,omitempty"`

	// raw query
	RawQuery string `json:"RawQuery,omitempty"`

	// scheme
	Scheme string `json:"Scheme,omitempty"`

	// user
	User Userinfo `json:"User,omitempty"`
}

URL A URL represents a parsed URL (technically, a URI reference).

The general form represented is:

[scheme:][//[userinfo@]host][/]path[?query][#fragment]

URLs that do not start with a slash after the scheme are interpreted as:

scheme:opaque[?query][#fragment]

Note that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/. A consequence is that it is impossible to tell which slashes in the Path were slashes in the raw URL and which were %2f. This distinction is rarely important, but when it is, the code should use the EscapedPath method, which preserves the original encoding of Path.

The RawPath field is an optional field which is only set when the default encoding of Path is different from the escaped path. See the EscapedPath method for more details.

URL's String method uses the EscapedPath method to obtain the path.

swagger:model URL

func (*URL) ContextValidate ¶

func (m *URL) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this URL based on context it is used

func (*URL) MarshalBinary ¶

func (m *URL) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*URL) UnmarshalBinary ¶

func (m *URL) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*URL) Validate ¶

func (m *URL) Validate(formats strfmt.Registry) error

Validate validates this URL

type Unstructured ¶

type Unstructured struct {

	// Object is a JSON compatible map with string, float, int, bool, []interface{},
	// or map[string]interface{} children.
	Object interface{} `json:"Object,omitempty"`
}

Unstructured Unstructured allows objects that do not have Golang structs registered to be manipulated generically.

swagger:model Unstructured

func (*Unstructured) ContextValidate ¶

func (m *Unstructured) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this unstructured based on context it is used

func (*Unstructured) MarshalBinary ¶

func (m *Unstructured) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Unstructured) UnmarshalBinary ¶

func (m *Unstructured) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Unstructured) Validate ¶

func (m *Unstructured) Validate(formats strfmt.Registry) error

Validate validates this unstructured

type UpdateAnnotationsCmd ¶

type UpdateAnnotationsCmd struct {

	// data
	Data JSON `json:"data,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// text
	Text string `json:"text,omitempty"`

	// time
	Time int64 `json:"time,omitempty"`

	// time end
	TimeEnd int64 `json:"timeEnd,omitempty"`
}

UpdateAnnotationsCmd update annotations cmd

swagger:model UpdateAnnotationsCmd

func (*UpdateAnnotationsCmd) ContextValidate ¶

func (m *UpdateAnnotationsCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update annotations cmd based on context it is used

func (*UpdateAnnotationsCmd) MarshalBinary ¶

func (m *UpdateAnnotationsCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateAnnotationsCmd) UnmarshalBinary ¶

func (m *UpdateAnnotationsCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateAnnotationsCmd) Validate ¶

func (m *UpdateAnnotationsCmd) Validate(formats strfmt.Registry) error

Validate validates this update annotations cmd

type UpdateCorrelationCommand ¶

type UpdateCorrelationCommand struct {

	// config
	Config *CorrelationConfigUpdateDTO `json:"config,omitempty"`

	// Optional description of the correlation
	// Example: Logs to Traces
	Description string `json:"description,omitempty"`

	// Optional label identifying the correlation
	// Example: My label
	Label string `json:"label,omitempty"`
}

UpdateCorrelationCommand UpdateCorrelationCommand is the command for updating a correlation

swagger:model UpdateCorrelationCommand

func (*UpdateCorrelationCommand) ContextValidate ¶

func (m *UpdateCorrelationCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update correlation command based on the context it is used

func (*UpdateCorrelationCommand) MarshalBinary ¶

func (m *UpdateCorrelationCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateCorrelationCommand) UnmarshalBinary ¶

func (m *UpdateCorrelationCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateCorrelationCommand) Validate ¶

func (m *UpdateCorrelationCommand) Validate(formats strfmt.Registry) error

Validate validates this update correlation command

type UpdateCorrelationResponseBody ¶

type UpdateCorrelationResponseBody struct {

	// message
	// Example: Correlation updated
	Message string `json:"message,omitempty"`

	// result
	Result *Correlation `json:"result,omitempty"`
}

UpdateCorrelationResponseBody update correlation response body

swagger:model UpdateCorrelationResponseBody

func (*UpdateCorrelationResponseBody) ContextValidate ¶

func (m *UpdateCorrelationResponseBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update correlation response body based on the context it is used

func (*UpdateCorrelationResponseBody) MarshalBinary ¶

func (m *UpdateCorrelationResponseBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateCorrelationResponseBody) UnmarshalBinary ¶

func (m *UpdateCorrelationResponseBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateCorrelationResponseBody) Validate ¶

func (m *UpdateCorrelationResponseBody) Validate(formats strfmt.Registry) error

Validate validates this update correlation response body

type UpdateDashboardACLCommand ¶

type UpdateDashboardACLCommand struct {

	// items
	Items []*DashboardACLUpdateItem `json:"items"`
}

UpdateDashboardACLCommand update dashboard ACL command

swagger:model UpdateDashboardACLCommand

func (*UpdateDashboardACLCommand) ContextValidate ¶

func (m *UpdateDashboardACLCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update dashboard ACL command based on the context it is used

func (*UpdateDashboardACLCommand) MarshalBinary ¶

func (m *UpdateDashboardACLCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateDashboardACLCommand) UnmarshalBinary ¶

func (m *UpdateDashboardACLCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateDashboardACLCommand) Validate ¶

func (m *UpdateDashboardACLCommand) Validate(formats strfmt.Registry) error

Validate validates this update dashboard ACL command

type UpdateDataSourceByIDOKBody ¶

type UpdateDataSourceByIDOKBody struct {

	// datasource
	// Required: true
	Datasource *DataSource `json:"datasource"`

	// ID Identifier of the new data source.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the deleted dashboard.
	// Example: Data source added
	// Required: true
	Message *string `json:"message"`

	// Name of the new data source.
	// Example: My Data source
	// Required: true
	Name *string `json:"name"`
}

UpdateDataSourceByIDOKBody update data source by Id Ok body

swagger:model updateDataSourceByIdOkBody

func (*UpdateDataSourceByIDOKBody) ContextValidate ¶

func (m *UpdateDataSourceByIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update data source by Id Ok body based on the context it is used

func (*UpdateDataSourceByIDOKBody) MarshalBinary ¶

func (m *UpdateDataSourceByIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateDataSourceByIDOKBody) UnmarshalBinary ¶

func (m *UpdateDataSourceByIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateDataSourceByIDOKBody) Validate ¶

func (m *UpdateDataSourceByIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this update data source by Id Ok body

type UpdateDataSourceByUIDOKBody ¶

type UpdateDataSourceByUIDOKBody struct {

	// datasource
	// Required: true
	Datasource *DataSource `json:"datasource"`

	// ID Identifier of the new data source.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the deleted dashboard.
	// Example: Data source added
	// Required: true
	Message *string `json:"message"`

	// Name of the new data source.
	// Example: My Data source
	// Required: true
	Name *string `json:"name"`
}

UpdateDataSourceByUIDOKBody update data source by Uid Ok body

swagger:model updateDataSourceByUidOkBody

func (*UpdateDataSourceByUIDOKBody) ContextValidate ¶

func (m *UpdateDataSourceByUIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update data source by Uid Ok body based on the context it is used

func (*UpdateDataSourceByUIDOKBody) MarshalBinary ¶

func (m *UpdateDataSourceByUIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateDataSourceByUIDOKBody) UnmarshalBinary ¶

func (m *UpdateDataSourceByUIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateDataSourceByUIDOKBody) Validate ¶

func (m *UpdateDataSourceByUIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this update data source by Uid Ok body

type UpdateDataSourceCommand ¶

type UpdateDataSourceCommand struct {

	// access
	Access DsAccess `json:"access,omitempty"`

	// basic auth
	BasicAuth bool `json:"basicAuth,omitempty"`

	// basic auth user
	BasicAuthUser string `json:"basicAuthUser,omitempty"`

	// database
	Database string `json:"database,omitempty"`

	// is default
	IsDefault bool `json:"isDefault,omitempty"`

	// json data
	JSONData JSON `json:"jsonData,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// secure Json data
	SecureJSONData map[string]string `json:"secureJsonData,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// user
	User string `json:"user,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`

	// with credentials
	WithCredentials bool `json:"withCredentials,omitempty"`
}

UpdateDataSourceCommand Also acts as api DTO

swagger:model UpdateDataSourceCommand

func (*UpdateDataSourceCommand) ContextValidate ¶

func (m *UpdateDataSourceCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update data source command based on the context it is used

func (*UpdateDataSourceCommand) MarshalBinary ¶

func (m *UpdateDataSourceCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateDataSourceCommand) UnmarshalBinary ¶

func (m *UpdateDataSourceCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateDataSourceCommand) Validate ¶

func (m *UpdateDataSourceCommand) Validate(formats strfmt.Registry) error

Validate validates this update data source command

type UpdateFolderCommand ¶

type UpdateFolderCommand struct {

	// NewDescription it's an optional parameter used for overriding the existing folder description
	Description string `json:"description,omitempty"`

	// Overwrite only used by the legacy folder implementation
	Overwrite bool `json:"overwrite,omitempty"`

	// NewTitle it's an optional parameter used for overriding the existing folder title
	Title string `json:"title,omitempty"`

	// Version only used by the legacy folder implementation
	Version int64 `json:"version,omitempty"`
}

UpdateFolderCommand UpdateFolderCommand captures the information required by the folder service to update a folder. Use Move to update a folder's parent folder.

swagger:model UpdateFolderCommand

func (*UpdateFolderCommand) ContextValidate ¶

func (m *UpdateFolderCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update folder command based on context it is used

func (*UpdateFolderCommand) MarshalBinary ¶

func (m *UpdateFolderCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateFolderCommand) UnmarshalBinary ¶

func (m *UpdateFolderCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateFolderCommand) Validate ¶

func (m *UpdateFolderCommand) Validate(formats strfmt.Registry) error

Validate validates this update folder command

type UpdateOrgAddressForm ¶

type UpdateOrgAddressForm struct {

	// address1
	Address1 string `json:"address1,omitempty"`

	// address2
	Address2 string `json:"address2,omitempty"`

	// city
	City string `json:"city,omitempty"`

	// country
	Country string `json:"country,omitempty"`

	// state
	State string `json:"state,omitempty"`

	// zipcode
	Zipcode string `json:"zipcode,omitempty"`
}

UpdateOrgAddressForm update org address form

swagger:model UpdateOrgAddressForm

func (*UpdateOrgAddressForm) ContextValidate ¶

func (m *UpdateOrgAddressForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update org address form based on context it is used

func (*UpdateOrgAddressForm) MarshalBinary ¶

func (m *UpdateOrgAddressForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateOrgAddressForm) UnmarshalBinary ¶

func (m *UpdateOrgAddressForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateOrgAddressForm) Validate ¶

func (m *UpdateOrgAddressForm) Validate(formats strfmt.Registry) error

Validate validates this update org address form

type UpdateOrgForm ¶

type UpdateOrgForm struct {

	// name
	Name string `json:"name,omitempty"`
}

UpdateOrgForm update org form

swagger:model UpdateOrgForm

func (*UpdateOrgForm) ContextValidate ¶

func (m *UpdateOrgForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update org form based on context it is used

func (*UpdateOrgForm) MarshalBinary ¶

func (m *UpdateOrgForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateOrgForm) UnmarshalBinary ¶

func (m *UpdateOrgForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateOrgForm) Validate ¶

func (m *UpdateOrgForm) Validate(formats strfmt.Registry) error

Validate validates this update org form

type UpdateOrgUserCommand ¶

type UpdateOrgUserCommand struct {

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`
}

UpdateOrgUserCommand update org user command

swagger:model UpdateOrgUserCommand

func (*UpdateOrgUserCommand) ContextValidate ¶

func (m *UpdateOrgUserCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update org user command based on context it is used

func (*UpdateOrgUserCommand) MarshalBinary ¶

func (m *UpdateOrgUserCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateOrgUserCommand) UnmarshalBinary ¶

func (m *UpdateOrgUserCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateOrgUserCommand) Validate ¶

func (m *UpdateOrgUserCommand) Validate(formats strfmt.Registry) error

Validate validates this update org user command

type UpdatePlaylistCommand ¶

type UpdatePlaylistCommand struct {

	// interval
	Interval string `json:"interval,omitempty"`

	// items
	Items []*PlaylistItem `json:"items"`

	// name
	Name string `json:"name,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

UpdatePlaylistCommand update playlist command

swagger:model UpdatePlaylistCommand

func (*UpdatePlaylistCommand) ContextValidate ¶

func (m *UpdatePlaylistCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update playlist command based on the context it is used

func (*UpdatePlaylistCommand) MarshalBinary ¶

func (m *UpdatePlaylistCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdatePlaylistCommand) UnmarshalBinary ¶

func (m *UpdatePlaylistCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdatePlaylistCommand) Validate ¶

func (m *UpdatePlaylistCommand) Validate(formats strfmt.Registry) error

Validate validates this update playlist command

type UpdatePrefsCmd ¶

type UpdatePrefsCmd struct {

	// cookies
	Cookies []CookieType `json:"cookies"`

	// The numerical :id of a favorited dashboard
	HomeDashboardID int64 `json:"homeDashboardId,omitempty"`

	// home dashboard UID
	HomeDashboardUID string `json:"homeDashboardUID,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// query history
	QueryHistory *QueryHistoryPreference `json:"queryHistory,omitempty"`

	// theme
	// Enum: [light dark system]
	Theme string `json:"theme,omitempty"`

	// timezone
	// Enum: [utc browser]
	Timezone string `json:"timezone,omitempty"`

	// week start
	WeekStart string `json:"weekStart,omitempty"`
}

UpdatePrefsCmd update prefs cmd

swagger:model UpdatePrefsCmd

func (*UpdatePrefsCmd) ContextValidate ¶

func (m *UpdatePrefsCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update prefs cmd based on the context it is used

func (*UpdatePrefsCmd) MarshalBinary ¶

func (m *UpdatePrefsCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdatePrefsCmd) UnmarshalBinary ¶

func (m *UpdatePrefsCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdatePrefsCmd) Validate ¶

func (m *UpdatePrefsCmd) Validate(formats strfmt.Registry) error

Validate validates this update prefs cmd

type UpdateProviderSettingsParamsBody ¶

type UpdateProviderSettingsParamsBody struct {

	// id
	ID string `json:"id,omitempty"`

	// provider
	Provider string `json:"provider,omitempty"`

	// settings
	Settings interface{} `json:"settings,omitempty"`
}

UpdateProviderSettingsParamsBody update provider settings params body

swagger:model updateProviderSettingsParamsBody

func (*UpdateProviderSettingsParamsBody) ContextValidate ¶

func (m *UpdateProviderSettingsParamsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update provider settings params body based on context it is used

func (*UpdateProviderSettingsParamsBody) MarshalBinary ¶

func (m *UpdateProviderSettingsParamsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateProviderSettingsParamsBody) UnmarshalBinary ¶

func (m *UpdateProviderSettingsParamsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateProviderSettingsParamsBody) Validate ¶

Validate validates this update provider settings params body

type UpdateQuotaCmd ¶

type UpdateQuotaCmd struct {

	// limit
	Limit int64 `json:"limit,omitempty"`

	// target
	Target string `json:"target,omitempty"`
}

UpdateQuotaCmd update quota cmd

swagger:model UpdateQuotaCmd

func (*UpdateQuotaCmd) ContextValidate ¶

func (m *UpdateQuotaCmd) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update quota cmd based on context it is used

func (*UpdateQuotaCmd) MarshalBinary ¶

func (m *UpdateQuotaCmd) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateQuotaCmd) UnmarshalBinary ¶

func (m *UpdateQuotaCmd) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateQuotaCmd) Validate ¶

func (m *UpdateQuotaCmd) Validate(formats strfmt.Registry) error

Validate validates this update quota cmd

type UpdateRoleCommand ¶

type UpdateRoleCommand struct {

	// description
	Description string `json:"description,omitempty"`

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// global
	Global bool `json:"global,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// hidden
	Hidden bool `json:"hidden,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// permissions
	Permissions []*Permission `json:"permissions"`

	// version
	Version int64 `json:"version,omitempty"`
}

UpdateRoleCommand update role command

swagger:model UpdateRoleCommand

func (*UpdateRoleCommand) ContextValidate ¶

func (m *UpdateRoleCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update role command based on the context it is used

func (*UpdateRoleCommand) MarshalBinary ¶

func (m *UpdateRoleCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateRoleCommand) UnmarshalBinary ¶

func (m *UpdateRoleCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateRoleCommand) Validate ¶

func (m *UpdateRoleCommand) Validate(formats strfmt.Registry) error

Validate validates this update role command

type UpdateServiceAccountForm ¶

type UpdateServiceAccountForm struct {

	// is disabled
	IsDisabled bool `json:"isDisabled,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`

	// service account Id
	ServiceAccountID int64 `json:"serviceAccountId,omitempty"`
}

UpdateServiceAccountForm update service account form

swagger:model UpdateServiceAccountForm

func (*UpdateServiceAccountForm) ContextValidate ¶

func (m *UpdateServiceAccountForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update service account form based on context it is used

func (*UpdateServiceAccountForm) MarshalBinary ¶

func (m *UpdateServiceAccountForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateServiceAccountForm) UnmarshalBinary ¶

func (m *UpdateServiceAccountForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateServiceAccountForm) Validate ¶

func (m *UpdateServiceAccountForm) Validate(formats strfmt.Registry) error

Validate validates this update service account form

type UpdateServiceAccountOKBody ¶

type UpdateServiceAccountOKBody struct {

	// id
	ID int64 `json:"id,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// serviceaccount
	Serviceaccount *ServiceAccountProfileDTO `json:"serviceaccount,omitempty"`
}

UpdateServiceAccountOKBody update service account Ok body

swagger:model updateServiceAccountOkBody

func (*UpdateServiceAccountOKBody) ContextValidate ¶

func (m *UpdateServiceAccountOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update service account Ok body based on the context it is used

func (*UpdateServiceAccountOKBody) MarshalBinary ¶

func (m *UpdateServiceAccountOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateServiceAccountOKBody) UnmarshalBinary ¶

func (m *UpdateServiceAccountOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateServiceAccountOKBody) Validate ¶

func (m *UpdateServiceAccountOKBody) Validate(formats strfmt.Registry) error

Validate validates this update service account Ok body

type UpdateTeamCommand ¶

type UpdateTeamCommand struct {

	// email
	Email string `json:"Email,omitempty"`

	// ID
	ID int64 `json:"ID,omitempty"`

	// name
	Name string `json:"Name,omitempty"`
}

UpdateTeamCommand update team command

swagger:model UpdateTeamCommand

func (*UpdateTeamCommand) ContextValidate ¶

func (m *UpdateTeamCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update team command based on context it is used

func (*UpdateTeamCommand) MarshalBinary ¶

func (m *UpdateTeamCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateTeamCommand) UnmarshalBinary ¶

func (m *UpdateTeamCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateTeamCommand) Validate ¶

func (m *UpdateTeamCommand) Validate(formats strfmt.Registry) error

Validate validates this update team command

type UpdateTeamMemberCommand ¶

type UpdateTeamMemberCommand struct {

	// permission
	Permission PermissionType `json:"permission,omitempty"`
}

UpdateTeamMemberCommand update team member command

swagger:model UpdateTeamMemberCommand

func (*UpdateTeamMemberCommand) ContextValidate ¶

func (m *UpdateTeamMemberCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update team member command based on the context it is used

func (*UpdateTeamMemberCommand) MarshalBinary ¶

func (m *UpdateTeamMemberCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateTeamMemberCommand) UnmarshalBinary ¶

func (m *UpdateTeamMemberCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateTeamMemberCommand) Validate ¶

func (m *UpdateTeamMemberCommand) Validate(formats strfmt.Registry) error

Validate validates this update team member command

type UpdateUserCommand ¶

type UpdateUserCommand struct {

	// email
	Email string `json:"email,omitempty"`

	// login
	Login string `json:"login,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// theme
	Theme string `json:"theme,omitempty"`
}

UpdateUserCommand update user command

swagger:model UpdateUserCommand

func (*UpdateUserCommand) ContextValidate ¶

func (m *UpdateUserCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update user command based on context it is used

func (*UpdateUserCommand) MarshalBinary ¶

func (m *UpdateUserCommand) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateUserCommand) UnmarshalBinary ¶

func (m *UpdateUserCommand) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateUserCommand) Validate ¶

func (m *UpdateUserCommand) Validate(formats strfmt.Registry) error

Validate validates this update user command

type UserLookupDTO ¶

type UserLookupDTO struct {

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// login
	Login string `json:"login,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`
}

UserLookupDTO user lookup DTO

swagger:model UserLookupDTO

func (*UserLookupDTO) ContextValidate ¶

func (m *UserLookupDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user lookup DTO based on context it is used

func (*UserLookupDTO) MarshalBinary ¶

func (m *UserLookupDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserLookupDTO) UnmarshalBinary ¶

func (m *UserLookupDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserLookupDTO) Validate ¶

func (m *UserLookupDTO) Validate(formats strfmt.Registry) error

Validate validates this user lookup DTO

type UserOrgDTO ¶

type UserOrgDTO struct {

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// role
	// Enum: [None Viewer Editor Admin]
	Role string `json:"role,omitempty"`
}

UserOrgDTO user org DTO

swagger:model UserOrgDTO

func (*UserOrgDTO) ContextValidate ¶

func (m *UserOrgDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user org DTO based on context it is used

func (*UserOrgDTO) MarshalBinary ¶

func (m *UserOrgDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserOrgDTO) UnmarshalBinary ¶

func (m *UserOrgDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserOrgDTO) Validate ¶

func (m *UserOrgDTO) Validate(formats strfmt.Registry) error

Validate validates this user org DTO

type UserProfileDTO ¶

type UserProfileDTO struct {

	// access control
	AccessControl map[string]bool `json:"accessControl,omitempty"`

	// auth labels
	AuthLabels []string `json:"authLabels"`

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is disabled
	IsDisabled bool `json:"isDisabled,omitempty"`

	// is external
	IsExternal bool `json:"isExternal,omitempty"`

	// is externally synced
	IsExternallySynced bool `json:"isExternallySynced,omitempty"`

	// is grafana admin
	IsGrafanaAdmin bool `json:"isGrafanaAdmin,omitempty"`

	// is grafana admin externally synced
	IsGrafanaAdminExternallySynced bool `json:"isGrafanaAdminExternallySynced,omitempty"`

	// login
	Login string `json:"login,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// org Id
	OrgID int64 `json:"orgId,omitempty"`

	// theme
	Theme string `json:"theme,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}

UserProfileDTO user profile DTO

swagger:model UserProfileDTO

func (*UserProfileDTO) ContextValidate ¶

func (m *UserProfileDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user profile DTO based on context it is used

func (*UserProfileDTO) MarshalBinary ¶

func (m *UserProfileDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserProfileDTO) UnmarshalBinary ¶

func (m *UserProfileDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserProfileDTO) Validate ¶

func (m *UserProfileDTO) Validate(formats strfmt.Registry) error

Validate validates this user profile DTO

type UserSearchHitDTO ¶

type UserSearchHitDTO struct {

	// auth labels
	AuthLabels []string `json:"authLabels"`

	// avatar Url
	AvatarURL string `json:"avatarUrl,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is admin
	IsAdmin bool `json:"isAdmin,omitempty"`

	// is disabled
	IsDisabled bool `json:"isDisabled,omitempty"`

	// last seen at
	// Format: date-time
	LastSeenAt strfmt.DateTime `json:"lastSeenAt,omitempty"`

	// last seen at age
	LastSeenAtAge string `json:"lastSeenAtAge,omitempty"`

	// login
	Login string `json:"login,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

UserSearchHitDTO user search hit DTO

swagger:model UserSearchHitDTO

func (*UserSearchHitDTO) ContextValidate ¶

func (m *UserSearchHitDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user search hit DTO based on context it is used

func (*UserSearchHitDTO) MarshalBinary ¶

func (m *UserSearchHitDTO) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSearchHitDTO) UnmarshalBinary ¶

func (m *UserSearchHitDTO) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSearchHitDTO) Validate ¶

func (m *UserSearchHitDTO) Validate(formats strfmt.Registry) error

Validate validates this user search hit DTO

type UserToken ¶

type UserToken struct {

	// auth token
	AuthToken string `json:"AuthToken,omitempty"`

	// auth token seen
	AuthTokenSeen bool `json:"AuthTokenSeen,omitempty"`

	// client Ip
	ClientIP string `json:"ClientIp,omitempty"`

	// created at
	CreatedAt int64 `json:"CreatedAt,omitempty"`

	// Id
	ID int64 `json:"Id,omitempty"`

	// prev auth token
	PrevAuthToken string `json:"PrevAuthToken,omitempty"`

	// revoked at
	RevokedAt int64 `json:"RevokedAt,omitempty"`

	// rotated at
	RotatedAt int64 `json:"RotatedAt,omitempty"`

	// seen at
	SeenAt int64 `json:"SeenAt,omitempty"`

	// unhashed token
	UnhashedToken string `json:"UnhashedToken,omitempty"`

	// updated at
	UpdatedAt int64 `json:"UpdatedAt,omitempty"`

	// user agent
	UserAgent string `json:"UserAgent,omitempty"`

	// user Id
	UserID int64 `json:"UserId,omitempty"`
}

UserToken UserToken represents a user token

swagger:model UserToken

func (*UserToken) ContextValidate ¶

func (m *UserToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user token based on context it is used

func (*UserToken) MarshalBinary ¶

func (m *UserToken) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserToken) UnmarshalBinary ¶

func (m *UserToken) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserToken) Validate ¶

func (m *UserToken) Validate(formats strfmt.Registry) error

Validate validates this user token

type Userinfo ¶

type Userinfo interface{}

Userinfo The Userinfo type is an immutable encapsulation of username and password details for a URL. An existing Userinfo value is guaranteed to have a username set (potentially empty, as allowed by RFC 2396), and optionally a password.

swagger:model Userinfo

type ValidationError ¶

type ValidationError struct {

	// message
	// Example: error message
	Message string `json:"message,omitempty"`
}

ValidationError validation error

swagger:model ValidationError

func (*ValidationError) ContextValidate ¶

func (m *ValidationError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this validation error based on context it is used

func (*ValidationError) MarshalBinary ¶

func (m *ValidationError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ValidationError) UnmarshalBinary ¶

func (m *ValidationError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ValidationError) Validate ¶

func (m *ValidationError) Validate(formats strfmt.Registry) error

Validate validates this validation error

type ValueMapping ¶

type ValueMapping interface{}

ValueMapping ValueMapping allows mapping input values to text and color

swagger:model ValueMapping

type ValueMappings ¶

type ValueMappings []ValueMapping

ValueMappings value mappings

swagger:model ValueMappings

func (ValueMappings) ContextValidate ¶

func (m ValueMappings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this value mappings based on context it is used

func (ValueMappings) Validate ¶

func (m ValueMappings) Validate(formats strfmt.Registry) error

Validate validates this value mappings

type Vector ¶

type Vector []*Sample

Vector Vector is basically only an alias for []Sample, but the contract is that in a Vector, all Samples have the same timestamp.

swagger:model Vector

func (Vector) ContextValidate ¶

func (m Vector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this vector based on the context it is used

func (Vector) Validate ¶

func (m Vector) Validate(formats strfmt.Registry) error

Validate validates this vector

type VersionInfo ¶

type VersionInfo struct {

	// branch
	// Required: true
	Branch *string `json:"branch"`

	// build date
	// Required: true
	BuildDate *string `json:"buildDate"`

	// build user
	// Required: true
	BuildUser *string `json:"buildUser"`

	// go version
	// Required: true
	GoVersion *string `json:"goVersion"`

	// revision
	// Required: true
	Revision *string `json:"revision"`

	// version
	// Required: true
	Version *string `json:"version"`
}

VersionInfo VersionInfo version info

swagger:model versionInfo

func (*VersionInfo) ContextValidate ¶

func (m *VersionInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this version info based on context it is used

func (*VersionInfo) MarshalBinary ¶

func (m *VersionInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VersionInfo) UnmarshalBinary ¶

func (m *VersionInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersionInfo) Validate ¶

func (m *VersionInfo) Validate(formats strfmt.Registry) error

Validate validates this version info

type VictorOpsConfig ¶

type VictorOpsConfig struct {

	// api key
	APIKey Secret `json:"api_key,omitempty"`

	// api key file
	APIKeyFile string `json:"api_key_file,omitempty"`

	// api url
	APIURL *URL `json:"api_url,omitempty"`

	// custom fields
	CustomFields map[string]string `json:"custom_fields,omitempty"`

	// entity display name
	EntityDisplayName string `json:"entity_display_name,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message type
	MessageType string `json:"message_type,omitempty"`

	// monitoring tool
	MonitoringTool string `json:"monitoring_tool,omitempty"`

	// routing key
	RoutingKey string `json:"routing_key,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// state message
	StateMessage string `json:"state_message,omitempty"`
}

VictorOpsConfig VictorOpsConfig configures notifications via VictorOps.

swagger:model VictorOpsConfig

func (*VictorOpsConfig) ContextValidate ¶

func (m *VictorOpsConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this victor ops config based on the context it is used

func (*VictorOpsConfig) MarshalBinary ¶

func (m *VictorOpsConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VictorOpsConfig) UnmarshalBinary ¶

func (m *VictorOpsConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VictorOpsConfig) Validate ¶

func (m *VictorOpsConfig) Validate(formats strfmt.Registry) error

Validate validates this victor ops config

type VisType ¶

type VisType string

VisType VisType is used to indicate how the data should be visualized in explore.

swagger:model VisType

func (VisType) ContextValidate ¶

func (m VisType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this vis type based on context it is used

func (VisType) Validate ¶

func (m VisType) Validate(formats strfmt.Registry) error

Validate validates this vis type

type WebexConfig ¶

type WebexConfig struct {

	// api url
	APIURL *URL `json:"api_url,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// room id
	RoomID string `json:"room_id,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`
}

WebexConfig WebexConfig configures notifications via Webex.

swagger:model WebexConfig

func (*WebexConfig) ContextValidate ¶

func (m *WebexConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this webex config based on the context it is used

func (*WebexConfig) MarshalBinary ¶

func (m *WebexConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WebexConfig) UnmarshalBinary ¶

func (m *WebexConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WebexConfig) Validate ¶

func (m *WebexConfig) Validate(formats strfmt.Registry) error

Validate validates this webex config

type WebhookConfig ¶

type WebhookConfig struct {

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// MaxAlerts is the maximum number of alerts to be sent per webhook message.
	// Alerts exceeding this threshold will be truncated. Setting this to 0
	// allows an unlimited number of alerts.
	MaxAlerts uint64 `json:"max_alerts,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// url
	URL *SecretURL `json:"url,omitempty"`

	// url file
	URLFile string `json:"url_file,omitempty"`
}

WebhookConfig WebhookConfig configures notifications via a generic webhook.

swagger:model WebhookConfig

func (*WebhookConfig) ContextValidate ¶

func (m *WebhookConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this webhook config based on the context it is used

func (*WebhookConfig) MarshalBinary ¶

func (m *WebhookConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WebhookConfig) UnmarshalBinary ¶

func (m *WebhookConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WebhookConfig) Validate ¶

func (m *WebhookConfig) Validate(formats strfmt.Registry) error

Validate validates this webhook config

type WechatConfig ¶

type WechatConfig struct {

	// agent id
	AgentID string `json:"agent_id,omitempty"`

	// api secret
	APISecret Secret `json:"api_secret,omitempty"`

	// api url
	APIURL *URL `json:"api_url,omitempty"`

	// corp id
	CorpID string `json:"corp_id,omitempty"`

	// http config
	HTTPConfig *HTTPClientConfig `json:"http_config,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// message type
	MessageType string `json:"message_type,omitempty"`

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// to party
	ToParty string `json:"to_party,omitempty"`

	// to tag
	ToTag string `json:"to_tag,omitempty"`

	// to user
	ToUser string `json:"to_user,omitempty"`
}

WechatConfig WechatConfig configures notifications via Wechat.

swagger:model WechatConfig

func (*WechatConfig) ContextValidate ¶

func (m *WechatConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wechat config based on the context it is used

func (*WechatConfig) MarshalBinary ¶

func (m *WechatConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WechatConfig) UnmarshalBinary ¶

func (m *WechatConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WechatConfig) Validate ¶

func (m *WechatConfig) Validate(formats strfmt.Registry) error

Validate validates this wechat config

Source Files ¶

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL