Documentation ¶
Index ¶
- Constants
- type AddMySQLBody
- type AddMySQLDefault
- type AddMySQLDefaultBody
- type AddMySQLOK
- type AddMySQLOKBody
- type AddMySQLOKBodyMysqldExporter
- type AddMySQLOKBodyQANMysqlPerfschema
- type AddMySQLOKBodyQANMysqlSlowlog
- type AddMySQLOKBodyService
- type AddMySQLParams
- func (o *AddMySQLParams) SetBody(body AddMySQLBody)
- func (o *AddMySQLParams) SetContext(ctx context.Context)
- func (o *AddMySQLParams) SetHTTPClient(client *http.Client)
- func (o *AddMySQLParams) SetTimeout(timeout time.Duration)
- func (o *AddMySQLParams) WithBody(body AddMySQLBody) *AddMySQLParams
- func (o *AddMySQLParams) WithContext(ctx context.Context) *AddMySQLParams
- func (o *AddMySQLParams) WithHTTPClient(client *http.Client) *AddMySQLParams
- func (o *AddMySQLParams) WithTimeout(timeout time.Duration) *AddMySQLParams
- func (o *AddMySQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddMySQLParamsBodyAddNode
- type AddMySQLReader
- type Client
- type ClientService
- type DetailsItems0
Constants ¶
const ( // AddMySQLBodyMetricsModeAUTO captures enum value "AUTO" AddMySQLBodyMetricsModeAUTO string = "AUTO" // AddMySQLBodyMetricsModePULL captures enum value "PULL" AddMySQLBodyMetricsModePULL string = "PULL" // AddMySQLBodyMetricsModePUSH captures enum value "PUSH" AddMySQLBodyMetricsModePUSH string = "PUSH" )
const ( // AddMySQLOKBodyMysqldExporterStatusAGENTSTATUSINVALID captures enum value "AGENT_STATUS_INVALID" AddMySQLOKBodyMysqldExporterStatusAGENTSTATUSINVALID string = "AGENT_STATUS_INVALID" // AddMySQLOKBodyMysqldExporterStatusSTARTING captures enum value "STARTING" AddMySQLOKBodyMysqldExporterStatusSTARTING string = "STARTING" // AddMySQLOKBodyMysqldExporterStatusRUNNING captures enum value "RUNNING" AddMySQLOKBodyMysqldExporterStatusRUNNING string = "RUNNING" // AddMySQLOKBodyMysqldExporterStatusWAITING captures enum value "WAITING" AddMySQLOKBodyMysqldExporterStatusWAITING string = "WAITING" // AddMySQLOKBodyMysqldExporterStatusSTOPPING captures enum value "STOPPING" AddMySQLOKBodyMysqldExporterStatusSTOPPING string = "STOPPING" // AddMySQLOKBodyMysqldExporterStatusDONE captures enum value "DONE" AddMySQLOKBodyMysqldExporterStatusDONE string = "DONE" )
const ( // AddMySQLOKBodyQANMysqlPerfschemaStatusAGENTSTATUSINVALID captures enum value "AGENT_STATUS_INVALID" AddMySQLOKBodyQANMysqlPerfschemaStatusAGENTSTATUSINVALID string = "AGENT_STATUS_INVALID" // AddMySQLOKBodyQANMysqlPerfschemaStatusSTARTING captures enum value "STARTING" AddMySQLOKBodyQANMysqlPerfschemaStatusSTARTING string = "STARTING" // AddMySQLOKBodyQANMysqlPerfschemaStatusRUNNING captures enum value "RUNNING" AddMySQLOKBodyQANMysqlPerfschemaStatusRUNNING string = "RUNNING" // AddMySQLOKBodyQANMysqlPerfschemaStatusWAITING captures enum value "WAITING" AddMySQLOKBodyQANMysqlPerfschemaStatusWAITING string = "WAITING" // AddMySQLOKBodyQANMysqlPerfschemaStatusSTOPPING captures enum value "STOPPING" AddMySQLOKBodyQANMysqlPerfschemaStatusSTOPPING string = "STOPPING" // AddMySQLOKBodyQANMysqlPerfschemaStatusDONE captures enum value "DONE" AddMySQLOKBodyQANMysqlPerfschemaStatusDONE string = "DONE" )
const ( // AddMySQLOKBodyQANMysqlSlowlogStatusAGENTSTATUSINVALID captures enum value "AGENT_STATUS_INVALID" AddMySQLOKBodyQANMysqlSlowlogStatusAGENTSTATUSINVALID string = "AGENT_STATUS_INVALID" // AddMySQLOKBodyQANMysqlSlowlogStatusSTARTING captures enum value "STARTING" AddMySQLOKBodyQANMysqlSlowlogStatusSTARTING string = "STARTING" // AddMySQLOKBodyQANMysqlSlowlogStatusRUNNING captures enum value "RUNNING" AddMySQLOKBodyQANMysqlSlowlogStatusRUNNING string = "RUNNING" // AddMySQLOKBodyQANMysqlSlowlogStatusWAITING captures enum value "WAITING" AddMySQLOKBodyQANMysqlSlowlogStatusWAITING string = "WAITING" // AddMySQLOKBodyQANMysqlSlowlogStatusSTOPPING captures enum value "STOPPING" AddMySQLOKBodyQANMysqlSlowlogStatusSTOPPING string = "STOPPING" // AddMySQLOKBodyQANMysqlSlowlogStatusDONE captures enum value "DONE" AddMySQLOKBodyQANMysqlSlowlogStatusDONE string = "DONE" )
const ( // AddMySQLParamsBodyAddNodeNodeTypeNODETYPEINVALID captures enum value "NODE_TYPE_INVALID" AddMySQLParamsBodyAddNodeNodeTypeNODETYPEINVALID string = "NODE_TYPE_INVALID" // AddMySQLParamsBodyAddNodeNodeTypeGENERICNODE captures enum value "GENERIC_NODE" AddMySQLParamsBodyAddNodeNodeTypeGENERICNODE string = "GENERIC_NODE" // AddMySQLParamsBodyAddNodeNodeTypeCONTAINERNODE captures enum value "CONTAINER_NODE" AddMySQLParamsBodyAddNodeNodeTypeCONTAINERNODE string = "CONTAINER_NODE" // AddMySQLParamsBodyAddNodeNodeTypeREMOTENODE captures enum value "REMOTE_NODE" AddMySQLParamsBodyAddNodeNodeTypeREMOTENODE string = "REMOTE_NODE" // AddMySQLParamsBodyAddNodeNodeTypeREMOTERDSNODE captures enum value "REMOTE_RDS_NODE" AddMySQLParamsBodyAddNodeNodeTypeREMOTERDSNODE string = "REMOTE_RDS_NODE" // AddMySQLParamsBodyAddNodeNodeTypeREMOTEAZUREDATABASENODE captures enum value "REMOTE_AZURE_DATABASE_NODE" AddMySQLParamsBodyAddNodeNodeTypeREMOTEAZUREDATABASENODE string = "REMOTE_AZURE_DATABASE_NODE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMySQLBody ¶
type AddMySQLBody struct { // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` // Node name on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeName string `json:"node_name,omitempty"` // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` // Node and Service access address (DNS name or IP). // Address (and port) or socket is required. Address string `json:"address,omitempty"` // Service Access port. // Port is required when the address present. Port int64 `json:"port,omitempty"` // Service Access socket. // Address (and port) or socket is required. Socket string `json:"socket,omitempty"` // The "pmm-agent" identifier which should run agents. Required. PMMAgentID string `json:"pmm_agent_id,omitempty"` // Environment name. Environment string `json:"environment,omitempty"` // Cluster name. Cluster string `json:"cluster,omitempty"` // Replication set name. ReplicationSet string `json:"replication_set,omitempty"` // MySQL username for scraping metrics. Username string `json:"username,omitempty"` // MySQL password for scraping metrics. Password string `json:"password,omitempty"` // If true, adds qan-mysql-perfschema-agent for provided service. QANMysqlPerfschema bool `json:"qan_mysql_perfschema,omitempty"` // If true, adds qan-mysql-slowlog-agent for provided service. QANMysqlSlowlog bool `json:"qan_mysql_slowlog,omitempty"` // Custom user-assigned labels for Service. CustomLabels map[string]string `json:"custom_labels,omitempty"` // Skip connection check. SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` // Disable query examples. DisableQueryExamples bool `json:"disable_query_examples,omitempty"` // If qan-mysql-slowlog-agent is added, slowlog file is rotated at this size if > 0. // If zero, server's default value is used. // Use negative value to disable rotation. MaxSlowlogFileSize string `json:"max_slowlog_file_size,omitempty"` // Use TLS for database connections. TLS bool `json:"tls,omitempty"` // Skip TLS certificate and hostname validation. TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` // Certificate Authority certificate chain. TLSCa string `json:"tls_ca,omitempty"` // Client certificate. TLSCert string `json:"tls_cert,omitempty"` // Password for decrypting tls_cert. TLSKey string `json:"tls_key,omitempty"` // Tablestats group collectors will be disabled if there are more than that number of tables. // If zero, server's default value is used. // Use negative value to disable them. TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"` // MetricsMode defines desired metrics mode for agent, // it can be pull, push or auto mode chosen by server. // Enum: [AUTO PULL PUSH] MetricsMode *string `json:"metrics_mode,omitempty"` // List of collector names to disable in this exporter. DisableCollectors []string `json:"disable_collectors"` // add node AddNode *AddMySQLParamsBodyAddNode `json:"add_node,omitempty"` }
AddMySQLBody add my SQL body swagger:model AddMySQLBody
func (*AddMySQLBody) MarshalBinary ¶
func (o *AddMySQLBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLBody) UnmarshalBinary ¶
func (o *AddMySQLBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLDefault ¶
type AddMySQLDefault struct { Payload *AddMySQLDefaultBody // contains filtered or unexported fields }
AddMySQLDefault handles this case with default header values.
An unexpected error response.
func NewAddMySQLDefault ¶
func NewAddMySQLDefault(code int) *AddMySQLDefault
NewAddMySQLDefault creates a AddMySQLDefault with default headers values
func (*AddMySQLDefault) Code ¶
func (o *AddMySQLDefault) Code() int
Code gets the status code for the add my SQL default response
func (*AddMySQLDefault) Error ¶
func (o *AddMySQLDefault) Error() string
func (*AddMySQLDefault) GetPayload ¶
func (o *AddMySQLDefault) GetPayload() *AddMySQLDefaultBody
type AddMySQLDefaultBody ¶
type AddMySQLDefaultBody struct { // error Error string `json:"error,omitempty"` // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` // details Details []*DetailsItems0 `json:"details"` }
AddMySQLDefaultBody add my SQL default body swagger:model AddMySQLDefaultBody
func (*AddMySQLDefaultBody) MarshalBinary ¶
func (o *AddMySQLDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLDefaultBody) UnmarshalBinary ¶
func (o *AddMySQLDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLOK ¶
type AddMySQLOK struct {
Payload *AddMySQLOKBody
}
AddMySQLOK handles this case with default header values.
A successful response.
func NewAddMySQLOK ¶
func NewAddMySQLOK() *AddMySQLOK
NewAddMySQLOK creates a AddMySQLOK with default headers values
func (*AddMySQLOK) Error ¶
func (o *AddMySQLOK) Error() string
func (*AddMySQLOK) GetPayload ¶
func (o *AddMySQLOK) GetPayload() *AddMySQLOKBody
type AddMySQLOKBody ¶
type AddMySQLOKBody struct { // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` // mysqld exporter MysqldExporter *AddMySQLOKBodyMysqldExporter `json:"mysqld_exporter,omitempty"` // qan mysql perfschema QANMysqlPerfschema *AddMySQLOKBodyQANMysqlPerfschema `json:"qan_mysql_perfschema,omitempty"` // qan mysql slowlog QANMysqlSlowlog *AddMySQLOKBodyQANMysqlSlowlog `json:"qan_mysql_slowlog,omitempty"` // service Service *AddMySQLOKBodyService `json:"service,omitempty"` }
AddMySQLOKBody add my SQL OK body swagger:model AddMySQLOKBody
func (*AddMySQLOKBody) MarshalBinary ¶
func (o *AddMySQLOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLOKBody) UnmarshalBinary ¶
func (o *AddMySQLOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLOKBodyMysqldExporter ¶
type AddMySQLOKBodyMysqldExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` // Desired Agent status: enabled (false) or disabled (true). Disabled bool `json:"disabled,omitempty"` // Service identifier. ServiceID string `json:"service_id,omitempty"` // MySQL username for scraping metrics. Username string `json:"username,omitempty"` // Use TLS for database connections. TLS bool `json:"tls,omitempty"` // Skip TLS certificate and hostname validation. TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` // Certificate Authority certificate chain. TLSCa string `json:"tls_ca,omitempty"` // Client certificate. TLSCert string `json:"tls_cert,omitempty"` // Password for decrypting tls_cert. TLSKey string `json:"tls_key,omitempty"` // Tablestats group collectors are disabled if there are more than that number of tables. // 0 means tablestats group collectors are always enabled (no limit). // Negative value means tablestats group collectors are always disabled. TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"` // Custom user-assigned labels. CustomLabels map[string]string `json:"custom_labels,omitempty"` // True if exporter uses push metrics mode. PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` // List of disabled collector names. DisabledCollectors []string `json:"disabled_collectors"` // 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"` // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` // True if tablestats group collectors are currently disabled. TablestatsGroupDisabled bool `json:"tablestats_group_disabled,omitempty"` }
AddMySQLOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model AddMySQLOKBodyMysqldExporter
func (*AddMySQLOKBodyMysqldExporter) MarshalBinary ¶
func (o *AddMySQLOKBodyMysqldExporter) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLOKBodyMysqldExporter) UnmarshalBinary ¶
func (o *AddMySQLOKBodyMysqldExporter) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLOKBodyQANMysqlPerfschema ¶
type AddMySQLOKBodyQANMysqlPerfschema struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` // Desired Agent status: enabled (false) or disabled (true). Disabled bool `json:"disabled,omitempty"` // Service identifier. ServiceID string `json:"service_id,omitempty"` // MySQL username for getting performance data. Username string `json:"username,omitempty"` // Use TLS for database connections. TLS bool `json:"tls,omitempty"` // Skip TLS certificate and hostname validation. TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` // Certificate Authority certificate chain. TLSCa string `json:"tls_ca,omitempty"` // Client certificate. TLSCert string `json:"tls_cert,omitempty"` // Password for decrypting tls_cert. TLSKey string `json:"tls_key,omitempty"` // True if query examples are disabled. QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` // Custom user-assigned labels. CustomLabels map[string]string `json:"custom_labels,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"` }
AddMySQLOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddMySQLOKBodyQANMysqlPerfschema
func (*AddMySQLOKBodyQANMysqlPerfschema) MarshalBinary ¶
func (o *AddMySQLOKBodyQANMysqlPerfschema) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLOKBodyQANMysqlPerfschema) UnmarshalBinary ¶
func (o *AddMySQLOKBodyQANMysqlPerfschema) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLOKBodyQANMysqlSlowlog ¶
type AddMySQLOKBodyQANMysqlSlowlog struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` // Desired Agent status: enabled (false) or disabled (true). Disabled bool `json:"disabled,omitempty"` // Service identifier. ServiceID string `json:"service_id,omitempty"` // MySQL username for getting performance data. Username string `json:"username,omitempty"` // Use TLS for database connections. TLS bool `json:"tls,omitempty"` // Skip TLS certificate and hostname validation. TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` // Certificate Authority certificate chain. TLSCa string `json:"tls_ca,omitempty"` // Client certificate. TLSCert string `json:"tls_cert,omitempty"` // Password for decrypting tls_cert. TLSKey string `json:"tls_key,omitempty"` // True if query examples are disabled. QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` // Slowlog file is rotated at this size if > 0. MaxSlowlogFileSize string `json:"max_slowlog_file_size,omitempty"` // Custom user-assigned labels. CustomLabels map[string]string `json:"custom_labels,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"` }
AddMySQLOKBodyQANMysqlSlowlog QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddMySQLOKBodyQANMysqlSlowlog
func (*AddMySQLOKBodyQANMysqlSlowlog) MarshalBinary ¶
func (o *AddMySQLOKBodyQANMysqlSlowlog) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLOKBodyQANMysqlSlowlog) UnmarshalBinary ¶
func (o *AddMySQLOKBodyQANMysqlSlowlog) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLOKBodyService ¶
type AddMySQLOKBodyService struct { // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` // Unique across all Services user-defined name. ServiceName string `json:"service_name,omitempty"` // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` // Access address (DNS name or IP). // Address (and port) or socket is required. Address string `json:"address,omitempty"` // Access port. // Port is required when the address present. Port int64 `json:"port,omitempty"` // Access unix socket. // Address (and port) or socket is required. Socket string `json:"socket,omitempty"` // Environment name. Environment string `json:"environment,omitempty"` // Cluster name. Cluster string `json:"cluster,omitempty"` // Replication set name. ReplicationSet string `json:"replication_set,omitempty"` // Custom user-assigned labels. CustomLabels map[string]string `json:"custom_labels,omitempty"` }
AddMySQLOKBodyService MySQLService represents a generic MySQL instance. swagger:model AddMySQLOKBodyService
func (*AddMySQLOKBodyService) MarshalBinary ¶
func (o *AddMySQLOKBodyService) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLOKBodyService) UnmarshalBinary ¶
func (o *AddMySQLOKBodyService) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLParams ¶
type AddMySQLParams struct { /*Body*/ Body AddMySQLBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddMySQLParams contains all the parameters to send to the API endpoint for the add my SQL operation typically these are written to a http.Request
func NewAddMySQLParams ¶
func NewAddMySQLParams() *AddMySQLParams
NewAddMySQLParams creates a new AddMySQLParams object with the default values initialized.
func NewAddMySQLParamsWithContext ¶
func NewAddMySQLParamsWithContext(ctx context.Context) *AddMySQLParams
NewAddMySQLParamsWithContext creates a new AddMySQLParams object with the default values initialized, and the ability to set a context for a request
func NewAddMySQLParamsWithHTTPClient ¶
func NewAddMySQLParamsWithHTTPClient(client *http.Client) *AddMySQLParams
NewAddMySQLParamsWithHTTPClient creates a new AddMySQLParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddMySQLParamsWithTimeout ¶
func NewAddMySQLParamsWithTimeout(timeout time.Duration) *AddMySQLParams
NewAddMySQLParamsWithTimeout creates a new AddMySQLParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddMySQLParams) SetBody ¶
func (o *AddMySQLParams) SetBody(body AddMySQLBody)
SetBody adds the body to the add my SQL params
func (*AddMySQLParams) SetContext ¶
func (o *AddMySQLParams) SetContext(ctx context.Context)
SetContext adds the context to the add my SQL params
func (*AddMySQLParams) SetHTTPClient ¶
func (o *AddMySQLParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add my SQL params
func (*AddMySQLParams) SetTimeout ¶
func (o *AddMySQLParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add my SQL params
func (*AddMySQLParams) WithBody ¶
func (o *AddMySQLParams) WithBody(body AddMySQLBody) *AddMySQLParams
WithBody adds the body to the add my SQL params
func (*AddMySQLParams) WithContext ¶
func (o *AddMySQLParams) WithContext(ctx context.Context) *AddMySQLParams
WithContext adds the context to the add my SQL params
func (*AddMySQLParams) WithHTTPClient ¶
func (o *AddMySQLParams) WithHTTPClient(client *http.Client) *AddMySQLParams
WithHTTPClient adds the HTTPClient to the add my SQL params
func (*AddMySQLParams) WithTimeout ¶
func (o *AddMySQLParams) WithTimeout(timeout time.Duration) *AddMySQLParams
WithTimeout adds the timeout to the add my SQL params
func (*AddMySQLParams) WriteToRequest ¶
func (o *AddMySQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddMySQLParamsBodyAddNode ¶
type AddMySQLParamsBodyAddNode struct { // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` // Linux machine-id. MachineID string `json:"machine_id,omitempty"` // Linux distribution name and version. Distro string `json:"distro,omitempty"` // Container identifier. If specified, must be a unique Docker container identifier. ContainerID string `json:"container_id,omitempty"` // Container name. ContainerName string `json:"container_name,omitempty"` // Node model. NodeModel string `json:"node_model,omitempty"` // Node region. Region string `json:"region,omitempty"` // Node availability zone. Az string `json:"az,omitempty"` // Custom user-assigned labels for Node. CustomLabels map[string]string `json:"custom_labels,omitempty"` }
AddMySQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddMySQLParamsBodyAddNode
func (*AddMySQLParamsBodyAddNode) MarshalBinary ¶
func (o *AddMySQLParamsBodyAddNode) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddMySQLParamsBodyAddNode) UnmarshalBinary ¶
func (o *AddMySQLParamsBodyAddNode) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddMySQLReader ¶
type AddMySQLReader struct {
// contains filtered or unexported fields
}
AddMySQLReader is a Reader for the AddMySQL structure.
func (*AddMySQLReader) ReadResponse ¶
func (o *AddMySQLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for my sql API
func (*Client) AddMySQL ¶
func (a *Client) AddMySQL(params *AddMySQLParams) (*AddMySQLOK, error)
AddMySQL adds my SQL adds my SQL service and starts several agents it automatically adds a service to inventory which is running on provided node id then adds mysqld exporter and qan mysql perfschema agents with provided pmm agent id and other parameters
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { AddMySQL(params *AddMySQLParams) (*AddMySQLOK, 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 my sql API 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