postgre_sql

package
v2.0.0-beta2+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPostgreSQLBody

type AddPostgreSQLBody struct {

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

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

	// Node identifier on which a service is been running. Required.
	NodeID string `json:"node_id,omitempty"`

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

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

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

type AddPostgreSQLDefaultBody

type AddPostgreSQLDefaultBody struct {

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

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

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

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

type AddPostgreSQLOKBody

type AddPostgreSQLOKBody struct {

	// postgres exporter
	PostgresExporter *AddPostgreSQLOKBodyPostgresExporter `json:"postgres_exporter,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"`

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

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

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

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

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

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

New creates a new postgre sql API client.

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

Jump to

Keyboard shortcuts

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