agent_local

package
v2.18.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: AGPL-3.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

View Source
const (

	// AgentsInfoItems0AgentTypeAGENTTYPEINVALID captures enum value "AGENT_TYPE_INVALID"
	AgentsInfoItems0AgentTypeAGENTTYPEINVALID string = "AGENT_TYPE_INVALID"

	// AgentsInfoItems0AgentTypePMMAGENT captures enum value "PMM_AGENT"
	AgentsInfoItems0AgentTypePMMAGENT string = "PMM_AGENT"

	// AgentsInfoItems0AgentTypeVMAGENT captures enum value "VM_AGENT"
	AgentsInfoItems0AgentTypeVMAGENT string = "VM_AGENT"

	// AgentsInfoItems0AgentTypeNODEEXPORTER captures enum value "NODE_EXPORTER"
	AgentsInfoItems0AgentTypeNODEEXPORTER string = "NODE_EXPORTER"

	// AgentsInfoItems0AgentTypeMYSQLDEXPORTER captures enum value "MYSQLD_EXPORTER"
	AgentsInfoItems0AgentTypeMYSQLDEXPORTER string = "MYSQLD_EXPORTER"

	// AgentsInfoItems0AgentTypeMONGODBEXPORTER captures enum value "MONGODB_EXPORTER"
	AgentsInfoItems0AgentTypeMONGODBEXPORTER string = "MONGODB_EXPORTER"

	// AgentsInfoItems0AgentTypePOSTGRESEXPORTER captures enum value "POSTGRES_EXPORTER"
	AgentsInfoItems0AgentTypePOSTGRESEXPORTER string = "POSTGRES_EXPORTER"

	// AgentsInfoItems0AgentTypePROXYSQLEXPORTER captures enum value "PROXYSQL_EXPORTER"
	AgentsInfoItems0AgentTypePROXYSQLEXPORTER string = "PROXYSQL_EXPORTER"

	// AgentsInfoItems0AgentTypeQANMYSQLPERFSCHEMAAGENT captures enum value "QAN_MYSQL_PERFSCHEMA_AGENT"
	AgentsInfoItems0AgentTypeQANMYSQLPERFSCHEMAAGENT string = "QAN_MYSQL_PERFSCHEMA_AGENT"

	// AgentsInfoItems0AgentTypeQANMYSQLSLOWLOGAGENT captures enum value "QAN_MYSQL_SLOWLOG_AGENT"
	AgentsInfoItems0AgentTypeQANMYSQLSLOWLOGAGENT string = "QAN_MYSQL_SLOWLOG_AGENT"

	// AgentsInfoItems0AgentTypeQANMONGODBPROFILERAGENT captures enum value "QAN_MONGODB_PROFILER_AGENT"
	AgentsInfoItems0AgentTypeQANMONGODBPROFILERAGENT string = "QAN_MONGODB_PROFILER_AGENT"

	// AgentsInfoItems0AgentTypeQANPOSTGRESQLPGSTATEMENTSAGENT captures enum value "QAN_POSTGRESQL_PGSTATEMENTS_AGENT"
	AgentsInfoItems0AgentTypeQANPOSTGRESQLPGSTATEMENTSAGENT string = "QAN_POSTGRESQL_PGSTATEMENTS_AGENT"

	// AgentsInfoItems0AgentTypeQANPOSTGRESQLPGSTATMONITORAGENT captures enum value "QAN_POSTGRESQL_PGSTATMONITOR_AGENT"
	AgentsInfoItems0AgentTypeQANPOSTGRESQLPGSTATMONITORAGENT string = "QAN_POSTGRESQL_PGSTATMONITOR_AGENT"

	// AgentsInfoItems0AgentTypeRDSEXPORTER captures enum value "RDS_EXPORTER"
	AgentsInfoItems0AgentTypeRDSEXPORTER string = "RDS_EXPORTER"

	// AgentsInfoItems0AgentTypeEXTERNALEXPORTER captures enum value "EXTERNAL_EXPORTER"
	AgentsInfoItems0AgentTypeEXTERNALEXPORTER string = "EXTERNAL_EXPORTER"

	// AgentsInfoItems0AgentTypeAZUREDATABASEEXPORTER captures enum value "AZURE_DATABASE_EXPORTER"
	AgentsInfoItems0AgentTypeAZUREDATABASEEXPORTER string = "AZURE_DATABASE_EXPORTER"
)
View Source
const (

	// AgentsInfoItems0StatusAGENTSTATUSINVALID captures enum value "AGENT_STATUS_INVALID"
	AgentsInfoItems0StatusAGENTSTATUSINVALID string = "AGENT_STATUS_INVALID"

	// AgentsInfoItems0StatusSTARTING captures enum value "STARTING"
	AgentsInfoItems0StatusSTARTING string = "STARTING"

	// AgentsInfoItems0StatusRUNNING captures enum value "RUNNING"
	AgentsInfoItems0StatusRUNNING string = "RUNNING"

	// AgentsInfoItems0StatusWAITING captures enum value "WAITING"
	AgentsInfoItems0StatusWAITING string = "WAITING"

	// AgentsInfoItems0StatusSTOPPING captures enum value "STOPPING"
	AgentsInfoItems0StatusSTOPPING string = "STOPPING"

	// AgentsInfoItems0StatusDONE captures enum value "DONE"
	AgentsInfoItems0StatusDONE string = "DONE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentsInfoItems0

type AgentsInfoItems0 struct {

	// agent id
	AgentID string `json:"agent_id,omitempty"`

	// AgentType describes supported Agent types.
	// Enum: [AGENT_TYPE_INVALID PMM_AGENT VM_AGENT NODE_EXPORTER MYSQLD_EXPORTER MONGODB_EXPORTER POSTGRES_EXPORTER PROXYSQL_EXPORTER QAN_MYSQL_PERFSCHEMA_AGENT QAN_MYSQL_SLOWLOG_AGENT QAN_MONGODB_PROFILER_AGENT QAN_POSTGRESQL_PGSTATEMENTS_AGENT QAN_POSTGRESQL_PGSTATMONITOR_AGENT RDS_EXPORTER EXTERNAL_EXPORTER AZURE_DATABASE_EXPORTER]
	AgentType *string `json:"agent_type,omitempty"`

	// AgentStatus represents actual Agent status.
	//
	//  - STARTING: Agent is starting.
	//  - RUNNING: Agent is running.
	//  - WAITING: Agent encountered error and will be restarted automatically soon.
	//  - STOPPING: Agent is stopping.
	//  - DONE: Agent finished.
	// Enum: [AGENT_STATUS_INVALID STARTING RUNNING WAITING STOPPING DONE]
	Status *string `json:"status,omitempty"`

	// The current listen port of this Agent (exporter or vmagent).
	// Zero for other Agent types, or if unknown or not yet supported.
	ListenPort int64 `json:"listen_port,omitempty"`
}

AgentsInfoItems0 AgentInfo contains information about Agent managed by pmm-agent. swagger:model AgentsInfoItems0

func (*AgentsInfoItems0) MarshalBinary

func (o *AgentsInfoItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AgentsInfoItems0) UnmarshalBinary

func (o *AgentsInfoItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AgentsInfoItems0) Validate

func (o *AgentsInfoItems0) Validate(formats strfmt.Registry) error

Validate validates this agents info items0

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for agent local API

func (*Client) Reload

func (a *Client) Reload(params *ReloadParams) (*ReloadOK, error)

Reload reloads reloads pmm agent configuration

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) Status

func (a *Client) Status(params *StatusParams) (*StatusOK, error)

Status statuses returns current pmm agent status

func (*Client) Status2

func (a *Client) Status2(params *Status2Params) (*Status2OK, error)

Status2 statuses returns current pmm agent status

type ClientService

type ClientService interface {
	Reload(params *ReloadParams) (*ReloadOK, error)

	Status(params *StatusParams) (*StatusOK, error)

	Status2(params *Status2Params) (*Status2OK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new agent local API client.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type ReloadDefault

type ReloadDefault struct {
	Payload *ReloadDefaultBody
	// contains filtered or unexported fields
}

ReloadDefault handles this case with default header values.

An unexpected error response.

func NewReloadDefault

func NewReloadDefault(code int) *ReloadDefault

NewReloadDefault creates a ReloadDefault with default headers values

func (*ReloadDefault) Code

func (o *ReloadDefault) Code() int

Code gets the status code for the reload default response

func (*ReloadDefault) Error

func (o *ReloadDefault) Error() string

func (*ReloadDefault) GetPayload

func (o *ReloadDefault) GetPayload() *ReloadDefaultBody

type ReloadDefaultBody

type ReloadDefaultBody struct {

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

	// code
	Code int32 `json:"code,omitempty"`

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

	// details
	Details []*DetailsItems0 `json:"details"`
}

ReloadDefaultBody reload default body swagger:model ReloadDefaultBody

func (*ReloadDefaultBody) MarshalBinary

func (o *ReloadDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReloadDefaultBody) UnmarshalBinary

func (o *ReloadDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReloadDefaultBody) Validate

func (o *ReloadDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this reload default body

type ReloadOK

type ReloadOK struct {
	Payload interface{}
}

ReloadOK handles this case with default header values.

A successful response.

func NewReloadOK

func NewReloadOK() *ReloadOK

NewReloadOK creates a ReloadOK with default headers values

func (*ReloadOK) Error

func (o *ReloadOK) Error() string

func (*ReloadOK) GetPayload

func (o *ReloadOK) GetPayload() interface{}

type ReloadParams

type ReloadParams struct {

	/*Body*/
	Body interface{}

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ReloadParams contains all the parameters to send to the API endpoint for the reload operation typically these are written to a http.Request

func NewReloadParams

func NewReloadParams() *ReloadParams

NewReloadParams creates a new ReloadParams object with the default values initialized.

func NewReloadParamsWithContext

func NewReloadParamsWithContext(ctx context.Context) *ReloadParams

NewReloadParamsWithContext creates a new ReloadParams object with the default values initialized, and the ability to set a context for a request

func NewReloadParamsWithHTTPClient

func NewReloadParamsWithHTTPClient(client *http.Client) *ReloadParams

NewReloadParamsWithHTTPClient creates a new ReloadParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewReloadParamsWithTimeout

func NewReloadParamsWithTimeout(timeout time.Duration) *ReloadParams

NewReloadParamsWithTimeout creates a new ReloadParams object with the default values initialized, and the ability to set a timeout on a request

func (*ReloadParams) SetBody

func (o *ReloadParams) SetBody(body interface{})

SetBody adds the body to the reload params

func (*ReloadParams) SetContext

func (o *ReloadParams) SetContext(ctx context.Context)

SetContext adds the context to the reload params

func (*ReloadParams) SetHTTPClient

func (o *ReloadParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the reload params

func (*ReloadParams) SetTimeout

func (o *ReloadParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the reload params

func (*ReloadParams) WithBody

func (o *ReloadParams) WithBody(body interface{}) *ReloadParams

WithBody adds the body to the reload params

func (*ReloadParams) WithContext

func (o *ReloadParams) WithContext(ctx context.Context) *ReloadParams

WithContext adds the context to the reload params

func (*ReloadParams) WithHTTPClient

func (o *ReloadParams) WithHTTPClient(client *http.Client) *ReloadParams

WithHTTPClient adds the HTTPClient to the reload params

func (*ReloadParams) WithTimeout

func (o *ReloadParams) WithTimeout(timeout time.Duration) *ReloadParams

WithTimeout adds the timeout to the reload params

func (*ReloadParams) WriteToRequest

func (o *ReloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ReloadReader

type ReloadReader struct {
	// contains filtered or unexported fields
}

ReloadReader is a Reader for the Reload structure.

func (*ReloadReader) ReadResponse

func (o *ReloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Status2Default

type Status2Default struct {
	Payload *Status2DefaultBody
	// contains filtered or unexported fields
}

Status2Default handles this case with default header values.

An unexpected error response.

func NewStatus2Default

func NewStatus2Default(code int) *Status2Default

NewStatus2Default creates a Status2Default with default headers values

func (*Status2Default) Code

func (o *Status2Default) Code() int

Code gets the status code for the status2 default response

func (*Status2Default) Error

func (o *Status2Default) Error() string

func (*Status2Default) GetPayload

func (o *Status2Default) GetPayload() *Status2DefaultBody

type Status2DefaultBody

type Status2DefaultBody struct {

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

	// code
	Code int32 `json:"code,omitempty"`

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

	// details
	Details []*DetailsItems0 `json:"details"`
}

Status2DefaultBody status2 default body swagger:model Status2DefaultBody

func (*Status2DefaultBody) MarshalBinary

func (o *Status2DefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Status2DefaultBody) UnmarshalBinary

func (o *Status2DefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Status2DefaultBody) Validate

func (o *Status2DefaultBody) Validate(formats strfmt.Registry) error

Validate validates this status2 default body

type Status2OK

type Status2OK struct {
	Payload *Status2OKBody
}

Status2OK handles this case with default header values.

A successful response.

func NewStatus2OK

func NewStatus2OK() *Status2OK

NewStatus2OK creates a Status2OK with default headers values

func (*Status2OK) Error

func (o *Status2OK) Error() string

func (*Status2OK) GetPayload

func (o *Status2OK) GetPayload() *Status2OKBody

type Status2OKBody

type Status2OKBody struct {

	// agent id
	AgentID string `json:"agent_id,omitempty"`

	// runs on node id
	RunsOnNodeID string `json:"runs_on_node_id,omitempty"`

	// agents info
	AgentsInfo []*AgentsInfoItems0 `json:"agents_info"`

	// Config file path if pmm-agent was started with one.
	ConfigFilepath string `json:"config_filepath,omitempty"`

	// PMM Agent version.
	AgentVersion string `json:"agent_version,omitempty"`

	// server info
	ServerInfo *Status2OKBodyServerInfo `json:"server_info,omitempty"`
}

Status2OKBody status2 OK body swagger:model Status2OKBody

func (*Status2OKBody) MarshalBinary

func (o *Status2OKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Status2OKBody) UnmarshalBinary

func (o *Status2OKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Status2OKBody) Validate

func (o *Status2OKBody) Validate(formats strfmt.Registry) error

Validate validates this status2 OK body

type Status2OKBodyServerInfo

type Status2OKBodyServerInfo struct {

	// PMM Server URL in a form https://HOST:PORT/.
	URL string `json:"url,omitempty"`

	// PMM Server's TLS certificate validation should be skipped if true.
	InsecureTLS bool `json:"insecure_tls,omitempty"`

	// True if pmm-agent is currently connected to the server.
	Connected bool `json:"connected,omitempty"`

	// PMM Server version (if agent is connected).
	Version string `json:"version,omitempty"`

	// Ping time from pmm-agent to pmm-managed (if agent is connected).
	Latency string `json:"latency,omitempty"`

	// Clock drift from PMM Server (if agent is connected).
	ClockDrift string `json:"clock_drift,omitempty"`
}

Status2OKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model Status2OKBodyServerInfo

func (*Status2OKBodyServerInfo) MarshalBinary

func (o *Status2OKBodyServerInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Status2OKBodyServerInfo) UnmarshalBinary

func (o *Status2OKBodyServerInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Status2OKBodyServerInfo) Validate

func (o *Status2OKBodyServerInfo) Validate(formats strfmt.Registry) error

Validate validates this status2 OK body server info

type Status2Params

type Status2Params struct {

	/*GetNetworkInfo
	  Returns network info (latency and clock_drift) if true.

	*/
	GetNetworkInfo *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Status2Params contains all the parameters to send to the API endpoint for the status2 operation typically these are written to a http.Request

func NewStatus2Params

func NewStatus2Params() *Status2Params

NewStatus2Params creates a new Status2Params object with the default values initialized.

func NewStatus2ParamsWithContext

func NewStatus2ParamsWithContext(ctx context.Context) *Status2Params

NewStatus2ParamsWithContext creates a new Status2Params object with the default values initialized, and the ability to set a context for a request

func NewStatus2ParamsWithHTTPClient

func NewStatus2ParamsWithHTTPClient(client *http.Client) *Status2Params

NewStatus2ParamsWithHTTPClient creates a new Status2Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewStatus2ParamsWithTimeout

func NewStatus2ParamsWithTimeout(timeout time.Duration) *Status2Params

NewStatus2ParamsWithTimeout creates a new Status2Params object with the default values initialized, and the ability to set a timeout on a request

func (*Status2Params) SetContext

func (o *Status2Params) SetContext(ctx context.Context)

SetContext adds the context to the status2 params

func (*Status2Params) SetGetNetworkInfo

func (o *Status2Params) SetGetNetworkInfo(getNetworkInfo *bool)

SetGetNetworkInfo adds the getNetworkInfo to the status2 params

func (*Status2Params) SetHTTPClient

func (o *Status2Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the status2 params

func (*Status2Params) SetTimeout

func (o *Status2Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the status2 params

func (*Status2Params) WithContext

func (o *Status2Params) WithContext(ctx context.Context) *Status2Params

WithContext adds the context to the status2 params

func (*Status2Params) WithGetNetworkInfo

func (o *Status2Params) WithGetNetworkInfo(getNetworkInfo *bool) *Status2Params

WithGetNetworkInfo adds the getNetworkInfo to the status2 params

func (*Status2Params) WithHTTPClient

func (o *Status2Params) WithHTTPClient(client *http.Client) *Status2Params

WithHTTPClient adds the HTTPClient to the status2 params

func (*Status2Params) WithTimeout

func (o *Status2Params) WithTimeout(timeout time.Duration) *Status2Params

WithTimeout adds the timeout to the status2 params

func (*Status2Params) WriteToRequest

func (o *Status2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type Status2Reader

type Status2Reader struct {
	// contains filtered or unexported fields
}

Status2Reader is a Reader for the Status2 structure.

func (*Status2Reader) ReadResponse

func (o *Status2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type StatusBody

type StatusBody struct {

	// Returns network info (latency and clock_drift) if true.
	GetNetworkInfo bool `json:"get_network_info,omitempty"`
}

StatusBody status body swagger:model StatusBody

func (*StatusBody) MarshalBinary

func (o *StatusBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StatusBody) UnmarshalBinary

func (o *StatusBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StatusBody) Validate

func (o *StatusBody) Validate(formats strfmt.Registry) error

Validate validates this status body

type StatusDefault

type StatusDefault struct {
	Payload *StatusDefaultBody
	// contains filtered or unexported fields
}

StatusDefault handles this case with default header values.

An unexpected error response.

func NewStatusDefault

func NewStatusDefault(code int) *StatusDefault

NewStatusDefault creates a StatusDefault with default headers values

func (*StatusDefault) Code

func (o *StatusDefault) Code() int

Code gets the status code for the status default response

func (*StatusDefault) Error

func (o *StatusDefault) Error() string

func (*StatusDefault) GetPayload

func (o *StatusDefault) GetPayload() *StatusDefaultBody

type StatusDefaultBody

type StatusDefaultBody struct {

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

	// code
	Code int32 `json:"code,omitempty"`

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

	// details
	Details []*DetailsItems0 `json:"details"`
}

StatusDefaultBody status default body swagger:model StatusDefaultBody

func (*StatusDefaultBody) MarshalBinary

func (o *StatusDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StatusDefaultBody) UnmarshalBinary

func (o *StatusDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StatusDefaultBody) Validate

func (o *StatusDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this status default body

type StatusOK

type StatusOK struct {
	Payload *StatusOKBody
}

StatusOK handles this case with default header values.

A successful response.

func NewStatusOK

func NewStatusOK() *StatusOK

NewStatusOK creates a StatusOK with default headers values

func (*StatusOK) Error

func (o *StatusOK) Error() string

func (*StatusOK) GetPayload

func (o *StatusOK) GetPayload() *StatusOKBody

type StatusOKBody

type StatusOKBody struct {

	// agent id
	AgentID string `json:"agent_id,omitempty"`

	// runs on node id
	RunsOnNodeID string `json:"runs_on_node_id,omitempty"`

	// agents info
	AgentsInfo []*AgentsInfoItems0 `json:"agents_info"`

	// Config file path if pmm-agent was started with one.
	ConfigFilepath string `json:"config_filepath,omitempty"`

	// PMM Agent version.
	AgentVersion string `json:"agent_version,omitempty"`

	// server info
	ServerInfo *StatusOKBodyServerInfo `json:"server_info,omitempty"`
}

StatusOKBody status OK body swagger:model StatusOKBody

func (*StatusOKBody) MarshalBinary

func (o *StatusOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StatusOKBody) UnmarshalBinary

func (o *StatusOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StatusOKBody) Validate

func (o *StatusOKBody) Validate(formats strfmt.Registry) error

Validate validates this status OK body

type StatusOKBodyServerInfo

type StatusOKBodyServerInfo struct {

	// PMM Server URL in a form https://HOST:PORT/.
	URL string `json:"url,omitempty"`

	// PMM Server's TLS certificate validation should be skipped if true.
	InsecureTLS bool `json:"insecure_tls,omitempty"`

	// True if pmm-agent is currently connected to the server.
	Connected bool `json:"connected,omitempty"`

	// PMM Server version (if agent is connected).
	Version string `json:"version,omitempty"`

	// Ping time from pmm-agent to pmm-managed (if agent is connected).
	Latency string `json:"latency,omitempty"`

	// Clock drift from PMM Server (if agent is connected).
	ClockDrift string `json:"clock_drift,omitempty"`
}

StatusOKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model StatusOKBodyServerInfo

func (*StatusOKBodyServerInfo) MarshalBinary

func (o *StatusOKBodyServerInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StatusOKBodyServerInfo) UnmarshalBinary

func (o *StatusOKBodyServerInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StatusOKBodyServerInfo) Validate

func (o *StatusOKBodyServerInfo) Validate(formats strfmt.Registry) error

Validate validates this status OK body server info

type StatusParams

type StatusParams struct {

	/*Body*/
	Body StatusBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StatusParams contains all the parameters to send to the API endpoint for the status operation typically these are written to a http.Request

func NewStatusParams

func NewStatusParams() *StatusParams

NewStatusParams creates a new StatusParams object with the default values initialized.

func NewStatusParamsWithContext

func NewStatusParamsWithContext(ctx context.Context) *StatusParams

NewStatusParamsWithContext creates a new StatusParams object with the default values initialized, and the ability to set a context for a request

func NewStatusParamsWithHTTPClient

func NewStatusParamsWithHTTPClient(client *http.Client) *StatusParams

NewStatusParamsWithHTTPClient creates a new StatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewStatusParamsWithTimeout

func NewStatusParamsWithTimeout(timeout time.Duration) *StatusParams

NewStatusParamsWithTimeout creates a new StatusParams object with the default values initialized, and the ability to set a timeout on a request

func (*StatusParams) SetBody

func (o *StatusParams) SetBody(body StatusBody)

SetBody adds the body to the status params

func (*StatusParams) SetContext

func (o *StatusParams) SetContext(ctx context.Context)

SetContext adds the context to the status params

func (*StatusParams) SetHTTPClient

func (o *StatusParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the status params

func (*StatusParams) SetTimeout

func (o *StatusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the status params

func (*StatusParams) WithBody

func (o *StatusParams) WithBody(body StatusBody) *StatusParams

WithBody adds the body to the status params

func (*StatusParams) WithContext

func (o *StatusParams) WithContext(ctx context.Context) *StatusParams

WithContext adds the context to the status params

func (*StatusParams) WithHTTPClient

func (o *StatusParams) WithHTTPClient(client *http.Client) *StatusParams

WithHTTPClient adds the HTTPClient to the status params

func (*StatusParams) WithTimeout

func (o *StatusParams) WithTimeout(timeout time.Duration) *StatusParams

WithTimeout adds the timeout to the status params

func (*StatusParams) WriteToRequest

func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type StatusReader

type StatusReader struct {
	// contains filtered or unexported fields
}

StatusReader is a Reader for the Status structure.

func (*StatusReader) ReadResponse

func (o *StatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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