models

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation ¶

Index ¶

Constants ¶

View Source
const (

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

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

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

	// AddCommandRoleAdmin captures enum value "Admin"
	AddCommandRoleAdmin 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 d t o

swagger:model ApiKeyDTO

func (*APIKeyDTO) ContextValidate ¶

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

ContextValidate validate this Api key d t o 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 d t o

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 d t o 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 d t o

type ActiveUserStats ¶

type ActiveUserStats struct {

	// active admins and editors
	ActiveAdminsAndEditors int64 `json:"active_admins_and_editors,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 AddCommand ¶

type AddCommand 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"`
}

AddCommand add command

swagger:model AddCommand

func (*AddCommand) ContextValidate ¶

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

ContextValidate validates this add command based on context it is used

func (*AddCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AddCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AddCommand) Validate ¶

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

Validate validates this add 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 o k body

swagger:model addDataSourceOKBody

func (*AddDataSourceOKBody) ContextValidate ¶

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

ContextValidate validate this add data source o k 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 o k 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 AddPermissionOKBody ¶

type AddPermissionOKBody struct {

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

	// permission Id
	PermissionID int64 `json:"permissionId,omitempty"`
}

AddPermissionOKBody add permission o k body

swagger:model addPermissionOKBody

func (*AddPermissionOKBody) ContextValidate ¶

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

ContextValidate validates this add permission o k body based on context it is used

func (*AddPermissionOKBody) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AddPermissionOKBody) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AddPermissionOKBody) Validate ¶

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

Validate validates this add permission o k body

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 string `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 validates this admin create user form based on 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 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 string `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 validates this admin update user password form based on 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 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 AlertListItemDTO ¶

type AlertListItemDTO struct {

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

	// dashboard slug
	DashboardSlug string `json:"dashboardSlug,omitempty"`

	// dashboard Uid
	DashboardUID string `json:"dashboardUid,omitempty"`

	// eval data
	EvalData JSON `json:"evalData,omitempty"`

	// eval date
	// Format: date-time
	EvalDate strfmt.DateTime `json:"evalDate,omitempty"`

	// execution error
	ExecutionError string `json:"executionError,omitempty"`

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

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

	// new state date
	// Format: date-time
	NewStateDate strfmt.DateTime `json:"newStateDate,omitempty"`

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

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

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

AlertListItemDTO alert list item d t o

swagger:model AlertListItemDTO

func (*AlertListItemDTO) ContextValidate ¶

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

ContextValidate validate this alert list item d t o based on the context it is used

func (*AlertListItemDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AlertListItemDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AlertListItemDTO) Validate ¶

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

Validate validates this alert list item d t o

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 AlertNotification ¶

type AlertNotification struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// frequency
	Frequency string `json:"frequency,omitempty"`

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

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

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

	// secure fields
	SecureFields map[string]bool `json:"secureFields,omitempty"`

	// send reminder
	SendReminder bool `json:"sendReminder,omitempty"`

	// settings
	Settings JSON `json:"settings,omitempty"`

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

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

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`
}

AlertNotification alert notification

swagger:model AlertNotification

func (*AlertNotification) ContextValidate ¶

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

ContextValidate validates this alert notification based on context it is used

func (*AlertNotification) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AlertNotification) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AlertNotification) Validate ¶

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

Validate validates this alert notification

type AlertNotificationLookup ¶

type AlertNotificationLookup struct {

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

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

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

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

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

AlertNotificationLookup alert notification lookup

swagger:model AlertNotificationLookup

func (*AlertNotificationLookup) ContextValidate ¶

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

ContextValidate validates this alert notification lookup based on context it is used

func (*AlertNotificationLookup) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AlertNotificationLookup) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AlertNotificationLookup) Validate ¶

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

Validate validates this alert notification lookup

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 *RelativeTimeRange `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"`

	// 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 AlertStateInfoDTO ¶

type AlertStateInfoDTO struct {

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

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

	// new state date
	// Format: date-time
	NewStateDate strfmt.DateTime `json:"newStateDate,omitempty"`

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

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

AlertStateInfoDTO alert state info d t o

swagger:model AlertStateInfoDTO

func (*AlertStateInfoDTO) ContextValidate ¶

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

ContextValidate validate this alert state info d t o based on the context it is used

func (*AlertStateInfoDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AlertStateInfoDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AlertStateInfoDTO) Validate ¶

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

Validate validates this alert state info d t o

type AlertStateType ¶

type AlertStateType string

AlertStateType alert state type

swagger:model AlertStateType

func (AlertStateType) ContextValidate ¶

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

ContextValidate validates this alert state type based on context it is used

func (AlertStateType) Validate ¶

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

Validate validates this alert state type

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 AlertTestCommand ¶

type AlertTestCommand struct {

	// dashboard
	Dashboard JSON `json:"dashboard,omitempty"`

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

AlertTestCommand alert test command

swagger:model AlertTestCommand

func (*AlertTestCommand) ContextValidate ¶

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

ContextValidate validates this alert test command based on context it is used

func (*AlertTestCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AlertTestCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AlertTestCommand) Validate ¶

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

Validate validates this alert test command

type AlertTestResult ¶

type AlertTestResult struct {

	// condition evals
	ConditionEvals string `json:"conditionEvals,omitempty"`

	// error
	Error string `json:"error,omitempty"`

	// firing
	Firing bool `json:"firing,omitempty"`

	// logs
	Logs []*AlertTestResultLog `json:"logs"`

	// matches
	Matches []*EvalMatch `json:"matches"`

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

	// time ms
	TimeMs string `json:"timeMs,omitempty"`
}

AlertTestResult alert test result

swagger:model AlertTestResult

func (*AlertTestResult) ContextValidate ¶

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

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

func (*AlertTestResult) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AlertTestResult) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AlertTestResult) Validate ¶

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

Validate validates this alert test result

type AlertTestResultLog ¶

type AlertTestResultLog struct {

	// data
	Data interface{} `json:"data,omitempty"`

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

AlertTestResultLog alert test result log

swagger:model AlertTestResultLog

func (*AlertTestResultLog) ContextValidate ¶

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

ContextValidate validates this alert test result log based on context it is used

func (*AlertTestResultLog) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*AlertTestResultLog) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*AlertTestResultLog) Validate ¶

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

Validate validates this alert test result log

type AlertingFileExport ¶

type AlertingFileExport struct {

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

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

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 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 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 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"`
}

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 BrandingOptionsDTO ¶

type BrandingOptionsDTO 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"`
}

BrandingOptionsDTO branding options d t o

swagger:model BrandingOptionsDTO

func (*BrandingOptionsDTO) ContextValidate ¶

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

ContextValidate validates this branding options d t o based on context it is used

func (*BrandingOptionsDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*BrandingOptionsDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*BrandingOptionsDTO) Validate ¶

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

Validate validates this branding options d t o

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 ChangeUserPasswordCommand ¶

type ChangeUserPasswordCommand struct {

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

	// old password
	OldPassword string `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 validates this change user password command based on 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 o k body

swagger:model clearHelpFlagsOKBody

func (*ClearHelpFlagsOKBody) ContextValidate ¶

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

ContextValidate validates this clear help flags o k 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 o k 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 ConfigDTO ¶

type ConfigDTO struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

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

	// dashboard name
	DashboardName string `json:"dashboardName,omitempty"`

	// dashboard Uid
	DashboardUID string `json:"dashboardUid,omitempty"`

	// dashboards
	Dashboards []*DashboardDTO `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 *ReportOptionsDTO `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 *ScheduleDTO `json:"schedule,omitempty"`

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

	// template vars
	TemplateVars interface{} `json:"templateVars,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

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

ConfigDTO ConfigDTO is model representation in transfer

swagger:model ConfigDTO

func (*ConfigDTO) ContextValidate ¶

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

ContextValidate validate this config d t o based on the context it is used

func (*ConfigDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*ConfigDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*ConfigDTO) Validate ¶

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

Validate validates this config d t o

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 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"`

	// 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 d t o

swagger:model CorrelationConfigUpdateDTO

func (*CorrelationConfigUpdateDTO) ContextValidate ¶

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

ContextValidate validate this correlation config update d t o 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 d t o

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 CreateAlertNotificationCommand ¶

type CreateAlertNotificationCommand struct {

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// frequency
	Frequency string `json:"frequency,omitempty"`

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

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

	// secure settings
	SecureSettings map[string]string `json:"secureSettings,omitempty"`

	// send reminder
	SendReminder bool `json:"sendReminder,omitempty"`

	// settings
	Settings JSON `json:"settings,omitempty"`

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

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

CreateAlertNotificationCommand create alert notification command

swagger:model CreateAlertNotificationCommand

func (*CreateAlertNotificationCommand) ContextValidate ¶

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

ContextValidate validates this create alert notification command based on context it is used

func (*CreateAlertNotificationCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*CreateAlertNotificationCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*CreateAlertNotificationCommand) Validate ¶

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

Validate validates this create alert notification command

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"`

	// 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 {

	// dashboard
	// Required: true
	Dashboard JSON `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"`

	// 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 validates this create dashboard snapshot command based on 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 o k body

swagger:model createDashboardSnapshotOKBody

func (*CreateDashboardSnapshotOKBody) ContextValidate ¶

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

ContextValidate validates this create dashboard snapshot o k 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 o k 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.
	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 CreateOrUpdateConfigCmd ¶

type CreateOrUpdateConfigCmd struct {

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

	// dashboard Uid
	DashboardUID string `json:"dashboardUid,omitempty"`

	// dashboards
	Dashboards []*DashboardDTO `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 *ReportOptionsDTO `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 *ScheduleDTO `json:"schedule,omitempty"`

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

	// template vars
	TemplateVars interface{} `json:"templateVars,omitempty"`
}

CreateOrUpdateConfigCmd create or update config cmd

swagger:model CreateOrUpdateConfigCmd

func (*CreateOrUpdateConfigCmd) ContextValidate ¶

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

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

func (*CreateOrUpdateConfigCmd) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*CreateOrUpdateConfigCmd) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*CreateOrUpdateConfigCmd) Validate ¶

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

Validate validates this create or update config cmd

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 o k body

swagger:model createOrgOKBody

func (*CreateOrgOKBody) ContextValidate ¶

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

ContextValidate validates this create org o k 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 o k 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 o k body

swagger:model createReportOKBody

func (*CreateReportOKBody) ContextValidate ¶

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

ContextValidate validates this create report o k 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 o k 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 o k body

swagger:model createTeamOKBody

func (*CreateTeamOKBody) ContextValidate ¶

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

ContextValidate validates this create team o k 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 o k body

type CustomPermissionsRecordDTO ¶

type CustomPermissionsRecordDTO struct {

	// custom permissions
	CustomPermissions string `json:"customPermissions,omitempty"`

	// grantee name
	GranteeName string `json:"granteeName,omitempty"`

	// grantee type
	GranteeType string `json:"granteeType,omitempty"`

	// grantee Url
	GranteeURL string `json:"granteeUrl,omitempty"`

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

	// is folder
	IsFolder bool `json:"isFolder,omitempty"`

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

	// org role
	OrgRole string `json:"orgRole,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

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

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

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

	// users count
	UsersCount int64 `json:"usersCount,omitempty"`
}

CustomPermissionsRecordDTO custom permissions record d t o

swagger:model CustomPermissionsRecordDTO

func (*CustomPermissionsRecordDTO) ContextValidate ¶

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

ContextValidate validates this custom permissions record d t o based on context it is used

func (*CustomPermissionsRecordDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*CustomPermissionsRecordDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*CustomPermissionsRecordDTO) Validate ¶

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

Validate validates this custom permissions record d t o

type DashboardACLInfoDTO ¶

type DashboardACLInfoDTO struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

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

	// folder Id
	FolderID int64 `json:"folderId,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 d t o

swagger:model DashboardACLInfoDTO

func (*DashboardACLInfoDTO) ContextValidate ¶

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

ContextValidate validate this dashboard ACL info d t o 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 d t o

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 DashboardDTO ¶

type DashboardDTO struct {

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

	// report variables
	ReportVariables interface{} `json:"reportVariables,omitempty"`

	// time range
	TimeRange *TimeRangeDTO `json:"timeRange,omitempty"`
}

DashboardDTO dashboard d t o

swagger:model DashboardDTO

func (*DashboardDTO) ContextValidate ¶

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

ContextValidate validate this dashboard d t o based on the context it is used

func (*DashboardDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*DashboardDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*DashboardDTO) Validate ¶

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

Validate validates this dashboard d t o

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"`

	// folder Id
	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 access token
	PublicDashboardAccessToken string `json:"publicDashboardAccessToken,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 DashboardReportDTO ¶

type DashboardReportDTO struct {

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

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

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

DashboardReportDTO dashboard report d t o

swagger:model DashboardReportDTO

func (*DashboardReportDTO) ContextValidate ¶

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

ContextValidate validates this dashboard report d t o based on context it is used

func (*DashboardReportDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*DashboardReportDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*DashboardReportDTO) Validate ¶

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

Validate validates this dashboard report d t o

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"`

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

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

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

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

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,omitempty"`

	// user Id
	UserID int64 `json:"userId,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 d t o 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 d t o

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"`

	// 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 d t o

swagger:model DataSourceListItemDTO

func (*DataSourceListItemDTO) ContextValidate ¶

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

ContextValidate validate this data source list item d t o 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 d t o

type DataSourcePermissionRuleDTO ¶

type DataSourcePermissionRuleDTO struct {

	// built in role
	BuiltInRole string `json:"builtInRole,omitempty"`

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// datasource Id
	DatasourceID int64 `json:"datasourceId,omitempty"`

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

	// is managed
	IsManaged bool `json:"isManaged,omitempty"`

	// permission
	Permission DsPermissionType `json:"permission,omitempty"`

	// permission name
	PermissionName string `json:"permissionName,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"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"updated,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"`
}

DataSourcePermissionRuleDTO data source permission rule d t o

swagger:model DataSourcePermissionRuleDTO

func (*DataSourcePermissionRuleDTO) ContextValidate ¶

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

ContextValidate validate this data source permission rule d t o based on the context it is used

func (*DataSourcePermissionRuleDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*DataSourcePermissionRuleDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*DataSourcePermissionRuleDTO) Validate ¶

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

Validate validates this data source permission rule d t o

type DataSourcePermissionsDTO ¶

type DataSourcePermissionsDTO struct {

	// datasource Id
	DatasourceID int64 `json:"datasourceId,omitempty"`

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

	// permissions
	Permissions []*DataSourcePermissionRuleDTO `json:"permissions"`
}

DataSourcePermissionsDTO data source permissions d t o

swagger:model DataSourcePermissionsDTO

func (*DataSourcePermissionsDTO) ContextValidate ¶

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

ContextValidate validate this data source permissions d t o based on the context it is used

func (*DataSourcePermissionsDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*DataSourcePermissionsDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*DataSourcePermissionsDTO) Validate ¶

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

Validate validates this data source permissions d t o

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 DeleteAlertNotificationChannelByUIDOKBody ¶

type DeleteAlertNotificationChannelByUIDOKBody struct {

	// ID Identifier of the deleted notification channel.
	// Example: 65
	// Required: true
	ID *int64 `json:"id"`

	// Message Message of the deleted notificatiton channel.
	// Required: true
	Message *string `json:"message"`
}

DeleteAlertNotificationChannelByUIDOKBody delete alert notification channel by Uid o k body

swagger:model deleteAlertNotificationChannelByUidOKBody

func (*DeleteAlertNotificationChannelByUIDOKBody) ContextValidate ¶

ContextValidate validates this delete alert notification channel by Uid o k body based on context it is used

func (*DeleteAlertNotificationChannelByUIDOKBody) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*DeleteAlertNotificationChannelByUIDOKBody) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*DeleteAlertNotificationChannelByUIDOKBody) Validate ¶

Validate validates this delete alert notification channel by Uid o k body

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 o k 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 o k 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 o k 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 o k 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 o k 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 o k 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 o k body

swagger:model deleteFolderOKBody

func (*DeleteFolderOKBody) ContextValidate ¶

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

ContextValidate validates this delete folder o k 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 o k 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 DisablePermissionsOKBody ¶

type DisablePermissionsOKBody 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"`
}

DisablePermissionsOKBody disable permissions o k body

swagger:model disablePermissionsOKBody

func (*DisablePermissionsOKBody) ContextValidate ¶

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

ContextValidate validate this disable permissions o k body based on the context it is used

func (*DisablePermissionsOKBody) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*DisablePermissionsOKBody) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*DisablePermissionsOKBody) Validate ¶

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

Validate validates this disable permissions o k body

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"`
}

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 DsPermissionType ¶

type DsPermissionType int64

DsPermissionType Datasource permission Description: `0` - No Access `1` - Query `2` - Edit Enum: 0,1,2

swagger:model DsPermissionType

func (DsPermissionType) ContextValidate ¶

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

ContextValidate validates this ds permission type based on context it is used

func (DsPermissionType) Validate ¶

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

Validate validates this ds permission type

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 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
	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 EnablePermissionsOKBody ¶

type EnablePermissionsOKBody 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"`
}

EnablePermissionsOKBody enable permissions o k body

swagger:model enablePermissionsOKBody

func (*EnablePermissionsOKBody) ContextValidate ¶

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

ContextValidate validate this enable permissions o k body based on the context it is used

func (*EnablePermissionsOKBody) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*EnablePermissionsOKBody) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*EnablePermissionsOKBody) Validate ¶

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

Validate validates this enable permissions o k body

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 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 EvalMatch ¶

type EvalMatch struct {

	// metric
	Metric string `json:"metric,omitempty"`

	// tags
	Tags map[string]string `json:"tags,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

EvalMatch eval match

swagger:model EvalMatch

func (*EvalMatch) ContextValidate ¶

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

ContextValidate validates this eval match based on context it is used

func (*EvalMatch) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*EvalMatch) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*EvalMatch) Validate ¶

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

Validate validates this eval match

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 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"`

	// id
	ID int64 `json:"id,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 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"`

	// 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"`
}

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.

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 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 o k 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 o k 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 o k 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 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 o k body

swagger:model getSharingOptionsOKBody

func (*GetSharingOptionsOKBody) ContextValidate ¶

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

ContextValidate validates this get sharing options o k 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 o k 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"`

	// mute time intervals
	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"`
}

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"`

	// 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 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"`

	// 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 id
	NamespaceID int64 `json:"namespace_id,omitempty"`

	// namespace uid
	NamespaceUID string `json:"namespace_uid,omitempty"`

	// no data state
	// Enum: [Alerting NoData OK]
	NoDataState string `json:"no_data_state,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 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 {

	// folder Id
	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 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"`

	// folder Id
	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"`

	// folder Id
	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

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 Item ¶

type Item struct {

	// Title is an unused property -- it will be removed in the future
	Title string `json:"title,omitempty"`

	// type
	Type ItemType `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"`
}

Item Item defines model for Item.

swagger:model Item

func (*Item) ContextValidate ¶

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

ContextValidate validate this item based on the context it is used

func (*Item) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*Item) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*Item) Validate ¶

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

Validate validates this item

type ItemDTO ¶

type ItemDTO 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"`
}

ItemDTO item d t o

swagger:model ItemDTO

func (*ItemDTO) ContextValidate ¶

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

ContextValidate validates this item d t o based on context it is used

func (*ItemDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*ItemDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*ItemDTO) Validate ¶

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

Validate validates this item d t o

type ItemType ¶

type ItemType string

ItemType Type of the item.

swagger:model ItemType

func (ItemType) ContextValidate ¶

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

ContextValidate validates this item type based on context it is used

func (ItemType) Validate ¶

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

Validate validates this item type

type JSON ¶

type JSON interface{}

JSON Json

swagger:model Json

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 LegacyAlert ¶

type LegacyAlert struct {

	// created
	// Format: date-time
	Created strfmt.DateTime `json:"Created,omitempty"`

	// dashboard ID
	DashboardID int64 `json:"DashboardID,omitempty"`

	// eval data
	EvalData JSON `json:"EvalData,omitempty"`

	// execution error
	ExecutionError string `json:"ExecutionError,omitempty"`

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

	// frequency
	Frequency int64 `json:"Frequency,omitempty"`

	// handler
	Handler int64 `json:"Handler,omitempty"`

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

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

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

	// new state date
	// Format: date-time
	NewStateDate strfmt.DateTime `json:"NewStateDate,omitempty"`

	// org ID
	OrgID int64 `json:"OrgID,omitempty"`

	// panel ID
	PanelID int64 `json:"PanelID,omitempty"`

	// settings
	Settings JSON `json:"Settings,omitempty"`

	// severity
	Severity string `json:"Severity,omitempty"`

	// silenced
	Silenced bool `json:"Silenced,omitempty"`

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

	// state changes
	StateChanges int64 `json:"StateChanges,omitempty"`

	// updated
	// Format: date-time
	Updated strfmt.DateTime `json:"Updated,omitempty"`

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

LegacyAlert legacy alert

swagger:model LegacyAlert

func (*LegacyAlert) ContextValidate ¶

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

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

func (*LegacyAlert) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*LegacyAlert) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*LegacyAlert) Validate ¶

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

Validate validates this legacy alert

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 d t o 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 d t o

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"`

	// folder Id
	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 d t o 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 d t o

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 d t o 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 d t o 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 d t o 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 d t o 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 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 o k body

swagger:model listSortOptionsOKBody

func (*ListSortOptionsOKBody) ContextValidate ¶

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

ContextValidate validates this list sort options o k 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 o k body

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]Regexp

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"`

	// public dashboard access token
	PublicDashboardAccessToken string `json:"publicDashboardAccessToken,omitempty"`

	// 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 MigrateQueriesToQueryHistoryCommand ¶

type MigrateQueriesToQueryHistoryCommand struct {

	// Array of queries to store in query history.
	Queries []*QueryToMigrate `json:"queries"`
}

MigrateQueriesToQueryHistoryCommand MigrateQueriesToQueryHistoryCommand is the command used for migration of old queries into query history

swagger:model MigrateQueriesToQueryHistoryCommand

func (*MigrateQueriesToQueryHistoryCommand) ContextValidate ¶

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

ContextValidate validate this migrate queries to query history command based on the context it is used

func (*MigrateQueriesToQueryHistoryCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*MigrateQueriesToQueryHistoryCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*MigrateQueriesToQueryHistoryCommand) Validate ¶

Validate validates this migrate queries to query history command

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 []*TimeInterval `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 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 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 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 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 NotificationTestCommand ¶

type NotificationTestCommand struct {

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// frequency
	Frequency string `json:"frequency,omitempty"`

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

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

	// secure settings
	SecureSettings map[string]string `json:"secureSettings,omitempty"`

	// send reminder
	SendReminder bool `json:"sendReminder,omitempty"`

	// settings
	Settings JSON `json:"settings,omitempty"`

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

NotificationTestCommand notification test command

swagger:model NotificationTestCommand

func (*NotificationTestCommand) ContextValidate ¶

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

ContextValidate validates this notification test command based on context it is used

func (*NotificationTestCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*NotificationTestCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*NotificationTestCommand) Validate ¶

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

Validate validates this notification test command

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 ObjectMatchers ¶

type ObjectMatchers = Matchers

ObjectMatchers object matchers

swagger:model ObjectMatchers

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 d t o

swagger:model OrgDTO

func (*OrgDTO) ContextValidate ¶

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

ContextValidate validates this org d t o 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 d t o

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 d t o

swagger:model OrgDetailsDTO

func (*OrgDetailsDTO) ContextValidate ¶

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

ContextValidate validate this org details d t o 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 d t o

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 d t o

swagger:model OrgUserDTO

func (*OrgUserDTO) ContextValidate ¶

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

ContextValidate validates this org user d t o 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 d t o

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 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.
	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 PauseAlertCommand ¶

type PauseAlertCommand struct {

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

	// paused
	Paused bool `json:"paused,omitempty"`
}

PauseAlertCommand pause alert command

swagger:model PauseAlertCommand

func (*PauseAlertCommand) ContextValidate ¶

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

ContextValidate validates this pause alert command based on context it is used

func (*PauseAlertCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*PauseAlertCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*PauseAlertCommand) Validate ¶

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

Validate validates this pause alert command

type PauseAlertOKBody ¶

type PauseAlertOKBody struct {

	// alert Id
	// Required: true
	AlertID *int64 `json:"alertId"`

	// message
	// Required: true
	Message *string `json:"message"`

	// Alert result state
	// required true
	State string `json:"state,omitempty"`
}

PauseAlertOKBody pause alert o k body

swagger:model pauseAlertOKBody

func (*PauseAlertOKBody) ContextValidate ¶

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

ContextValidate validates this pause alert o k body based on context it is used

func (*PauseAlertOKBody) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*PauseAlertOKBody) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*PauseAlertOKBody) Validate ¶

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

Validate validates this pause alert o k body

type PauseAllAlertsCommand ¶

type PauseAllAlertsCommand struct {

	// paused
	Paused bool `json:"paused,omitempty"`
}

PauseAllAlertsCommand pause all alerts command

swagger:model PauseAllAlertsCommand

func (*PauseAllAlertsCommand) ContextValidate ¶

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

ContextValidate validates this pause all alerts command based on context it is used

func (*PauseAllAlertsCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*PauseAllAlertsCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*PauseAllAlertsCommand) Validate ¶

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

Validate validates this pause all alerts command

type PauseAllAlertsOKBody ¶

type PauseAllAlertsOKBody struct {

	// AlertsAffected is the number of the affected alerts.
	// Required: true
	AlertsAffected *int64 `json:"alertsAffected"`

	// message
	// Required: true
	Message *string `json:"message"`

	// Alert result state
	// required true
	State string `json:"state,omitempty"`
}

PauseAllAlertsOKBody pause all alerts o k body

swagger:model pauseAllAlertsOKBody

func (*PauseAllAlertsOKBody) ContextValidate ¶

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

ContextValidate validates this pause all alerts o k body based on context it is used

func (*PauseAllAlertsOKBody) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*PauseAllAlertsOKBody) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*PauseAllAlertsOKBody) Validate ¶

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

Validate validates this pause all alerts o k body

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 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 PlaylistDashboardsSlice ¶

type PlaylistDashboardsSlice []*PlaylistDashboard

PlaylistDashboardsSlice playlist dashboards slice

swagger:model PlaylistDashboardsSlice

func (PlaylistDashboardsSlice) ContextValidate ¶

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

ContextValidate validate this playlist dashboards slice based on the context it is used

func (PlaylistDashboardsSlice) Validate ¶

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

Validate validates this playlist dashboards slice

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 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 o k body

swagger:model postAnnotationOKBody

func (*PostAnnotationOKBody) ContextValidate ¶

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

ContextValidate validates this post annotation o k 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 o k 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 {

	// ID The unique identifier (id) of the created/updated dashboard.
	// Example: 1
	// Required: true
	ID *string `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 o k body

swagger:model postDashboardOKBody

func (*PostDashboardOKBody) ContextValidate ¶

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

ContextValidate validates this post dashboard o k 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 o k 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 o k body

swagger:model postGraphiteAnnotationOKBody

func (*PostGraphiteAnnotationOKBody) ContextValidate ¶

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

ContextValidate validates this post graphite annotation o k 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 o k 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"`

	// mute time intervals
	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"`
}

PostableAPIAlertingConfig postable Api alerting config

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"`

	// 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 postable Api receiver

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"`

	// 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"`

	// 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 {

	// 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 Preferences defines model for 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
	For *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"`

	// 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
	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 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"`

	// 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 {

	// responses
	Responses Responses `json:"Responses,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 d t o

swagger:model QueryHistoryDTO

func (*QueryHistoryDTO) ContextValidate ¶

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

ContextValidate validates this query history d t o 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 d t o

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 QueryHistoryMigrationResponse ¶

type QueryHistoryMigrationResponse struct {

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

	// starred count
	StarredCount int64 `json:"starredCount,omitempty"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

QueryHistoryMigrationResponse query history migration response

swagger:model QueryHistoryMigrationResponse

func (*QueryHistoryMigrationResponse) ContextValidate ¶

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

ContextValidate validates this query history migration response based on context it is used

func (*QueryHistoryMigrationResponse) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*QueryHistoryMigrationResponse) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*QueryHistoryMigrationResponse) Validate ¶

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

Validate validates this query history migration response

type QueryHistoryPreference ¶

type QueryHistoryPreference struct {

	// home tab
	HomeTab string `json:"homeTab,omitempty"`
}

QueryHistoryPreference query history preference

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 QueryToMigrate ¶

type QueryToMigrate struct {

	// comment
	Comment string `json:"comment,omitempty"`

	// created at
	CreatedAt int64 `json:"createdAt,omitempty"`

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

	// queries
	Queries JSON `json:"queries,omitempty"`

	// starred
	Starred bool `json:"starred,omitempty"`
}

QueryToMigrate query to migrate

swagger:model QueryToMigrate

func (*QueryToMigrate) ContextValidate ¶

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

ContextValidate validates this query to migrate based on context it is used

func (*QueryToMigrate) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*QueryToMigrate) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*QueryToMigrate) Validate ¶

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

Validate validates this query to migrate

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 d t o

swagger:model QuotaDTO

func (*QuotaDTO) ContextValidate ¶

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

ContextValidate validates this quota d t o 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 d t o

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

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 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 Regexp ¶

type Regexp interface{}

Regexp Regexp is the representation of a compiled regular expression.

A Regexp is safe for concurrent use by multiple goroutines, except for configuration methods, such as Longest.

swagger:model Regexp

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 ReportEmailDTO ¶

type ReportEmailDTO struct {

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

	// 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"`
}

ReportEmailDTO report email d t o

swagger:model ReportEmailDTO

func (*ReportEmailDTO) ContextValidate ¶

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

ContextValidate validates this report email d t o based on context it is used

func (*ReportEmailDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*ReportEmailDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*ReportEmailDTO) Validate ¶

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

Validate validates this report email d t o

type ReportOptionsDTO ¶

type ReportOptionsDTO struct {

	// layout
	Layout string `json:"layout,omitempty"`

	// orientation
	Orientation string `json:"orientation,omitempty"`

	// time range
	TimeRange *TimeRangeDTO `json:"timeRange,omitempty"`
}

ReportOptionsDTO report options d t o

swagger:model ReportOptionsDTO

func (*ReportOptionsDTO) ContextValidate ¶

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

ContextValidate validate this report options d t o based on the context it is used

func (*ReportOptionsDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*ReportOptionsDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*ReportOptionsDTO) Validate ¶

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

Validate validates this report options d t o

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 {

	// ID The unique identifier (id) of the created/updated dashboard.
	// Example: 1
	// Required: true
	ID *string `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 o k 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 o k 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 o k body

type RestoreDashboardVersionByUIDOKBody ¶

type RestoreDashboardVersionByUIDOKBody struct {

	// ID The unique identifier (id) of the created/updated dashboard.
	// Example: 1
	// Required: true
	ID *string `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 o k 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 o k 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 o k 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 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 d t o

swagger:model RoleAssignmentsDTO

func (*RoleAssignmentsDTO) ContextValidate ¶

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

ContextValidate validates this role assignments d t o 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 d t o

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"`

	// 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 d t o

swagger:model RoleDTO

func (*RoleDTO) ContextValidate ¶

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

ContextValidate validate this role d t o 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 d t o

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 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 s n s config

swagger:model SNSConfig

func (*SNSConfig) ContextValidate ¶

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

ContextValidate validate this s n s 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 s n s config

type Sample ¶

type Sample struct {

	// h
	H *FloatHistogram `json:"H,omitempty"`

	// metric
	Metric Labels `json:"Metric,omitempty"`

	// t
	T int64 `json:"T,omitempty"`

	// v
	V float64 `json:"V,omitempty"`
}

Sample Sample is a single sample belonging to a metric.

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"`

	// folder Id
	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 ScheduleDTO ¶

type ScheduleDTO struct {

	// day
	Day string `json:"day,omitempty"`

	// 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"`

	// hour
	Hour int64 `json:"hour,omitempty"`

	// interval amount
	IntervalAmount int64 `json:"intervalAmount,omitempty"`

	// interval frequency
	IntervalFrequency string `json:"intervalFrequency,omitempty"`

	// minute
	Minute int64 `json:"minute,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"`
}

ScheduleDTO schedule d t o

swagger:model ScheduleDTO

func (*ScheduleDTO) ContextValidate ¶

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

ContextValidate validates this schedule d t o based on context it is used

func (*ScheduleDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*ScheduleDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*ScheduleDTO) Validate ¶

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

Validate validates this schedule d t o

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"`

	// 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 d t o 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 d t o

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"`

	// 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"`

	// 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 d t o

swagger:model ServiceAccountProfileDTO

func (*ServiceAccountProfileDTO) ContextValidate ¶

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

ContextValidate validates this service account profile d t o 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 d t o

type SetHelpFlagOKBody ¶

type SetHelpFlagOKBody struct {

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

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

SetHelpFlagOKBody set help flag o k body

swagger:model setHelpFlagOKBody

func (*SetHelpFlagOKBody) ContextValidate ¶

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

ContextValidate validates this set help flag o k 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 o k body

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 SettingsDTO ¶

type SettingsDTO struct {

	// branding
	Branding *BrandingOptionsDTO `json:"branding,omitempty"`

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

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

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

SettingsDTO settings d t o

swagger:model SettingsDTO

func (*SettingsDTO) ContextValidate ¶

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

ContextValidate validate this settings d t o based on the context it is used

func (*SettingsDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*SettingsDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*SettingsDTO) Validate ¶

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

Validate validates this settings d t o

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 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 Spec ¶

type Spec struct {

	// 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"`
}

Spec Spec defines model for Spec.

swagger:model Spec

func (*Spec) ContextValidate ¶

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

ContextValidate validate this spec based on the context it is used

func (*Spec) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*Spec) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*Spec) Validate ¶

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

Validate validates this spec

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 {

	// The CA cert to use for the targets.
	CaFile string `json:"ca_file,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"`

	// 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 d t o 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 d t o

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 d t o

swagger:model TeamDTO

func (*TeamDTO) ContextValidate ¶

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

ContextValidate validate this team d t o 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 d t o

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 d t o

swagger:model TeamGroupDTO

func (*TeamGroupDTO) ContextValidate ¶

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

ContextValidate validates this team group d t o 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 d t o

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 d t o

swagger:model TeamMemberDTO

func (*TeamMemberDTO) ContextValidate ¶

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

ContextValidate validate this team member d t o 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 d t o

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 d t o

swagger:model TempUserDTO

func (*TempUserDTO) ContextValidate ¶

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

ContextValidate validate this temp user d t o 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 d t o

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 {

	// days of month
	DaysOfMonth []string `json:"days_of_month"`

	// location
	Location string `json:"location,omitempty"`

	// months
	Months []string `json:"months"`

	// times
	Times []*TimeRange `json:"times"`

	// weekdays
	Weekdays []string `json:"weekdays"`

	// years
	Years []string `json:"years"`
}

TimeInterval TimeInterval describes intervals of time. ContainsTime will tell you if a golang time is contained within the interval.

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 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 TimeRangeDTO ¶

type TimeRangeDTO struct {

	// from
	From string `json:"from,omitempty"`

	// to
	To string `json:"to,omitempty"`
}

TimeRangeDTO time range d t o

swagger:model TimeRangeDTO

func (*TimeRangeDTO) ContextValidate ¶

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

ContextValidate validates this time range d t o based on context it is used

func (*TimeRangeDTO) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*TimeRangeDTO) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*TimeRangeDTO) Validate ¶

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

Validate validates this time range d t o

type Token ¶

type Token struct {

	// account
	Account string `json:"account,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 d t o

swagger:model TokenDTO

func (*TokenDTO) ContextValidate ¶

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

ContextValidate validates this token d t o 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 d t o

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 TrimDashboardCommand ¶

type TrimDashboardCommand struct {

	// dashboard
	Dashboard JSON `json:"dashboard,omitempty"`

	// meta
	Meta JSON `json:"meta,omitempty"`
}

TrimDashboardCommand trim dashboard command

swagger:model TrimDashboardCommand

func (*TrimDashboardCommand) ContextValidate ¶

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

ContextValidate validates this trim dashboard command based on context it is used

func (*TrimDashboardCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*TrimDashboardCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*TrimDashboardCommand) Validate ¶

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

Validate validates this trim dashboard command

type TrimDashboardFullWithMeta ¶

type TrimDashboardFullWithMeta struct {

	// dashboard
	Dashboard JSON `json:"dashboard,omitempty"`

	// meta
	Meta JSON `json:"meta,omitempty"`
}

TrimDashboardFullWithMeta trim dashboard full with meta

swagger:model TrimDashboardFullWithMeta

func (*TrimDashboardFullWithMeta) ContextValidate ¶

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

ContextValidate validates this trim dashboard full with meta based on context it is used

func (*TrimDashboardFullWithMeta) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*TrimDashboardFullWithMeta) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*TrimDashboardFullWithMeta) Validate ¶

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

Validate validates this trim dashboard full with meta

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 URL is a custom URL type that allows validation at configuration load time.

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 UpdateAlertNotificationCommand ¶

type UpdateAlertNotificationCommand struct {

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// frequency
	Frequency string `json:"frequency,omitempty"`

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

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

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

	// secure settings
	SecureSettings map[string]string `json:"secureSettings,omitempty"`

	// send reminder
	SendReminder bool `json:"sendReminder,omitempty"`

	// settings
	Settings JSON `json:"settings,omitempty"`

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

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

UpdateAlertNotificationCommand update alert notification command

swagger:model UpdateAlertNotificationCommand

func (*UpdateAlertNotificationCommand) ContextValidate ¶

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

ContextValidate validates this update alert notification command based on context it is used

func (*UpdateAlertNotificationCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*UpdateAlertNotificationCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*UpdateAlertNotificationCommand) Validate ¶

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

Validate validates this update alert notification command

type UpdateAlertNotificationWithUIDCommand ¶

type UpdateAlertNotificationWithUIDCommand struct {

	// disable resolve message
	DisableResolveMessage bool `json:"disableResolveMessage,omitempty"`

	// frequency
	Frequency string `json:"frequency,omitempty"`

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

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

	// secure settings
	SecureSettings map[string]string `json:"secureSettings,omitempty"`

	// send reminder
	SendReminder bool `json:"sendReminder,omitempty"`

	// settings
	Settings JSON `json:"settings,omitempty"`

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

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

UpdateAlertNotificationWithUIDCommand update alert notification with Uid command

swagger:model UpdateAlertNotificationWithUidCommand

func (*UpdateAlertNotificationWithUIDCommand) ContextValidate ¶

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

ContextValidate validates this update alert notification with Uid command based on context it is used

func (*UpdateAlertNotificationWithUIDCommand) MarshalBinary ¶

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

MarshalBinary interface implementation

func (*UpdateAlertNotificationWithUIDCommand) UnmarshalBinary ¶

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

UnmarshalBinary interface implementation

func (*UpdateAlertNotificationWithUIDCommand) Validate ¶

Validate validates this update alert notification with Uid command

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 o k 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 o k 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 o k 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 o k 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 o k 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 o k 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"`

	// NewUID it's an optional parameter used for overriding the existing folder UID
	// Starting with 10.0, this is deprecated. It will be removed in a future release.
	// Please avoid using it because it can result in folder loosing its permissions.
	UID string `json:"uid,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 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 o k body

swagger:model updateServiceAccountOKBody

func (*UpdateServiceAccountOKBody) ContextValidate ¶

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

ContextValidate validate this update service account o k 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 o k 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 d t o

swagger:model UserLookupDTO

func (*UserLookupDTO) ContextValidate ¶

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

ContextValidate validates this user lookup d t o 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 d t o

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 d t o

swagger:model UserOrgDTO

func (*UserOrgDTO) ContextValidate ¶

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

ContextValidate validates this user org d t o 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 d t o

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"`

	// 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"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}

UserProfileDTO user profile d t o

swagger:model UserProfileDTO

func (*UserProfileDTO) ContextValidate ¶

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

ContextValidate validates this user profile d t o 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 d t o

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"`
}

UserSearchHitDTO user search hit d t o

swagger:model UserSearchHitDTO

func (*UserSearchHitDTO) ContextValidate ¶

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

ContextValidate validates this user search hit d t o 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 d t o

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 {

	// msg
	// Example: error message
	Msg string `json:"msg,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 model.Samples, 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