models

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIAlertRule

type APIAlertRule struct {

	// disabled
	Disabled bool `json:"disabled,omitempty"`

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

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

func (*APIAlertRule) MarshalBinary

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

MarshalBinary interface implementation

func (*APIAlertRule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIAlertRule) Validate

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

Validate validates this api alert rule

type APIAlertsGetResponse

type APIAlertsGetResponse struct {

	// alert rule
	AlertRule *APIAlertRule `json:"alert_rule,omitempty"`
}

func (*APIAlertsGetResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*APIAlertsGetResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIAlertsGetResponse) Validate

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

Validate validates this api alerts get response

type APIAlertsListResponse

type APIAlertsListResponse struct {

	// alert rules
	AlertRules []*APIAlertRule `json:"alert_rules"`
}

func (*APIAlertsListResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*APIAlertsListResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIAlertsListResponse) Validate

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

Validate validates this api alerts list response

type APIBaseVersionResponse

type APIBaseVersionResponse struct {

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

func (*APIBaseVersionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*APIBaseVersionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIBaseVersionResponse) Validate

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

Validate validates this api base version response

type APIBasicAuth

type APIBasicAuth struct {

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

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

func (*APIBasicAuth) MarshalBinary

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

MarshalBinary interface implementation

func (*APIBasicAuth) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIBasicAuth) Validate

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

Validate validates this api basic auth

type APIDemoErrorResponse

type APIDemoErrorResponse interface{}

type APILabelPair

type APILabelPair struct {

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

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

func (*APILabelPair) MarshalBinary

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

MarshalBinary interface implementation

func (*APILabelPair) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APILabelPair) Validate

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

Validate validates this api label pair

type APIRDSAddRequest added in v1.5.0

type APIRDSAddRequest struct {

	// aws access key id
	AwsAccessKeyID string `json:"aws_access_key_id,omitempty"`

	// aws secret access key
	AwsSecretAccessKey string `json:"aws_secret_access_key,omitempty"`

	// id
	ID *APIRDSInstanceID `json:"id,omitempty"`

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

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

func (*APIRDSAddRequest) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSAddRequest) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSAddRequest) Validate added in v1.5.0

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

Validate validates this api r d s add request

type APIRDSAddResponse added in v1.5.0

type APIRDSAddResponse interface{}

type APIRDSDiscoverRequest added in v1.5.0

type APIRDSDiscoverRequest struct {

	// aws access key id
	AwsAccessKeyID string `json:"aws_access_key_id,omitempty"`

	// aws secret access key
	AwsSecretAccessKey string `json:"aws_secret_access_key,omitempty"`
}

func (*APIRDSDiscoverRequest) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSDiscoverRequest) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSDiscoverRequest) Validate added in v1.5.0

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

Validate validates this api r d s discover request

type APIRDSDiscoverResponse added in v1.5.0

type APIRDSDiscoverResponse struct {

	// instances
	Instances []*APIRDSInstance `json:"instances"`
}

func (*APIRDSDiscoverResponse) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSDiscoverResponse) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSDiscoverResponse) Validate added in v1.5.0

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

Validate validates this api r d s discover response

type APIRDSInstance added in v1.5.0

type APIRDSInstance struct {

	// node
	Node *APIRDSNode `json:"node,omitempty"`

	// service
	Service *APIRDSService `json:"service,omitempty"`
}

func (*APIRDSInstance) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSInstance) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSInstance) Validate added in v1.5.0

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

Validate validates this api r d s instance

type APIRDSInstanceID added in v1.5.0

type APIRDSInstanceID struct {

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

	// region
	Region string `json:"region,omitempty"`
}

func (*APIRDSInstanceID) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSInstanceID) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSInstanceID) Validate added in v1.5.0

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

Validate validates this api r d s instance ID

type APIRDSListResponse added in v1.5.0

type APIRDSListResponse struct {

	// instances
	Instances []*APIRDSInstance `json:"instances"`
}

func (*APIRDSListResponse) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSListResponse) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSListResponse) Validate added in v1.5.0

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

Validate validates this api r d s list response

type APIRDSNode added in v1.5.0

type APIRDSNode struct {

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

	// region
	Region string `json:"region,omitempty"`
}

func (*APIRDSNode) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSNode) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSNode) Validate added in v1.5.0

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

Validate validates this api r d s node

type APIRDSRemoveRequest added in v1.5.0

type APIRDSRemoveRequest struct {

	// id
	ID *APIRDSInstanceID `json:"id,omitempty"`
}

func (*APIRDSRemoveRequest) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSRemoveRequest) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSRemoveRequest) Validate added in v1.5.0

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

Validate validates this api r d s remove request

type APIRDSRemoveResponse added in v1.5.0

type APIRDSRemoveResponse interface{}

type APIRDSService added in v1.5.0

type APIRDSService struct {

	// address
	Address string `json:"address,omitempty"`

	// engine
	Engine string `json:"engine,omitempty"`

	// engine version
	EngineVersion string `json:"engine_version,omitempty"`

	// port
	Port int64 `json:"port,omitempty"`
}

func (*APIRDSService) MarshalBinary added in v1.5.0

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

MarshalBinary interface implementation

func (*APIRDSService) UnmarshalBinary added in v1.5.0

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

UnmarshalBinary interface implementation

func (*APIRDSService) Validate added in v1.5.0

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

Validate validates this api r d s service

type APIScrapeConfig

type APIScrapeConfig struct {

	// Sets the `Authorization` header on every scrape request with the configured username and password
	BasicAuth *APIBasicAuth `json:"basic_auth,omitempty"`

	// The job name assigned to scraped metrics by default: "example-job" (required)
	JobName string `json:"job_name,omitempty"`

	// The HTTP resource path on which to fetch metrics from targets: "/metrics"
	MetricsPath string `json:"metrics_path,omitempty"`

	// Configures the protocol scheme used for requests: "http" or "https"
	Scheme string `json:"scheme,omitempty"`

	// How frequently to scrape targets from this job: "10s"
	ScrapeInterval string `json:"scrape_interval,omitempty"`

	// Per-scrape timeout when scraping this job: "5s"
	ScrapeTimeout string `json:"scrape_timeout,omitempty"`

	// List of labeled statically configured targets for this job
	StaticConfigs []*APIStaticConfig `json:"static_configs"`

	// Configures the scrape request's TLS settings
	TLSConfig *APITLSConfig `json:"tls_config,omitempty"`
}

func (*APIScrapeConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*APIScrapeConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIScrapeConfig) Validate

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

Validate validates this api scrape config

type APIScrapeConfigsAddStaticTargetsRequest

type APIScrapeConfigsAddStaticTargetsRequest struct {

	// job name
	JobName string `json:"job_name,omitempty"`

	// Hostnames or IPs followed by an optional port number: "1.2.3.4:9090"
	Targets []string `json:"targets"`
}

func (*APIScrapeConfigsAddStaticTargetsRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*APIScrapeConfigsAddStaticTargetsRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIScrapeConfigsAddStaticTargetsRequest) Validate

Validate validates this api scrape configs add static targets request

type APIScrapeConfigsAddStaticTargetsResponse

type APIScrapeConfigsAddStaticTargetsResponse interface{}

type APIScrapeConfigsCreateRequest

type APIScrapeConfigsCreateRequest struct {

	// scrape config
	ScrapeConfig *APIScrapeConfig `json:"scrape_config,omitempty"`
}

func (*APIScrapeConfigsCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*APIScrapeConfigsCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIScrapeConfigsCreateRequest) Validate

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

Validate validates this api scrape configs create request

type APIScrapeConfigsCreateResponse

type APIScrapeConfigsCreateResponse interface{}

type APIScrapeConfigsDeleteResponse

type APIScrapeConfigsDeleteResponse interface{}

type APIScrapeConfigsGetResponse

type APIScrapeConfigsGetResponse struct {

	// scrape config
	ScrapeConfig *APIScrapeConfig `json:"scrape_config,omitempty"`
}

func (*APIScrapeConfigsGetResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*APIScrapeConfigsGetResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIScrapeConfigsGetResponse) Validate

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

Validate validates this api scrape configs get response

type APIScrapeConfigsListResponse

type APIScrapeConfigsListResponse struct {

	// scrape configs
	ScrapeConfigs []*APIScrapeConfig `json:"scrape_configs"`
}

func (*APIScrapeConfigsListResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*APIScrapeConfigsListResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIScrapeConfigsListResponse) Validate

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

Validate validates this api scrape configs list response

type APIScrapeConfigsRemoveStaticTargetsRequest

type APIScrapeConfigsRemoveStaticTargetsRequest struct {

	// job name
	JobName string `json:"job_name,omitempty"`

	// Hostnames or IPs followed by an optional port number: "1.2.3.4:9090"
	Targets []string `json:"targets"`
}

func (*APIScrapeConfigsRemoveStaticTargetsRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*APIScrapeConfigsRemoveStaticTargetsRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIScrapeConfigsRemoveStaticTargetsRequest) Validate

Validate validates this api scrape configs remove static targets request

type APIScrapeConfigsRemoveStaticTargetsResponse

type APIScrapeConfigsRemoveStaticTargetsResponse interface{}

type APIStaticConfig

type APIStaticConfig struct {

	// Labels assigned to all metrics scraped from the targets
	Labels []*APILabelPair `json:"labels"`

	// Hostnames or IPs followed by an optional port number: "1.2.3.4:9090"
	Targets []string `json:"targets"`
}

func (*APIStaticConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*APIStaticConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIStaticConfig) Validate

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

Validate validates this api static config

type APITLSConfig

type APITLSConfig struct {

	// insecure skip verify
	InsecureSkipVerify bool `json:"insecure_skip_verify,omitempty"`
}

func (*APITLSConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*APITLSConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APITLSConfig) Validate

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

Validate validates this api TLS config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL