Documentation ¶
Index ¶
- Constants
- type AgentsInfoItems0
- type Client
- type ReloadDefault
- type ReloadDefaultBody
- type ReloadOK
- type ReloadParams
- func (o *ReloadParams) SetBody(body interface{})
- func (o *ReloadParams) SetContext(ctx context.Context)
- func (o *ReloadParams) SetHTTPClient(client *http.Client)
- func (o *ReloadParams) SetTimeout(timeout time.Duration)
- func (o *ReloadParams) WithBody(body interface{}) *ReloadParams
- func (o *ReloadParams) WithContext(ctx context.Context) *ReloadParams
- func (o *ReloadParams) WithHTTPClient(client *http.Client) *ReloadParams
- func (o *ReloadParams) WithTimeout(timeout time.Duration) *ReloadParams
- func (o *ReloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReloadReader
- type StatusBody
- type StatusDefault
- type StatusDefaultBody
- type StatusOK
- type StatusOKBody
- type StatusOKBodyServerInfo
- type StatusParams
- func (o *StatusParams) SetBody(body StatusBody)
- func (o *StatusParams) SetContext(ctx context.Context)
- func (o *StatusParams) SetHTTPClient(client *http.Client)
- func (o *StatusParams) SetTimeout(timeout time.Duration)
- func (o *StatusParams) WithBody(body StatusBody) *StatusParams
- func (o *StatusParams) WithContext(ctx context.Context) *StatusParams
- func (o *StatusParams) WithHTTPClient(client *http.Client) *StatusParams
- func (o *StatusParams) WithTimeout(timeout time.Duration) *StatusParams
- func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StatusReader
Constants ¶
const ( // AgentsInfoItems0AgentTypeAGENTTYPEINVALID captures enum value "AGENT_TYPE_INVALID" AgentsInfoItems0AgentTypeAGENTTYPEINVALID string = "AGENT_TYPE_INVALID" // AgentsInfoItems0AgentTypePMMAGENT captures enum value "PMM_AGENT" AgentsInfoItems0AgentTypePMMAGENT string = "PMM_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" )
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 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] 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"` }
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
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for agent local API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new agent local API client.
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
type ReloadDefault ¶
type ReloadDefault struct { Payload *ReloadDefaultBody // contains filtered or unexported fields }
ReloadDefault handles this case with default header values.
An 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 { // code Code int32 `json:"code,omitempty"` // error Error string `json:"error,omitempty"` // message Message string `json:"message,omitempty"` }
ReloadDefaultBody ErrorResponse is a message returned on HTTP error. 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
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) 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 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
type StatusDefault ¶
type StatusDefault struct { Payload *StatusDefaultBody // contains filtered or unexported fields }
StatusDefault handles this case with default header values.
An 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 { // code Code int32 `json:"code,omitempty"` // error Error string `json:"error,omitempty"` // message Message string `json:"message,omitempty"` }
StatusDefaultBody ErrorResponse is a message returned on HTTP error. 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
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) GetPayload ¶
func (o *StatusOK) GetPayload() *StatusOKBody
type StatusOKBody ¶
type StatusOKBody struct { // agent id AgentID string `json:"agent_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"` // runs on node id RunsOnNodeID string `json:"runs_on_node_id,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
type StatusOKBodyServerInfo ¶
type StatusOKBodyServerInfo struct { // Clock drift from PMM Server (if agent is connected). ClockDrift string `json:"clock_drift,omitempty"` // True if pmm-agent is currently connected to the server. Connected bool `json:"connected,omitempty"` // PMM Server's TLS certificate validation should be skipped if true. InsecureTLS bool `json:"insecure_tls,omitempty"` // Ping time from pmm-agent to pmm-managed (if agent is connected). Latency string `json:"latency,omitempty"` // PMM Server URL in a form https://HOST:PORT/. URL string `json:"url,omitempty"` // PMM Server version (if agent is connected). Version string `json:"version,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
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.