Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 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