models

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 APIScrapeConfigsCreateRequest

type APIScrapeConfigsCreateRequest struct {

	// Check that added targets can be scraped from PMM Server
	CheckReachability bool `json:"check_reachability,omitempty"`

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

	// Scrape targets health for this scrape job
	ScrapeTargetsHealth []*APIScrapeTargetHealth `json:"scrape_targets_health"`
}

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

	// Scrape targets health for all managed scrape jobs
	ScrapeTargetsHealth []*APIScrapeTargetHealth `json:"scrape_targets_health"`
}

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 APIScrapeConfigsUpdateRequest added in v1.7.0

type APIScrapeConfigsUpdateRequest struct {

	// Check that added targets can be scraped from PMM Server
	CheckReachability bool `json:"check_reachability,omitempty"`

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

func (*APIScrapeConfigsUpdateRequest) MarshalBinary added in v1.7.0

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

MarshalBinary interface implementation

func (*APIScrapeConfigsUpdateRequest) UnmarshalBinary added in v1.7.0

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

UnmarshalBinary interface implementation

func (*APIScrapeConfigsUpdateRequest) Validate added in v1.7.0

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

Validate validates this api scrape configs update request

type APIScrapeConfigsUpdateResponse added in v1.7.0

type APIScrapeConfigsUpdateResponse interface{}

type APIScrapeTargetHealth added in v1.7.0

type APIScrapeTargetHealth struct {

	// health
	Health ScrapeTargetHealthHealth `json:"health,omitempty"`

	// "instance" label value, may be different from target due to relabeling
	Instance string `json:"instance,omitempty"`

	// "job" label value, may be different from job_name due to relabeling
	Job string `json:"job,omitempty"`

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

	// Original target
	Target string `json:"target,omitempty"`
}

func (*APIScrapeTargetHealth) MarshalBinary added in v1.7.0

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

MarshalBinary interface implementation

func (*APIScrapeTargetHealth) UnmarshalBinary added in v1.7.0

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

UnmarshalBinary interface implementation

func (*APIScrapeTargetHealth) Validate added in v1.7.0

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

Validate validates this api scrape target health

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

type ScrapeTargetHealthHealth added in v1.7.0

type ScrapeTargetHealthHealth string
const (
	// ScrapeTargetHealthHealthUNKNOWN captures enum value "UNKNOWN"
	ScrapeTargetHealthHealthUNKNOWN ScrapeTargetHealthHealth = "UNKNOWN"
	// ScrapeTargetHealthHealthDOWN captures enum value "DOWN"
	ScrapeTargetHealthHealthDOWN ScrapeTargetHealthHealth = "DOWN"
	// ScrapeTargetHealthHealthUP captures enum value "UP"
	ScrapeTargetHealthHealthUP ScrapeTargetHealthHealth = "UP"
)

func (ScrapeTargetHealthHealth) Validate added in v1.7.0

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

Validate validates this scrape target health health

Jump to

Keyboard shortcuts

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