sync_prometheus

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for sync prometheus API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SyncPrometheus

func (a *Client) SyncPrometheus(params *SyncPrometheusParams, opts ...ClientOption) (*SyncPrometheusOK, error)
SyncPrometheus ***

Sync Prometheus Configuration ***

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SyncPrometheus(params *SyncPrometheusParams, opts ...ClientOption) (*SyncPrometheusOK, 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 sync prometheus API client.

type SyncPrometheusDefault

type SyncPrometheusDefault struct {
	Payload *models.APIError
	// contains filtered or unexported fields
}

SyncPrometheusDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewSyncPrometheusDefault

func NewSyncPrometheusDefault(code int) *SyncPrometheusDefault

NewSyncPrometheusDefault creates a SyncPrometheusDefault with default headers values

func (*SyncPrometheusDefault) Code

func (o *SyncPrometheusDefault) Code() int

Code gets the status code for the sync prometheus default response

func (*SyncPrometheusDefault) Error

func (o *SyncPrometheusDefault) Error() string

func (*SyncPrometheusDefault) GetPayload

func (o *SyncPrometheusDefault) GetPayload() *models.APIError

func (*SyncPrometheusDefault) IsClientError

func (o *SyncPrometheusDefault) IsClientError() bool

IsClientError returns true when this sync prometheus default response has a 4xx status code

func (*SyncPrometheusDefault) IsCode

func (o *SyncPrometheusDefault) IsCode(code int) bool

IsCode returns true when this sync prometheus default response a status code equal to that given

func (*SyncPrometheusDefault) IsRedirect

func (o *SyncPrometheusDefault) IsRedirect() bool

IsRedirect returns true when this sync prometheus default response has a 3xx status code

func (*SyncPrometheusDefault) IsServerError

func (o *SyncPrometheusDefault) IsServerError() bool

IsServerError returns true when this sync prometheus default response has a 5xx status code

func (*SyncPrometheusDefault) IsSuccess

func (o *SyncPrometheusDefault) IsSuccess() bool

IsSuccess returns true when this sync prometheus default response has a 2xx status code

func (*SyncPrometheusDefault) String

func (o *SyncPrometheusDefault) String() string

type SyncPrometheusOK

type SyncPrometheusOK struct {
	Payload *models.ConfigunstableSyncPrometheusResponse
}

SyncPrometheusOK describes a response with status code 200, with default header values.

A successful response.

func NewSyncPrometheusOK

func NewSyncPrometheusOK() *SyncPrometheusOK

NewSyncPrometheusOK creates a SyncPrometheusOK with default headers values

func (*SyncPrometheusOK) Code

func (o *SyncPrometheusOK) Code() int

Code gets the status code for the sync prometheus o k response

func (*SyncPrometheusOK) Error

func (o *SyncPrometheusOK) Error() string

func (*SyncPrometheusOK) GetPayload

func (*SyncPrometheusOK) IsClientError

func (o *SyncPrometheusOK) IsClientError() bool

IsClientError returns true when this sync prometheus o k response has a 4xx status code

func (*SyncPrometheusOK) IsCode

func (o *SyncPrometheusOK) IsCode(code int) bool

IsCode returns true when this sync prometheus o k response a status code equal to that given

func (*SyncPrometheusOK) IsRedirect

func (o *SyncPrometheusOK) IsRedirect() bool

IsRedirect returns true when this sync prometheus o k response has a 3xx status code

func (*SyncPrometheusOK) IsServerError

func (o *SyncPrometheusOK) IsServerError() bool

IsServerError returns true when this sync prometheus o k response has a 5xx status code

func (*SyncPrometheusOK) IsSuccess

func (o *SyncPrometheusOK) IsSuccess() bool

IsSuccess returns true when this sync prometheus o k response has a 2xx status code

func (*SyncPrometheusOK) String

func (o *SyncPrometheusOK) String() string

type SyncPrometheusParams

type SyncPrometheusParams struct {

	// Body.
	Body *models.ConfigunstableSyncPrometheusRequest

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

SyncPrometheusParams contains all the parameters to send to the API endpoint

for the sync prometheus operation.

Typically these are written to a http.Request.

func NewSyncPrometheusParams

func NewSyncPrometheusParams() *SyncPrometheusParams

NewSyncPrometheusParams creates a new SyncPrometheusParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSyncPrometheusParamsWithContext

func NewSyncPrometheusParamsWithContext(ctx context.Context) *SyncPrometheusParams

NewSyncPrometheusParamsWithContext creates a new SyncPrometheusParams object with the ability to set a context for a request.

func NewSyncPrometheusParamsWithHTTPClient

func NewSyncPrometheusParamsWithHTTPClient(client *http.Client) *SyncPrometheusParams

NewSyncPrometheusParamsWithHTTPClient creates a new SyncPrometheusParams object with the ability to set a custom HTTPClient for a request.

func NewSyncPrometheusParamsWithTimeout

func NewSyncPrometheusParamsWithTimeout(timeout time.Duration) *SyncPrometheusParams

NewSyncPrometheusParamsWithTimeout creates a new SyncPrometheusParams object with the ability to set a timeout on a request.

func (*SyncPrometheusParams) SetBody

SetBody adds the body to the sync prometheus params

func (*SyncPrometheusParams) SetContext

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

SetContext adds the context to the sync prometheus params

func (*SyncPrometheusParams) SetDefaults

func (o *SyncPrometheusParams) SetDefaults()

SetDefaults hydrates default values in the sync prometheus params (not the query body).

All values with no default are reset to their zero value.

func (*SyncPrometheusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the sync prometheus params

func (*SyncPrometheusParams) SetTimeout

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

SetTimeout adds the timeout to the sync prometheus params

func (*SyncPrometheusParams) WithBody

WithBody adds the body to the sync prometheus params

func (*SyncPrometheusParams) WithContext

WithContext adds the context to the sync prometheus params

func (*SyncPrometheusParams) WithDefaults

func (o *SyncPrometheusParams) WithDefaults() *SyncPrometheusParams

WithDefaults hydrates default values in the sync prometheus params (not the query body).

All values with no default are reset to their zero value.

func (*SyncPrometheusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the sync prometheus params

func (*SyncPrometheusParams) WithTimeout

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

WithTimeout adds the timeout to the sync prometheus params

func (*SyncPrometheusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SyncPrometheusReader

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

SyncPrometheusReader is a Reader for the SyncPrometheus structure.

func (*SyncPrometheusReader) ReadResponse

func (o *SyncPrometheusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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