postgre_sql

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: 0

Documentation

Index

Constants

View Source
const (

	// AddPostgreSQLBodyMetricsModeAUTO captures enum value "AUTO"
	AddPostgreSQLBodyMetricsModeAUTO string = "AUTO"

	// AddPostgreSQLBodyMetricsModePULL captures enum value "PULL"
	AddPostgreSQLBodyMetricsModePULL string = "PULL"

	// AddPostgreSQLBodyMetricsModePUSH captures enum value "PUSH"
	AddPostgreSQLBodyMetricsModePUSH string = "PUSH"
)
View Source
const (

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

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

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

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

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

	// AddPostgreSQLOKBodyPostgresExporterStatusDONE captures enum value "DONE"
	AddPostgreSQLOKBodyPostgresExporterStatusDONE string = "DONE"
)
View Source
const (

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

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

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

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

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

	// AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgentStatusDONE captures enum value "DONE"
	AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgentStatusDONE string = "DONE"
)
View Source
const (

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

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

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

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

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

	// AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgentStatusDONE captures enum value "DONE"
	AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgentStatusDONE string = "DONE"
)
View Source
const (

	// AddPostgreSQLParamsBodyAddNodeNodeTypeNODETYPEINVALID captures enum value "NODE_TYPE_INVALID"
	AddPostgreSQLParamsBodyAddNodeNodeTypeNODETYPEINVALID string = "NODE_TYPE_INVALID"

	// AddPostgreSQLParamsBodyAddNodeNodeTypeGENERICNODE captures enum value "GENERIC_NODE"
	AddPostgreSQLParamsBodyAddNodeNodeTypeGENERICNODE string = "GENERIC_NODE"

	// AddPostgreSQLParamsBodyAddNodeNodeTypeCONTAINERNODE captures enum value "CONTAINER_NODE"
	AddPostgreSQLParamsBodyAddNodeNodeTypeCONTAINERNODE string = "CONTAINER_NODE"

	// AddPostgreSQLParamsBodyAddNodeNodeTypeREMOTENODE captures enum value "REMOTE_NODE"
	AddPostgreSQLParamsBodyAddNodeNodeTypeREMOTENODE string = "REMOTE_NODE"

	// AddPostgreSQLParamsBodyAddNodeNodeTypeREMOTERDSNODE captures enum value "REMOTE_RDS_NODE"
	AddPostgreSQLParamsBodyAddNodeNodeTypeREMOTERDSNODE string = "REMOTE_RDS_NODE"

	// AddPostgreSQLParamsBodyAddNodeNodeTypeREMOTEAZUREDATABASENODE captures enum value "REMOTE_AZURE_DATABASE_NODE"
	AddPostgreSQLParamsBodyAddNodeNodeTypeREMOTEAZUREDATABASENODE string = "REMOTE_AZURE_DATABASE_NODE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPostgreSQLBody

type AddPostgreSQLBody 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"`

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

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

	// If true, adds qan-postgresql-pgstatements-agent for provided service.
	QANPostgresqlPgstatementsAgent bool `json:"qan_postgresql_pgstatements_agent,omitempty"`

	// If true, adds qan-postgresql-pgstatmonitor-agent for provided service.
	QANPostgresqlPgstatmonitorAgent bool `json:"qan_postgresql_pgstatmonitor_agent,omitempty"`

	// Disable query examples.
	DisableQueryExamples bool `json:"disable_query_examples,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"`

	// Use TLS for database connections.
	TLS bool `json:"tls,omitempty"`

	// Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.
	TLSSkipVerify bool `json:"tls_skip_verify,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 *AddPostgreSQLParamsBodyAddNode `json:"add_node,omitempty"`
}

AddPostgreSQLBody add postgre SQL body swagger:model AddPostgreSQLBody

func (*AddPostgreSQLBody) MarshalBinary

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

MarshalBinary interface implementation

func (*AddPostgreSQLBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddPostgreSQLBody) Validate

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

Validate validates this add postgre SQL body

type AddPostgreSQLDefault

type AddPostgreSQLDefault struct {
	Payload *AddPostgreSQLDefaultBody
	// contains filtered or unexported fields
}

AddPostgreSQLDefault handles this case with default header values.

An unexpected error response.

func NewAddPostgreSQLDefault

func NewAddPostgreSQLDefault(code int) *AddPostgreSQLDefault

NewAddPostgreSQLDefault creates a AddPostgreSQLDefault with default headers values

func (*AddPostgreSQLDefault) Code

func (o *AddPostgreSQLDefault) Code() int

Code gets the status code for the add postgre SQL default response

func (*AddPostgreSQLDefault) Error

func (o *AddPostgreSQLDefault) Error() string

func (*AddPostgreSQLDefault) GetPayload

type AddPostgreSQLDefaultBody

type AddPostgreSQLDefaultBody struct {

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

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

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

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

AddPostgreSQLDefaultBody add postgre SQL default body swagger:model AddPostgreSQLDefaultBody

func (*AddPostgreSQLDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*AddPostgreSQLDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddPostgreSQLDefaultBody) Validate

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

Validate validates this add postgre SQL default body

type AddPostgreSQLOK

type AddPostgreSQLOK struct {
	Payload *AddPostgreSQLOKBody
}

AddPostgreSQLOK handles this case with default header values.

A successful response.

func NewAddPostgreSQLOK

func NewAddPostgreSQLOK() *AddPostgreSQLOK

NewAddPostgreSQLOK creates a AddPostgreSQLOK with default headers values

func (*AddPostgreSQLOK) Error

func (o *AddPostgreSQLOK) Error() string

func (*AddPostgreSQLOK) GetPayload

func (o *AddPostgreSQLOK) GetPayload() *AddPostgreSQLOKBody

type AddPostgreSQLOKBody

type AddPostgreSQLOKBody struct {

	// postgres exporter
	PostgresExporter *AddPostgreSQLOKBodyPostgresExporter `json:"postgres_exporter,omitempty"`

	// qan postgresql pgstatements agent
	QANPostgresqlPgstatementsAgent *AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"`

	// qan postgresql pgstatmonitor agent
	QANPostgresqlPgstatmonitorAgent *AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"`

	// service
	Service *AddPostgreSQLOKBodyService `json:"service,omitempty"`
}

AddPostgreSQLOKBody add postgre SQL OK body swagger:model AddPostgreSQLOKBody

func (*AddPostgreSQLOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*AddPostgreSQLOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddPostgreSQLOKBody) Validate

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

Validate validates this add postgre SQL OK body

type AddPostgreSQLOKBodyPostgresExporter

type AddPostgreSQLOKBodyPostgresExporter 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"`

	// PostgreSQL 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. Uses sslmode=required instead of verify-full.
	TLSSkipVerify bool `json:"tls_skip_verify,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"`
}

AddPostgreSQLOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. swagger:model AddPostgreSQLOKBodyPostgresExporter

func (*AddPostgreSQLOKBodyPostgresExporter) MarshalBinary

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

MarshalBinary interface implementation

func (*AddPostgreSQLOKBodyPostgresExporter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddPostgreSQLOKBodyPostgresExporter) Validate

Validate validates this add postgre SQL OK body postgres exporter

type AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent

type AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent 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"`

	// PostgreSQL username for getting pg stat statements 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"`

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

AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent

func (*AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent) MarshalBinary

MarshalBinary interface implementation

func (*AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent) Validate

Validate validates this add postgre SQL OK body QAN postgresql pgstatements agent

type AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent

type AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent 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"`

	// PostgreSQL username for getting pg stat monitor 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"`

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

AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent

func (*AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent) MarshalBinary

MarshalBinary interface implementation

func (*AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent) Validate

Validate validates this add postgre SQL OK body QAN postgresql pgstatmonitor agent

type AddPostgreSQLOKBodyService

type AddPostgreSQLOKBodyService 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"`
}

AddPostgreSQLOKBodyService PostgreSQLService represents a generic PostgreSQL instance. swagger:model AddPostgreSQLOKBodyService

func (*AddPostgreSQLOKBodyService) MarshalBinary

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

MarshalBinary interface implementation

func (*AddPostgreSQLOKBodyService) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddPostgreSQLOKBodyService) Validate

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

Validate validates this add postgre SQL OK body service

type AddPostgreSQLParams

type AddPostgreSQLParams struct {

	/*Body*/
	Body AddPostgreSQLBody

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

AddPostgreSQLParams contains all the parameters to send to the API endpoint for the add postgre SQL operation typically these are written to a http.Request

func NewAddPostgreSQLParams

func NewAddPostgreSQLParams() *AddPostgreSQLParams

NewAddPostgreSQLParams creates a new AddPostgreSQLParams object with the default values initialized.

func NewAddPostgreSQLParamsWithContext

func NewAddPostgreSQLParamsWithContext(ctx context.Context) *AddPostgreSQLParams

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

func NewAddPostgreSQLParamsWithHTTPClient

func NewAddPostgreSQLParamsWithHTTPClient(client *http.Client) *AddPostgreSQLParams

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

func NewAddPostgreSQLParamsWithTimeout

func NewAddPostgreSQLParamsWithTimeout(timeout time.Duration) *AddPostgreSQLParams

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

func (*AddPostgreSQLParams) SetBody

func (o *AddPostgreSQLParams) SetBody(body AddPostgreSQLBody)

SetBody adds the body to the add postgre SQL params

func (*AddPostgreSQLParams) SetContext

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

SetContext adds the context to the add postgre SQL params

func (*AddPostgreSQLParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add postgre SQL params

func (*AddPostgreSQLParams) SetTimeout

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

SetTimeout adds the timeout to the add postgre SQL params

func (*AddPostgreSQLParams) WithBody

WithBody adds the body to the add postgre SQL params

func (*AddPostgreSQLParams) WithContext

WithContext adds the context to the add postgre SQL params

func (*AddPostgreSQLParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add postgre SQL params

func (*AddPostgreSQLParams) WithTimeout

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

WithTimeout adds the timeout to the add postgre SQL params

func (*AddPostgreSQLParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddPostgreSQLParamsBodyAddNode

type AddPostgreSQLParamsBodyAddNode 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"`
}

AddPostgreSQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddPostgreSQLParamsBodyAddNode

func (*AddPostgreSQLParamsBodyAddNode) MarshalBinary

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

MarshalBinary interface implementation

func (*AddPostgreSQLParamsBodyAddNode) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddPostgreSQLParamsBodyAddNode) Validate

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

Validate validates this add postgre SQL params body add node

type AddPostgreSQLReader

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

AddPostgreSQLReader is a Reader for the AddPostgreSQL structure.

func (*AddPostgreSQLReader) ReadResponse

func (o *AddPostgreSQLReader) 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 postgre sql API

func (*Client) AddPostgreSQL

func (a *Client) AddPostgreSQL(params *AddPostgreSQLParams) (*AddPostgreSQLOK, error)

AddPostgreSQL adds postgre SQL adds postgre SQL service and starts postgres exporter it automatically adds a service to inventory which is running on provided node id then adds postgres exporter 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 {
	AddPostgreSQL(params *AddPostgreSQLParams) (*AddPostgreSQLOK, 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 postgre 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

func (*DetailsItems0) Validate

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

Validate validates this details items0

Jump to

Keyboard shortcuts

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