Documentation ¶
Index ¶
- Constants
- type AgentsInfoItems0
- type Client
- type DetailsItems0
- 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" // AgentsInfoItems0AgentTypeRDSEXPORTER captures enum value "RDS_EXPORTER" AgentsInfoItems0AgentTypeRDSEXPORTER string = "RDS_EXPORTER" // AgentsInfoItems0AgentTypeEXTERNALEXPORTER captures enum value "EXTERNAL_EXPORTER" AgentsInfoItems0AgentTypeEXTERNALEXPORTER string = "EXTERNAL_EXPORTER" )
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 RDS_EXPORTER EXTERNAL_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"` }
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 DetailsItems0 ¶
type DetailsItems0 struct { // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent // the fully qualified name of the type (as in // `path/google.protobuf.Duration`). The name should be in a canonical form // (e.g., leading "." is not accepted). // // In practice, teams usually precompile into the binary all types that they // expect it to use in the context of Any. However, for URLs which use the // scheme `http`, `https`, or no scheme, one can optionally set up a type // server that maps type URLs to message definitions as follows: // // * If no scheme is provided, `https` is assumed. // * An HTTP GET on the URL must yield a [google.protobuf.Type][] // value in binary format, or produce an error. // * Applications are allowed to cache lookup results based on the // URL, or have them precompiled into a binary to avoid any // lookup. Therefore, binary compatibility needs to be preserved // on changes to types. (Use versioned type names to manage // breaking changes.) // // Note: this functionality is not currently available in the official // protobuf release, and it is not used for type URLs beginning with // type.googleapis.com. // // Schemes other than `http`, `https` (or the empty scheme) might be // used with implementation specific semantics. TypeURL string `json:"type_url,omitempty"` // Must be a valid serialized protocol buffer of the above specified type. // Format: byte Value strfmt.Base64 `json:"value,omitempty"` }
DetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form // of utility functions or additional generated methods of the Any type. // // Example 1: Pack and unpack a message in C++. // // Foo foo = ...; // Any any; // any.PackFrom(foo); // ... // if (any.UnpackTo(&foo)) { // ... // } // // Example 2: Pack and unpack a message in Java. // // Foo foo = ...; // Any any = Any.pack(foo); // ... // if (any.is(Foo.class)) { // foo = any.unpack(Foo.class); // } // // Example 3: Pack and unpack a message in Python. // // foo = Foo(...) // any = Any() // any.Pack(foo) // ... // if any.Is(Foo.DESCRIPTOR): // any.Unpack(foo) // ... // // Example 4: Pack and unpack a message in Go // // foo := &pb.Foo{...} // any, err := ptypes.MarshalAny(foo) // ... // foo := &pb.Foo{} // if err := ptypes.UnmarshalAny(any, foo); err != nil { // ... // } // // The pack methods provided by protobuf library will by default use // 'type.googleapis.com/full.type.name' as the type URL and the unpack // methods only use the fully qualified type name after the last '/' // in the type URL, for example "foo.bar.com/x/y.z" will yield type // name "y.z". // // // JSON // ==== // The JSON representation of an `Any` value uses the regular // representation of the deserialized, embedded message, with an // additional field `@type` which contains the type URL. Example: // // package google.profile; // message Person { // string first_name = 1; // string last_name = 2; // } // // { // "@type": "type.googleapis.com/google.profile.Person", // "firstName": <string>, // "lastName": <string> // } // // If the embedded message type is well-known and has a custom JSON // representation, that representation will be embedded adding a field // `value` which holds the custom JSON in addition to the `@type` // field. Example (for message [google.protobuf.Duration][]): // // { // "@type": "type.googleapis.com/google.protobuf.Duration", // "value": "1.212s" // } 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
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
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 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
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"` // 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
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
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.