my_sql

package
v2.0.0-beta7+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
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"

	// AddMySQLParamsBodyAddNodeNodeTypeREMOTEAMAZONRDSNODE captures enum value "REMOTE_AMAZON_RDS_NODE"
	AddMySQLParamsBodyAddNodeNodeTypeREMOTEAMAZONRDSNODE string = "REMOTE_AMAZON_RDS_NODE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMySQLBody

type AddMySQLBody struct {

	// add node
	AddNode *AddMySQLParamsBodyAddNode `json:"add_node,omitempty"`

	// Node and Service access address (DNS name or IP). Required.
	Address string `json:"address,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Skip query examples.
	DisableQueryExamples bool `json:"disable_query_examples,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// 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"`

	// MySQL password for scraping metrics.
	Password string `json:"password,omitempty"`

	// The "pmm-agent" identifier which should run agents. Required.
	PMMAgentID string `json:"pmm_agent_id,omitempty"`

	// Service Access port. Required.
	Port int64 `json:"port,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"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Unique across all Services user-defined name. Required.
	ServiceName string `json:"service_name,omitempty"`

	// Skip connection check.
	SkipConnectionCheck bool `json:"skip_connection_check,omitempty"`

	// MySQL username for scraping metrics.
	Username string `json:"username,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

func (*AddMySQLBody) Validate

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

Validate validates this add my SQL body

type AddMySQLDefault

type AddMySQLDefault struct {
	Payload *AddMySQLDefaultBody
	// contains filtered or unexported fields
}

AddMySQLDefault handles this case with default header values.

An 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 {

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

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

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

AddMySQLDefaultBody ErrorResponse is a message returned on HTTP error. 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

func (*AddMySQLDefaultBody) Validate

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

Validate validates this add my SQL default body

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 {

	// 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

func (*AddMySQLOKBody) Validate

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

Validate validates this add my SQL OK body

type AddMySQLOKBodyMysqldExporter

type AddMySQLOKBodyMysqldExporter struct {

	// Unique randomly generated instance identifier.
	AgentID string `json:"agent_id,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Desired Agent status: enabled (false) or disabled (true).
	Disabled bool `json:"disabled,omitempty"`

	// Listen port for scraping metrics.
	ListenPort int64 `json:"listen_port,omitempty"`

	// MySQL password for scraping metrics.
	Password string `json:"password,omitempty"`

	// The pmm-agent identifier which runs this instance.
	PMMAgentID string `json:"pmm_agent_id,omitempty"`

	// Service identifier.
	ServiceID string `json:"service_id,omitempty"`

	// AgentStatus represents actual Agent status.
	// Enum: [AGENT_STATUS_INVALID STARTING RUNNING WAITING STOPPING DONE]
	Status *string `json:"status,omitempty"`

	// MySQL username for scraping metrics.
	Username string `json:"username,omitempty"`
}

AddMySQLOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL and AmazonRDSMySQL 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

func (*AddMySQLOKBodyMysqldExporter) Validate

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

Validate validates this add my SQL OK body mysqld exporter

type AddMySQLOKBodyQANMysqlPerfschema

type AddMySQLOKBodyQANMysqlPerfschema struct {

	// Unique randomly generated instance identifier.
	AgentID string `json:"agent_id,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Desired Agent status: enabled (false) or disabled (true).
	Disabled bool `json:"disabled,omitempty"`

	// MySQL password for getting performance data.
	Password string `json:"password,omitempty"`

	// The pmm-agent identifier which runs this instance.
	PMMAgentID string `json:"pmm_agent_id,omitempty"`

	// Service identifier.
	ServiceID string `json:"service_id,omitempty"`

	// AgentStatus represents actual Agent status.
	// Enum: [AGENT_STATUS_INVALID STARTING RUNNING WAITING STOPPING DONE]
	Status *string `json:"status,omitempty"`

	// MySQL username for getting performance data.
	Username string `json:"username,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

func (*AddMySQLOKBodyQANMysqlPerfschema) Validate

Validate validates this add my SQL OK body QAN mysql perfschema

type AddMySQLOKBodyQANMysqlSlowlog

type AddMySQLOKBodyQANMysqlSlowlog struct {

	// Unique randomly generated instance identifier.
	AgentID string `json:"agent_id,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Desired Agent status: enabled (false) or disabled (true).
	Disabled bool `json:"disabled,omitempty"`

	// MySQL password for getting performance data.
	Password string `json:"password,omitempty"`

	// The pmm-agent identifier which runs this instance.
	PMMAgentID string `json:"pmm_agent_id,omitempty"`

	// Service identifier.
	ServiceID string `json:"service_id,omitempty"`

	// AgentStatus represents actual Agent status.
	// Enum: [AGENT_STATUS_INVALID STARTING RUNNING WAITING STOPPING DONE]
	Status *string `json:"status,omitempty"`

	// MySQL username for getting performance data.
	Username string `json:"username,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

func (*AddMySQLOKBodyQANMysqlSlowlog) Validate

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

Validate validates this add my SQL OK body QAN mysql slowlog

type AddMySQLOKBodyService

type AddMySQLOKBodyService struct {

	// Access address (DNS name or IP).
	Address string `json:"address,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access port.
	Port int64 `json:"port,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,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

func (*AddMySQLOKBodyService) Validate

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

Validate validates this add my SQL OK body service

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 {

	// Node availability zone.
	Az string `json:"az,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"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`

	// Linux distribution name and version.
	Distro string `json:"distro,omitempty"`

	// Linux machine-id.
	// Must be unique across all Generic Nodes if specified.
	MachineID string `json:"machine_id,omitempty"`

	// Node model.
	NodeModel string `json:"node_model,omitempty"`

	// Unique across all Nodes user-defined name. Can't be changed.
	NodeName string `json:"node_name,omitempty"`

	// NodeType describes supported Node types.
	// Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_AMAZON_RDS_NODE]
	NodeType *string `json:"node_type,omitempty"`

	// Node region.
	Region string `json:"region,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

func (*AddMySQLParamsBodyAddNode) Validate

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

Validate validates this add my SQL params body add node

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 New

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

New creates a new my sql API client.

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

Jump to

Keyboard shortcuts

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