grafana_dashboard

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: 11 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 grafana dashboard API

func (*Client) CreateGrafanaDashboard

func (a *Client) CreateGrafanaDashboard(params *CreateGrafanaDashboardParams, opts ...ClientOption) (*CreateGrafanaDashboardOK, error)

CreateGrafanaDashboard create grafana dashboard API

func (*Client) DeleteGrafanaDashboard

func (a *Client) DeleteGrafanaDashboard(params *DeleteGrafanaDashboardParams, opts ...ClientOption) (*DeleteGrafanaDashboardOK, error)

DeleteGrafanaDashboard delete grafana dashboard API

func (*Client) ListGrafanaDashboards

func (a *Client) ListGrafanaDashboards(params *ListGrafanaDashboardsParams, opts ...ClientOption) (*ListGrafanaDashboardsOK, error)

ListGrafanaDashboards list grafana dashboards API

func (*Client) ReadGrafanaDashboard

func (a *Client) ReadGrafanaDashboard(params *ReadGrafanaDashboardParams, opts ...ClientOption) (*ReadGrafanaDashboardOK, error)

ReadGrafanaDashboard read grafana dashboard API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateGrafanaDashboard

func (a *Client) UpdateGrafanaDashboard(params *UpdateGrafanaDashboardParams, opts ...ClientOption) (*UpdateGrafanaDashboardOK, error)

UpdateGrafanaDashboard update grafana dashboard API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateGrafanaDashboard(params *CreateGrafanaDashboardParams, opts ...ClientOption) (*CreateGrafanaDashboardOK, error)

	DeleteGrafanaDashboard(params *DeleteGrafanaDashboardParams, opts ...ClientOption) (*DeleteGrafanaDashboardOK, error)

	ListGrafanaDashboards(params *ListGrafanaDashboardsParams, opts ...ClientOption) (*ListGrafanaDashboardsOK, error)

	ReadGrafanaDashboard(params *ReadGrafanaDashboardParams, opts ...ClientOption) (*ReadGrafanaDashboardOK, error)

	UpdateGrafanaDashboard(params *UpdateGrafanaDashboardParams, opts ...ClientOption) (*UpdateGrafanaDashboardOK, 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 grafana dashboard API client.

type CreateGrafanaDashboardBadRequest

type CreateGrafanaDashboardBadRequest struct {
	Payload *models.APIError
}

CreateGrafanaDashboardBadRequest describes a response with status code 400, with default header values.

Cannot create the GrafanaDashboard because the request is invalid.

func NewCreateGrafanaDashboardBadRequest

func NewCreateGrafanaDashboardBadRequest() *CreateGrafanaDashboardBadRequest

NewCreateGrafanaDashboardBadRequest creates a CreateGrafanaDashboardBadRequest with default headers values

func (*CreateGrafanaDashboardBadRequest) Code

Code gets the status code for the create grafana dashboard bad request response

func (*CreateGrafanaDashboardBadRequest) Error

func (*CreateGrafanaDashboardBadRequest) GetPayload

func (*CreateGrafanaDashboardBadRequest) IsClientError

func (o *CreateGrafanaDashboardBadRequest) IsClientError() bool

IsClientError returns true when this create grafana dashboard bad request response has a 4xx status code

func (*CreateGrafanaDashboardBadRequest) IsCode

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

IsCode returns true when this create grafana dashboard bad request response a status code equal to that given

func (*CreateGrafanaDashboardBadRequest) IsRedirect

func (o *CreateGrafanaDashboardBadRequest) IsRedirect() bool

IsRedirect returns true when this create grafana dashboard bad request response has a 3xx status code

func (*CreateGrafanaDashboardBadRequest) IsServerError

func (o *CreateGrafanaDashboardBadRequest) IsServerError() bool

IsServerError returns true when this create grafana dashboard bad request response has a 5xx status code

func (*CreateGrafanaDashboardBadRequest) IsSuccess

func (o *CreateGrafanaDashboardBadRequest) IsSuccess() bool

IsSuccess returns true when this create grafana dashboard bad request response has a 2xx status code

func (*CreateGrafanaDashboardBadRequest) String

type CreateGrafanaDashboardConflict

type CreateGrafanaDashboardConflict struct {
	Payload *models.APIError
}

CreateGrafanaDashboardConflict describes a response with status code 409, with default header values.

Cannot create the GrafanaDashboard because there is a conflict with an existing GrafanaDashboard.

func NewCreateGrafanaDashboardConflict

func NewCreateGrafanaDashboardConflict() *CreateGrafanaDashboardConflict

NewCreateGrafanaDashboardConflict creates a CreateGrafanaDashboardConflict with default headers values

func (*CreateGrafanaDashboardConflict) Code

Code gets the status code for the create grafana dashboard conflict response

func (*CreateGrafanaDashboardConflict) Error

func (*CreateGrafanaDashboardConflict) GetPayload

func (*CreateGrafanaDashboardConflict) IsClientError

func (o *CreateGrafanaDashboardConflict) IsClientError() bool

IsClientError returns true when this create grafana dashboard conflict response has a 4xx status code

func (*CreateGrafanaDashboardConflict) IsCode

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

IsCode returns true when this create grafana dashboard conflict response a status code equal to that given

func (*CreateGrafanaDashboardConflict) IsRedirect

func (o *CreateGrafanaDashboardConflict) IsRedirect() bool

IsRedirect returns true when this create grafana dashboard conflict response has a 3xx status code

func (*CreateGrafanaDashboardConflict) IsServerError

func (o *CreateGrafanaDashboardConflict) IsServerError() bool

IsServerError returns true when this create grafana dashboard conflict response has a 5xx status code

func (*CreateGrafanaDashboardConflict) IsSuccess

func (o *CreateGrafanaDashboardConflict) IsSuccess() bool

IsSuccess returns true when this create grafana dashboard conflict response has a 2xx status code

func (*CreateGrafanaDashboardConflict) String

type CreateGrafanaDashboardDefault

type CreateGrafanaDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewCreateGrafanaDashboardDefault

func NewCreateGrafanaDashboardDefault(code int) *CreateGrafanaDashboardDefault

NewCreateGrafanaDashboardDefault creates a CreateGrafanaDashboardDefault with default headers values

func (*CreateGrafanaDashboardDefault) Code

Code gets the status code for the create grafana dashboard default response

func (*CreateGrafanaDashboardDefault) Error

func (*CreateGrafanaDashboardDefault) GetPayload

func (*CreateGrafanaDashboardDefault) IsClientError

func (o *CreateGrafanaDashboardDefault) IsClientError() bool

IsClientError returns true when this create grafana dashboard default response has a 4xx status code

func (*CreateGrafanaDashboardDefault) IsCode

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

IsCode returns true when this create grafana dashboard default response a status code equal to that given

func (*CreateGrafanaDashboardDefault) IsRedirect

func (o *CreateGrafanaDashboardDefault) IsRedirect() bool

IsRedirect returns true when this create grafana dashboard default response has a 3xx status code

func (*CreateGrafanaDashboardDefault) IsServerError

func (o *CreateGrafanaDashboardDefault) IsServerError() bool

IsServerError returns true when this create grafana dashboard default response has a 5xx status code

func (*CreateGrafanaDashboardDefault) IsSuccess

func (o *CreateGrafanaDashboardDefault) IsSuccess() bool

IsSuccess returns true when this create grafana dashboard default response has a 2xx status code

func (*CreateGrafanaDashboardDefault) String

type CreateGrafanaDashboardInternalServerError

type CreateGrafanaDashboardInternalServerError struct {
	Payload *models.APIError
}

CreateGrafanaDashboardInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateGrafanaDashboardInternalServerError

func NewCreateGrafanaDashboardInternalServerError() *CreateGrafanaDashboardInternalServerError

NewCreateGrafanaDashboardInternalServerError creates a CreateGrafanaDashboardInternalServerError with default headers values

func (*CreateGrafanaDashboardInternalServerError) Code

Code gets the status code for the create grafana dashboard internal server error response

func (*CreateGrafanaDashboardInternalServerError) Error

func (*CreateGrafanaDashboardInternalServerError) GetPayload

func (*CreateGrafanaDashboardInternalServerError) IsClientError

IsClientError returns true when this create grafana dashboard internal server error response has a 4xx status code

func (*CreateGrafanaDashboardInternalServerError) IsCode

IsCode returns true when this create grafana dashboard internal server error response a status code equal to that given

func (*CreateGrafanaDashboardInternalServerError) IsRedirect

IsRedirect returns true when this create grafana dashboard internal server error response has a 3xx status code

func (*CreateGrafanaDashboardInternalServerError) IsServerError

IsServerError returns true when this create grafana dashboard internal server error response has a 5xx status code

func (*CreateGrafanaDashboardInternalServerError) IsSuccess

IsSuccess returns true when this create grafana dashboard internal server error response has a 2xx status code

func (*CreateGrafanaDashboardInternalServerError) String

type CreateGrafanaDashboardOK

type CreateGrafanaDashboardOK struct {
	Payload *models.Configv1CreateGrafanaDashboardResponse
}

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

A successful response containing the created GrafanaDashboard.

func NewCreateGrafanaDashboardOK

func NewCreateGrafanaDashboardOK() *CreateGrafanaDashboardOK

NewCreateGrafanaDashboardOK creates a CreateGrafanaDashboardOK with default headers values

func (*CreateGrafanaDashboardOK) Code

func (o *CreateGrafanaDashboardOK) Code() int

Code gets the status code for the create grafana dashboard o k response

func (*CreateGrafanaDashboardOK) Error

func (o *CreateGrafanaDashboardOK) Error() string

func (*CreateGrafanaDashboardOK) GetPayload

func (*CreateGrafanaDashboardOK) IsClientError

func (o *CreateGrafanaDashboardOK) IsClientError() bool

IsClientError returns true when this create grafana dashboard o k response has a 4xx status code

func (*CreateGrafanaDashboardOK) IsCode

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

IsCode returns true when this create grafana dashboard o k response a status code equal to that given

func (*CreateGrafanaDashboardOK) IsRedirect

func (o *CreateGrafanaDashboardOK) IsRedirect() bool

IsRedirect returns true when this create grafana dashboard o k response has a 3xx status code

func (*CreateGrafanaDashboardOK) IsServerError

func (o *CreateGrafanaDashboardOK) IsServerError() bool

IsServerError returns true when this create grafana dashboard o k response has a 5xx status code

func (*CreateGrafanaDashboardOK) IsSuccess

func (o *CreateGrafanaDashboardOK) IsSuccess() bool

IsSuccess returns true when this create grafana dashboard o k response has a 2xx status code

func (*CreateGrafanaDashboardOK) String

func (o *CreateGrafanaDashboardOK) String() string

type CreateGrafanaDashboardParams

type CreateGrafanaDashboardParams struct {

	// Body.
	Body *models.Configv1CreateGrafanaDashboardRequest

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

CreateGrafanaDashboardParams contains all the parameters to send to the API endpoint

for the create grafana dashboard operation.

Typically these are written to a http.Request.

func NewCreateGrafanaDashboardParams

func NewCreateGrafanaDashboardParams() *CreateGrafanaDashboardParams

NewCreateGrafanaDashboardParams creates a new CreateGrafanaDashboardParams 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 NewCreateGrafanaDashboardParamsWithContext

func NewCreateGrafanaDashboardParamsWithContext(ctx context.Context) *CreateGrafanaDashboardParams

NewCreateGrafanaDashboardParamsWithContext creates a new CreateGrafanaDashboardParams object with the ability to set a context for a request.

func NewCreateGrafanaDashboardParamsWithHTTPClient

func NewCreateGrafanaDashboardParamsWithHTTPClient(client *http.Client) *CreateGrafanaDashboardParams

NewCreateGrafanaDashboardParamsWithHTTPClient creates a new CreateGrafanaDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewCreateGrafanaDashboardParamsWithTimeout

func NewCreateGrafanaDashboardParamsWithTimeout(timeout time.Duration) *CreateGrafanaDashboardParams

NewCreateGrafanaDashboardParamsWithTimeout creates a new CreateGrafanaDashboardParams object with the ability to set a timeout on a request.

func (*CreateGrafanaDashboardParams) SetBody

SetBody adds the body to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) SetContext

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

SetContext adds the context to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) SetDefaults

func (o *CreateGrafanaDashboardParams) SetDefaults()

SetDefaults hydrates default values in the create grafana dashboard params (not the query body).

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

func (*CreateGrafanaDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) WithBody

WithBody adds the body to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) WithContext

WithContext adds the context to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) WithDefaults

WithDefaults hydrates default values in the create grafana dashboard params (not the query body).

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

func (*CreateGrafanaDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) WithTimeout

WithTimeout adds the timeout to the create grafana dashboard params

func (*CreateGrafanaDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateGrafanaDashboardReader

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

CreateGrafanaDashboardReader is a Reader for the CreateGrafanaDashboard structure.

func (*CreateGrafanaDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteGrafanaDashboardBadRequest

type DeleteGrafanaDashboardBadRequest struct {
	Payload *models.APIError
}

DeleteGrafanaDashboardBadRequest describes a response with status code 400, with default header values.

Cannot delete the GrafanaDashboard because it is in use.

func NewDeleteGrafanaDashboardBadRequest

func NewDeleteGrafanaDashboardBadRequest() *DeleteGrafanaDashboardBadRequest

NewDeleteGrafanaDashboardBadRequest creates a DeleteGrafanaDashboardBadRequest with default headers values

func (*DeleteGrafanaDashboardBadRequest) Code

Code gets the status code for the delete grafana dashboard bad request response

func (*DeleteGrafanaDashboardBadRequest) Error

func (*DeleteGrafanaDashboardBadRequest) GetPayload

func (*DeleteGrafanaDashboardBadRequest) IsClientError

func (o *DeleteGrafanaDashboardBadRequest) IsClientError() bool

IsClientError returns true when this delete grafana dashboard bad request response has a 4xx status code

func (*DeleteGrafanaDashboardBadRequest) IsCode

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

IsCode returns true when this delete grafana dashboard bad request response a status code equal to that given

func (*DeleteGrafanaDashboardBadRequest) IsRedirect

func (o *DeleteGrafanaDashboardBadRequest) IsRedirect() bool

IsRedirect returns true when this delete grafana dashboard bad request response has a 3xx status code

func (*DeleteGrafanaDashboardBadRequest) IsServerError

func (o *DeleteGrafanaDashboardBadRequest) IsServerError() bool

IsServerError returns true when this delete grafana dashboard bad request response has a 5xx status code

func (*DeleteGrafanaDashboardBadRequest) IsSuccess

func (o *DeleteGrafanaDashboardBadRequest) IsSuccess() bool

IsSuccess returns true when this delete grafana dashboard bad request response has a 2xx status code

func (*DeleteGrafanaDashboardBadRequest) String

type DeleteGrafanaDashboardDefault

type DeleteGrafanaDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewDeleteGrafanaDashboardDefault

func NewDeleteGrafanaDashboardDefault(code int) *DeleteGrafanaDashboardDefault

NewDeleteGrafanaDashboardDefault creates a DeleteGrafanaDashboardDefault with default headers values

func (*DeleteGrafanaDashboardDefault) Code

Code gets the status code for the delete grafana dashboard default response

func (*DeleteGrafanaDashboardDefault) Error

func (*DeleteGrafanaDashboardDefault) GetPayload

func (*DeleteGrafanaDashboardDefault) IsClientError

func (o *DeleteGrafanaDashboardDefault) IsClientError() bool

IsClientError returns true when this delete grafana dashboard default response has a 4xx status code

func (*DeleteGrafanaDashboardDefault) IsCode

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

IsCode returns true when this delete grafana dashboard default response a status code equal to that given

func (*DeleteGrafanaDashboardDefault) IsRedirect

func (o *DeleteGrafanaDashboardDefault) IsRedirect() bool

IsRedirect returns true when this delete grafana dashboard default response has a 3xx status code

func (*DeleteGrafanaDashboardDefault) IsServerError

func (o *DeleteGrafanaDashboardDefault) IsServerError() bool

IsServerError returns true when this delete grafana dashboard default response has a 5xx status code

func (*DeleteGrafanaDashboardDefault) IsSuccess

func (o *DeleteGrafanaDashboardDefault) IsSuccess() bool

IsSuccess returns true when this delete grafana dashboard default response has a 2xx status code

func (*DeleteGrafanaDashboardDefault) String

type DeleteGrafanaDashboardInternalServerError

type DeleteGrafanaDashboardInternalServerError struct {
	Payload *models.APIError
}

DeleteGrafanaDashboardInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteGrafanaDashboardInternalServerError

func NewDeleteGrafanaDashboardInternalServerError() *DeleteGrafanaDashboardInternalServerError

NewDeleteGrafanaDashboardInternalServerError creates a DeleteGrafanaDashboardInternalServerError with default headers values

func (*DeleteGrafanaDashboardInternalServerError) Code

Code gets the status code for the delete grafana dashboard internal server error response

func (*DeleteGrafanaDashboardInternalServerError) Error

func (*DeleteGrafanaDashboardInternalServerError) GetPayload

func (*DeleteGrafanaDashboardInternalServerError) IsClientError

IsClientError returns true when this delete grafana dashboard internal server error response has a 4xx status code

func (*DeleteGrafanaDashboardInternalServerError) IsCode

IsCode returns true when this delete grafana dashboard internal server error response a status code equal to that given

func (*DeleteGrafanaDashboardInternalServerError) IsRedirect

IsRedirect returns true when this delete grafana dashboard internal server error response has a 3xx status code

func (*DeleteGrafanaDashboardInternalServerError) IsServerError

IsServerError returns true when this delete grafana dashboard internal server error response has a 5xx status code

func (*DeleteGrafanaDashboardInternalServerError) IsSuccess

IsSuccess returns true when this delete grafana dashboard internal server error response has a 2xx status code

func (*DeleteGrafanaDashboardInternalServerError) String

type DeleteGrafanaDashboardNotFound

type DeleteGrafanaDashboardNotFound struct {
	Payload *models.APIError
}

DeleteGrafanaDashboardNotFound describes a response with status code 404, with default header values.

Cannot delete the GrafanaDashboard because the slug does not exist.

func NewDeleteGrafanaDashboardNotFound

func NewDeleteGrafanaDashboardNotFound() *DeleteGrafanaDashboardNotFound

NewDeleteGrafanaDashboardNotFound creates a DeleteGrafanaDashboardNotFound with default headers values

func (*DeleteGrafanaDashboardNotFound) Code

Code gets the status code for the delete grafana dashboard not found response

func (*DeleteGrafanaDashboardNotFound) Error

func (*DeleteGrafanaDashboardNotFound) GetPayload

func (*DeleteGrafanaDashboardNotFound) IsClientError

func (o *DeleteGrafanaDashboardNotFound) IsClientError() bool

IsClientError returns true when this delete grafana dashboard not found response has a 4xx status code

func (*DeleteGrafanaDashboardNotFound) IsCode

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

IsCode returns true when this delete grafana dashboard not found response a status code equal to that given

func (*DeleteGrafanaDashboardNotFound) IsRedirect

func (o *DeleteGrafanaDashboardNotFound) IsRedirect() bool

IsRedirect returns true when this delete grafana dashboard not found response has a 3xx status code

func (*DeleteGrafanaDashboardNotFound) IsServerError

func (o *DeleteGrafanaDashboardNotFound) IsServerError() bool

IsServerError returns true when this delete grafana dashboard not found response has a 5xx status code

func (*DeleteGrafanaDashboardNotFound) IsSuccess

func (o *DeleteGrafanaDashboardNotFound) IsSuccess() bool

IsSuccess returns true when this delete grafana dashboard not found response has a 2xx status code

func (*DeleteGrafanaDashboardNotFound) String

type DeleteGrafanaDashboardOK

type DeleteGrafanaDashboardOK struct {
	Payload models.Configv1DeleteGrafanaDashboardResponse
}

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

A successful response.

func NewDeleteGrafanaDashboardOK

func NewDeleteGrafanaDashboardOK() *DeleteGrafanaDashboardOK

NewDeleteGrafanaDashboardOK creates a DeleteGrafanaDashboardOK with default headers values

func (*DeleteGrafanaDashboardOK) Code

func (o *DeleteGrafanaDashboardOK) Code() int

Code gets the status code for the delete grafana dashboard o k response

func (*DeleteGrafanaDashboardOK) Error

func (o *DeleteGrafanaDashboardOK) Error() string

func (*DeleteGrafanaDashboardOK) GetPayload

func (*DeleteGrafanaDashboardOK) IsClientError

func (o *DeleteGrafanaDashboardOK) IsClientError() bool

IsClientError returns true when this delete grafana dashboard o k response has a 4xx status code

func (*DeleteGrafanaDashboardOK) IsCode

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

IsCode returns true when this delete grafana dashboard o k response a status code equal to that given

func (*DeleteGrafanaDashboardOK) IsRedirect

func (o *DeleteGrafanaDashboardOK) IsRedirect() bool

IsRedirect returns true when this delete grafana dashboard o k response has a 3xx status code

func (*DeleteGrafanaDashboardOK) IsServerError

func (o *DeleteGrafanaDashboardOK) IsServerError() bool

IsServerError returns true when this delete grafana dashboard o k response has a 5xx status code

func (*DeleteGrafanaDashboardOK) IsSuccess

func (o *DeleteGrafanaDashboardOK) IsSuccess() bool

IsSuccess returns true when this delete grafana dashboard o k response has a 2xx status code

func (*DeleteGrafanaDashboardOK) String

func (o *DeleteGrafanaDashboardOK) String() string

type DeleteGrafanaDashboardParams

type DeleteGrafanaDashboardParams struct {

	// Slug.
	Slug string

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

DeleteGrafanaDashboardParams contains all the parameters to send to the API endpoint

for the delete grafana dashboard operation.

Typically these are written to a http.Request.

func NewDeleteGrafanaDashboardParams

func NewDeleteGrafanaDashboardParams() *DeleteGrafanaDashboardParams

NewDeleteGrafanaDashboardParams creates a new DeleteGrafanaDashboardParams 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 NewDeleteGrafanaDashboardParamsWithContext

func NewDeleteGrafanaDashboardParamsWithContext(ctx context.Context) *DeleteGrafanaDashboardParams

NewDeleteGrafanaDashboardParamsWithContext creates a new DeleteGrafanaDashboardParams object with the ability to set a context for a request.

func NewDeleteGrafanaDashboardParamsWithHTTPClient

func NewDeleteGrafanaDashboardParamsWithHTTPClient(client *http.Client) *DeleteGrafanaDashboardParams

NewDeleteGrafanaDashboardParamsWithHTTPClient creates a new DeleteGrafanaDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteGrafanaDashboardParamsWithTimeout

func NewDeleteGrafanaDashboardParamsWithTimeout(timeout time.Duration) *DeleteGrafanaDashboardParams

NewDeleteGrafanaDashboardParamsWithTimeout creates a new DeleteGrafanaDashboardParams object with the ability to set a timeout on a request.

func (*DeleteGrafanaDashboardParams) SetContext

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

SetContext adds the context to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) SetDefaults

func (o *DeleteGrafanaDashboardParams) SetDefaults()

SetDefaults hydrates default values in the delete grafana dashboard params (not the query body).

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

func (*DeleteGrafanaDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) SetSlug

func (o *DeleteGrafanaDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) WithContext

WithContext adds the context to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) WithDefaults

WithDefaults hydrates default values in the delete grafana dashboard params (not the query body).

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

func (*DeleteGrafanaDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) WithSlug

WithSlug adds the slug to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) WithTimeout

WithTimeout adds the timeout to the delete grafana dashboard params

func (*DeleteGrafanaDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteGrafanaDashboardReader

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

DeleteGrafanaDashboardReader is a Reader for the DeleteGrafanaDashboard structure.

func (*DeleteGrafanaDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListGrafanaDashboardsDefault

type ListGrafanaDashboardsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewListGrafanaDashboardsDefault

func NewListGrafanaDashboardsDefault(code int) *ListGrafanaDashboardsDefault

NewListGrafanaDashboardsDefault creates a ListGrafanaDashboardsDefault with default headers values

func (*ListGrafanaDashboardsDefault) Code

Code gets the status code for the list grafana dashboards default response

func (*ListGrafanaDashboardsDefault) Error

func (*ListGrafanaDashboardsDefault) GetPayload

func (*ListGrafanaDashboardsDefault) IsClientError

func (o *ListGrafanaDashboardsDefault) IsClientError() bool

IsClientError returns true when this list grafana dashboards default response has a 4xx status code

func (*ListGrafanaDashboardsDefault) IsCode

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

IsCode returns true when this list grafana dashboards default response a status code equal to that given

func (*ListGrafanaDashboardsDefault) IsRedirect

func (o *ListGrafanaDashboardsDefault) IsRedirect() bool

IsRedirect returns true when this list grafana dashboards default response has a 3xx status code

func (*ListGrafanaDashboardsDefault) IsServerError

func (o *ListGrafanaDashboardsDefault) IsServerError() bool

IsServerError returns true when this list grafana dashboards default response has a 5xx status code

func (*ListGrafanaDashboardsDefault) IsSuccess

func (o *ListGrafanaDashboardsDefault) IsSuccess() bool

IsSuccess returns true when this list grafana dashboards default response has a 2xx status code

func (*ListGrafanaDashboardsDefault) String

type ListGrafanaDashboardsInternalServerError

type ListGrafanaDashboardsInternalServerError struct {
	Payload *models.APIError
}

ListGrafanaDashboardsInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListGrafanaDashboardsInternalServerError

func NewListGrafanaDashboardsInternalServerError() *ListGrafanaDashboardsInternalServerError

NewListGrafanaDashboardsInternalServerError creates a ListGrafanaDashboardsInternalServerError with default headers values

func (*ListGrafanaDashboardsInternalServerError) Code

Code gets the status code for the list grafana dashboards internal server error response

func (*ListGrafanaDashboardsInternalServerError) Error

func (*ListGrafanaDashboardsInternalServerError) GetPayload

func (*ListGrafanaDashboardsInternalServerError) IsClientError

IsClientError returns true when this list grafana dashboards internal server error response has a 4xx status code

func (*ListGrafanaDashboardsInternalServerError) IsCode

IsCode returns true when this list grafana dashboards internal server error response a status code equal to that given

func (*ListGrafanaDashboardsInternalServerError) IsRedirect

IsRedirect returns true when this list grafana dashboards internal server error response has a 3xx status code

func (*ListGrafanaDashboardsInternalServerError) IsServerError

IsServerError returns true when this list grafana dashboards internal server error response has a 5xx status code

func (*ListGrafanaDashboardsInternalServerError) IsSuccess

IsSuccess returns true when this list grafana dashboards internal server error response has a 2xx status code

func (*ListGrafanaDashboardsInternalServerError) String

type ListGrafanaDashboardsOK

type ListGrafanaDashboardsOK struct {
	Payload *models.Configv1ListGrafanaDashboardsResponse
}

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

A successful response.

func NewListGrafanaDashboardsOK

func NewListGrafanaDashboardsOK() *ListGrafanaDashboardsOK

NewListGrafanaDashboardsOK creates a ListGrafanaDashboardsOK with default headers values

func (*ListGrafanaDashboardsOK) Code

func (o *ListGrafanaDashboardsOK) Code() int

Code gets the status code for the list grafana dashboards o k response

func (*ListGrafanaDashboardsOK) Error

func (o *ListGrafanaDashboardsOK) Error() string

func (*ListGrafanaDashboardsOK) GetPayload

func (*ListGrafanaDashboardsOK) IsClientError

func (o *ListGrafanaDashboardsOK) IsClientError() bool

IsClientError returns true when this list grafana dashboards o k response has a 4xx status code

func (*ListGrafanaDashboardsOK) IsCode

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

IsCode returns true when this list grafana dashboards o k response a status code equal to that given

func (*ListGrafanaDashboardsOK) IsRedirect

func (o *ListGrafanaDashboardsOK) IsRedirect() bool

IsRedirect returns true when this list grafana dashboards o k response has a 3xx status code

func (*ListGrafanaDashboardsOK) IsServerError

func (o *ListGrafanaDashboardsOK) IsServerError() bool

IsServerError returns true when this list grafana dashboards o k response has a 5xx status code

func (*ListGrafanaDashboardsOK) IsSuccess

func (o *ListGrafanaDashboardsOK) IsSuccess() bool

IsSuccess returns true when this list grafana dashboards o k response has a 2xx status code

func (*ListGrafanaDashboardsOK) String

func (o *ListGrafanaDashboardsOK) String() string

type ListGrafanaDashboardsParams

type ListGrafanaDashboardsParams struct {

	/* BucketSlugs.

	   Filters results by bucket_slug, where any GrafanaDashboard with a matching bucket_slug in the given list (and matches all other filters) is returned.
	*/
	BucketSlugs []string

	/* CollectionSlugs.

	   Filters results by collection_slug, where any GrafanaDashboard with a matching collection_slug in the given list (and matches all other filters) is returned.
	*/
	CollectionSlugs []string

	/* IncludeDashboardJSON.

	     Optional flag to populate the dashboard_json of the returned dashboards.
	By default, dashboard_json will be left empty.
	*/
	IncludeDashboardJSON *bool

	/* Names.

	   Filters results by name, where any GrafanaDashboard with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any GrafanaDashboard with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

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

ListGrafanaDashboardsParams contains all the parameters to send to the API endpoint

for the list grafana dashboards operation.

Typically these are written to a http.Request.

func NewListGrafanaDashboardsParams

func NewListGrafanaDashboardsParams() *ListGrafanaDashboardsParams

NewListGrafanaDashboardsParams creates a new ListGrafanaDashboardsParams 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 NewListGrafanaDashboardsParamsWithContext

func NewListGrafanaDashboardsParamsWithContext(ctx context.Context) *ListGrafanaDashboardsParams

NewListGrafanaDashboardsParamsWithContext creates a new ListGrafanaDashboardsParams object with the ability to set a context for a request.

func NewListGrafanaDashboardsParamsWithHTTPClient

func NewListGrafanaDashboardsParamsWithHTTPClient(client *http.Client) *ListGrafanaDashboardsParams

NewListGrafanaDashboardsParamsWithHTTPClient creates a new ListGrafanaDashboardsParams object with the ability to set a custom HTTPClient for a request.

func NewListGrafanaDashboardsParamsWithTimeout

func NewListGrafanaDashboardsParamsWithTimeout(timeout time.Duration) *ListGrafanaDashboardsParams

NewListGrafanaDashboardsParamsWithTimeout creates a new ListGrafanaDashboardsParams object with the ability to set a timeout on a request.

func (*ListGrafanaDashboardsParams) SetBucketSlugs

func (o *ListGrafanaDashboardsParams) SetBucketSlugs(bucketSlugs []string)

SetBucketSlugs adds the bucketSlugs to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetCollectionSlugs

func (o *ListGrafanaDashboardsParams) SetCollectionSlugs(collectionSlugs []string)

SetCollectionSlugs adds the collectionSlugs to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetContext

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

SetContext adds the context to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetDefaults

func (o *ListGrafanaDashboardsParams) SetDefaults()

SetDefaults hydrates default values in the list grafana dashboards params (not the query body).

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

func (*ListGrafanaDashboardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetIncludeDashboardJSON

func (o *ListGrafanaDashboardsParams) SetIncludeDashboardJSON(includeDashboardJSON *bool)

SetIncludeDashboardJSON adds the includeDashboardJson to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetNames

func (o *ListGrafanaDashboardsParams) SetNames(names []string)

SetNames adds the names to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetPageMaxSize

func (o *ListGrafanaDashboardsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetPageToken

func (o *ListGrafanaDashboardsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetSlugs

func (o *ListGrafanaDashboardsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) SetTimeout

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

SetTimeout adds the timeout to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithBucketSlugs

func (o *ListGrafanaDashboardsParams) WithBucketSlugs(bucketSlugs []string) *ListGrafanaDashboardsParams

WithBucketSlugs adds the bucketSlugs to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithCollectionSlugs

func (o *ListGrafanaDashboardsParams) WithCollectionSlugs(collectionSlugs []string) *ListGrafanaDashboardsParams

WithCollectionSlugs adds the collectionSlugs to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithContext

WithContext adds the context to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithDefaults

WithDefaults hydrates default values in the list grafana dashboards params (not the query body).

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

func (*ListGrafanaDashboardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithIncludeDashboardJSON

func (o *ListGrafanaDashboardsParams) WithIncludeDashboardJSON(includeDashboardJSON *bool) *ListGrafanaDashboardsParams

WithIncludeDashboardJSON adds the includeDashboardJSON to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithNames

WithNames adds the names to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithPageMaxSize

func (o *ListGrafanaDashboardsParams) WithPageMaxSize(pageMaxSize *int64) *ListGrafanaDashboardsParams

WithPageMaxSize adds the pageMaxSize to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithPageToken

func (o *ListGrafanaDashboardsParams) WithPageToken(pageToken *string) *ListGrafanaDashboardsParams

WithPageToken adds the pageToken to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithSlugs

WithSlugs adds the slugs to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WithTimeout

WithTimeout adds the timeout to the list grafana dashboards params

func (*ListGrafanaDashboardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListGrafanaDashboardsReader

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

ListGrafanaDashboardsReader is a Reader for the ListGrafanaDashboards structure.

func (*ListGrafanaDashboardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadGrafanaDashboardDefault

type ReadGrafanaDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewReadGrafanaDashboardDefault

func NewReadGrafanaDashboardDefault(code int) *ReadGrafanaDashboardDefault

NewReadGrafanaDashboardDefault creates a ReadGrafanaDashboardDefault with default headers values

func (*ReadGrafanaDashboardDefault) Code

func (o *ReadGrafanaDashboardDefault) Code() int

Code gets the status code for the read grafana dashboard default response

func (*ReadGrafanaDashboardDefault) Error

func (*ReadGrafanaDashboardDefault) GetPayload

func (*ReadGrafanaDashboardDefault) IsClientError

func (o *ReadGrafanaDashboardDefault) IsClientError() bool

IsClientError returns true when this read grafana dashboard default response has a 4xx status code

func (*ReadGrafanaDashboardDefault) IsCode

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

IsCode returns true when this read grafana dashboard default response a status code equal to that given

func (*ReadGrafanaDashboardDefault) IsRedirect

func (o *ReadGrafanaDashboardDefault) IsRedirect() bool

IsRedirect returns true when this read grafana dashboard default response has a 3xx status code

func (*ReadGrafanaDashboardDefault) IsServerError

func (o *ReadGrafanaDashboardDefault) IsServerError() bool

IsServerError returns true when this read grafana dashboard default response has a 5xx status code

func (*ReadGrafanaDashboardDefault) IsSuccess

func (o *ReadGrafanaDashboardDefault) IsSuccess() bool

IsSuccess returns true when this read grafana dashboard default response has a 2xx status code

func (*ReadGrafanaDashboardDefault) String

func (o *ReadGrafanaDashboardDefault) String() string

type ReadGrafanaDashboardInternalServerError

type ReadGrafanaDashboardInternalServerError struct {
	Payload *models.APIError
}

ReadGrafanaDashboardInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadGrafanaDashboardInternalServerError

func NewReadGrafanaDashboardInternalServerError() *ReadGrafanaDashboardInternalServerError

NewReadGrafanaDashboardInternalServerError creates a ReadGrafanaDashboardInternalServerError with default headers values

func (*ReadGrafanaDashboardInternalServerError) Code

Code gets the status code for the read grafana dashboard internal server error response

func (*ReadGrafanaDashboardInternalServerError) Error

func (*ReadGrafanaDashboardInternalServerError) GetPayload

func (*ReadGrafanaDashboardInternalServerError) IsClientError

func (o *ReadGrafanaDashboardInternalServerError) IsClientError() bool

IsClientError returns true when this read grafana dashboard internal server error response has a 4xx status code

func (*ReadGrafanaDashboardInternalServerError) IsCode

IsCode returns true when this read grafana dashboard internal server error response a status code equal to that given

func (*ReadGrafanaDashboardInternalServerError) IsRedirect

IsRedirect returns true when this read grafana dashboard internal server error response has a 3xx status code

func (*ReadGrafanaDashboardInternalServerError) IsServerError

func (o *ReadGrafanaDashboardInternalServerError) IsServerError() bool

IsServerError returns true when this read grafana dashboard internal server error response has a 5xx status code

func (*ReadGrafanaDashboardInternalServerError) IsSuccess

IsSuccess returns true when this read grafana dashboard internal server error response has a 2xx status code

func (*ReadGrafanaDashboardInternalServerError) String

type ReadGrafanaDashboardNotFound

type ReadGrafanaDashboardNotFound struct {
	Payload *models.APIError
}

ReadGrafanaDashboardNotFound describes a response with status code 404, with default header values.

Cannot read the GrafanaDashboard because the slug does not exist.

func NewReadGrafanaDashboardNotFound

func NewReadGrafanaDashboardNotFound() *ReadGrafanaDashboardNotFound

NewReadGrafanaDashboardNotFound creates a ReadGrafanaDashboardNotFound with default headers values

func (*ReadGrafanaDashboardNotFound) Code

Code gets the status code for the read grafana dashboard not found response

func (*ReadGrafanaDashboardNotFound) Error

func (*ReadGrafanaDashboardNotFound) GetPayload

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

func (*ReadGrafanaDashboardNotFound) IsClientError

func (o *ReadGrafanaDashboardNotFound) IsClientError() bool

IsClientError returns true when this read grafana dashboard not found response has a 4xx status code

func (*ReadGrafanaDashboardNotFound) IsCode

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

IsCode returns true when this read grafana dashboard not found response a status code equal to that given

func (*ReadGrafanaDashboardNotFound) IsRedirect

func (o *ReadGrafanaDashboardNotFound) IsRedirect() bool

IsRedirect returns true when this read grafana dashboard not found response has a 3xx status code

func (*ReadGrafanaDashboardNotFound) IsServerError

func (o *ReadGrafanaDashboardNotFound) IsServerError() bool

IsServerError returns true when this read grafana dashboard not found response has a 5xx status code

func (*ReadGrafanaDashboardNotFound) IsSuccess

func (o *ReadGrafanaDashboardNotFound) IsSuccess() bool

IsSuccess returns true when this read grafana dashboard not found response has a 2xx status code

func (*ReadGrafanaDashboardNotFound) String

type ReadGrafanaDashboardOK

type ReadGrafanaDashboardOK struct {
	Payload *models.Configv1ReadGrafanaDashboardResponse
}

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

A successful response.

func NewReadGrafanaDashboardOK

func NewReadGrafanaDashboardOK() *ReadGrafanaDashboardOK

NewReadGrafanaDashboardOK creates a ReadGrafanaDashboardOK with default headers values

func (*ReadGrafanaDashboardOK) Code

func (o *ReadGrafanaDashboardOK) Code() int

Code gets the status code for the read grafana dashboard o k response

func (*ReadGrafanaDashboardOK) Error

func (o *ReadGrafanaDashboardOK) Error() string

func (*ReadGrafanaDashboardOK) GetPayload

func (*ReadGrafanaDashboardOK) IsClientError

func (o *ReadGrafanaDashboardOK) IsClientError() bool

IsClientError returns true when this read grafana dashboard o k response has a 4xx status code

func (*ReadGrafanaDashboardOK) IsCode

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

IsCode returns true when this read grafana dashboard o k response a status code equal to that given

func (*ReadGrafanaDashboardOK) IsRedirect

func (o *ReadGrafanaDashboardOK) IsRedirect() bool

IsRedirect returns true when this read grafana dashboard o k response has a 3xx status code

func (*ReadGrafanaDashboardOK) IsServerError

func (o *ReadGrafanaDashboardOK) IsServerError() bool

IsServerError returns true when this read grafana dashboard o k response has a 5xx status code

func (*ReadGrafanaDashboardOK) IsSuccess

func (o *ReadGrafanaDashboardOK) IsSuccess() bool

IsSuccess returns true when this read grafana dashboard o k response has a 2xx status code

func (*ReadGrafanaDashboardOK) String

func (o *ReadGrafanaDashboardOK) String() string

type ReadGrafanaDashboardParams

type ReadGrafanaDashboardParams struct {

	// Slug.
	Slug string

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

ReadGrafanaDashboardParams contains all the parameters to send to the API endpoint

for the read grafana dashboard operation.

Typically these are written to a http.Request.

func NewReadGrafanaDashboardParams

func NewReadGrafanaDashboardParams() *ReadGrafanaDashboardParams

NewReadGrafanaDashboardParams creates a new ReadGrafanaDashboardParams 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 NewReadGrafanaDashboardParamsWithContext

func NewReadGrafanaDashboardParamsWithContext(ctx context.Context) *ReadGrafanaDashboardParams

NewReadGrafanaDashboardParamsWithContext creates a new ReadGrafanaDashboardParams object with the ability to set a context for a request.

func NewReadGrafanaDashboardParamsWithHTTPClient

func NewReadGrafanaDashboardParamsWithHTTPClient(client *http.Client) *ReadGrafanaDashboardParams

NewReadGrafanaDashboardParamsWithHTTPClient creates a new ReadGrafanaDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewReadGrafanaDashboardParamsWithTimeout

func NewReadGrafanaDashboardParamsWithTimeout(timeout time.Duration) *ReadGrafanaDashboardParams

NewReadGrafanaDashboardParamsWithTimeout creates a new ReadGrafanaDashboardParams object with the ability to set a timeout on a request.

func (*ReadGrafanaDashboardParams) SetContext

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

SetContext adds the context to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) SetDefaults

func (o *ReadGrafanaDashboardParams) SetDefaults()

SetDefaults hydrates default values in the read grafana dashboard params (not the query body).

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

func (*ReadGrafanaDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) SetSlug

func (o *ReadGrafanaDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) WithContext

WithContext adds the context to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) WithDefaults

WithDefaults hydrates default values in the read grafana dashboard params (not the query body).

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

func (*ReadGrafanaDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) WithSlug

WithSlug adds the slug to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) WithTimeout

WithTimeout adds the timeout to the read grafana dashboard params

func (*ReadGrafanaDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadGrafanaDashboardReader

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

ReadGrafanaDashboardReader is a Reader for the ReadGrafanaDashboard structure.

func (*ReadGrafanaDashboardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGrafanaDashboardBadRequest

type UpdateGrafanaDashboardBadRequest struct {
	Payload *models.APIError
}

UpdateGrafanaDashboardBadRequest describes a response with status code 400, with default header values.

Cannot update the GrafanaDashboard because the request is invalid.

func NewUpdateGrafanaDashboardBadRequest

func NewUpdateGrafanaDashboardBadRequest() *UpdateGrafanaDashboardBadRequest

NewUpdateGrafanaDashboardBadRequest creates a UpdateGrafanaDashboardBadRequest with default headers values

func (*UpdateGrafanaDashboardBadRequest) Code

Code gets the status code for the update grafana dashboard bad request response

func (*UpdateGrafanaDashboardBadRequest) Error

func (*UpdateGrafanaDashboardBadRequest) GetPayload

func (*UpdateGrafanaDashboardBadRequest) IsClientError

func (o *UpdateGrafanaDashboardBadRequest) IsClientError() bool

IsClientError returns true when this update grafana dashboard bad request response has a 4xx status code

func (*UpdateGrafanaDashboardBadRequest) IsCode

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

IsCode returns true when this update grafana dashboard bad request response a status code equal to that given

func (*UpdateGrafanaDashboardBadRequest) IsRedirect

func (o *UpdateGrafanaDashboardBadRequest) IsRedirect() bool

IsRedirect returns true when this update grafana dashboard bad request response has a 3xx status code

func (*UpdateGrafanaDashboardBadRequest) IsServerError

func (o *UpdateGrafanaDashboardBadRequest) IsServerError() bool

IsServerError returns true when this update grafana dashboard bad request response has a 5xx status code

func (*UpdateGrafanaDashboardBadRequest) IsSuccess

func (o *UpdateGrafanaDashboardBadRequest) IsSuccess() bool

IsSuccess returns true when this update grafana dashboard bad request response has a 2xx status code

func (*UpdateGrafanaDashboardBadRequest) String

type UpdateGrafanaDashboardConflict

type UpdateGrafanaDashboardConflict struct {
	Payload *models.APIError
}

UpdateGrafanaDashboardConflict describes a response with status code 409, with default header values.

Cannot update the GrafanaDashboard because there is a conflict with an existing GrafanaDashboard.

func NewUpdateGrafanaDashboardConflict

func NewUpdateGrafanaDashboardConflict() *UpdateGrafanaDashboardConflict

NewUpdateGrafanaDashboardConflict creates a UpdateGrafanaDashboardConflict with default headers values

func (*UpdateGrafanaDashboardConflict) Code

Code gets the status code for the update grafana dashboard conflict response

func (*UpdateGrafanaDashboardConflict) Error

func (*UpdateGrafanaDashboardConflict) GetPayload

func (*UpdateGrafanaDashboardConflict) IsClientError

func (o *UpdateGrafanaDashboardConflict) IsClientError() bool

IsClientError returns true when this update grafana dashboard conflict response has a 4xx status code

func (*UpdateGrafanaDashboardConflict) IsCode

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

IsCode returns true when this update grafana dashboard conflict response a status code equal to that given

func (*UpdateGrafanaDashboardConflict) IsRedirect

func (o *UpdateGrafanaDashboardConflict) IsRedirect() bool

IsRedirect returns true when this update grafana dashboard conflict response has a 3xx status code

func (*UpdateGrafanaDashboardConflict) IsServerError

func (o *UpdateGrafanaDashboardConflict) IsServerError() bool

IsServerError returns true when this update grafana dashboard conflict response has a 5xx status code

func (*UpdateGrafanaDashboardConflict) IsSuccess

func (o *UpdateGrafanaDashboardConflict) IsSuccess() bool

IsSuccess returns true when this update grafana dashboard conflict response has a 2xx status code

func (*UpdateGrafanaDashboardConflict) String

type UpdateGrafanaDashboardDefault

type UpdateGrafanaDashboardDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

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

An undefined error response.

func NewUpdateGrafanaDashboardDefault

func NewUpdateGrafanaDashboardDefault(code int) *UpdateGrafanaDashboardDefault

NewUpdateGrafanaDashboardDefault creates a UpdateGrafanaDashboardDefault with default headers values

func (*UpdateGrafanaDashboardDefault) Code

Code gets the status code for the update grafana dashboard default response

func (*UpdateGrafanaDashboardDefault) Error

func (*UpdateGrafanaDashboardDefault) GetPayload

func (*UpdateGrafanaDashboardDefault) IsClientError

func (o *UpdateGrafanaDashboardDefault) IsClientError() bool

IsClientError returns true when this update grafana dashboard default response has a 4xx status code

func (*UpdateGrafanaDashboardDefault) IsCode

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

IsCode returns true when this update grafana dashboard default response a status code equal to that given

func (*UpdateGrafanaDashboardDefault) IsRedirect

func (o *UpdateGrafanaDashboardDefault) IsRedirect() bool

IsRedirect returns true when this update grafana dashboard default response has a 3xx status code

func (*UpdateGrafanaDashboardDefault) IsServerError

func (o *UpdateGrafanaDashboardDefault) IsServerError() bool

IsServerError returns true when this update grafana dashboard default response has a 5xx status code

func (*UpdateGrafanaDashboardDefault) IsSuccess

func (o *UpdateGrafanaDashboardDefault) IsSuccess() bool

IsSuccess returns true when this update grafana dashboard default response has a 2xx status code

func (*UpdateGrafanaDashboardDefault) String

type UpdateGrafanaDashboardInternalServerError

type UpdateGrafanaDashboardInternalServerError struct {
	Payload *models.APIError
}

UpdateGrafanaDashboardInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateGrafanaDashboardInternalServerError

func NewUpdateGrafanaDashboardInternalServerError() *UpdateGrafanaDashboardInternalServerError

NewUpdateGrafanaDashboardInternalServerError creates a UpdateGrafanaDashboardInternalServerError with default headers values

func (*UpdateGrafanaDashboardInternalServerError) Code

Code gets the status code for the update grafana dashboard internal server error response

func (*UpdateGrafanaDashboardInternalServerError) Error

func (*UpdateGrafanaDashboardInternalServerError) GetPayload

func (*UpdateGrafanaDashboardInternalServerError) IsClientError

IsClientError returns true when this update grafana dashboard internal server error response has a 4xx status code

func (*UpdateGrafanaDashboardInternalServerError) IsCode

IsCode returns true when this update grafana dashboard internal server error response a status code equal to that given

func (*UpdateGrafanaDashboardInternalServerError) IsRedirect

IsRedirect returns true when this update grafana dashboard internal server error response has a 3xx status code

func (*UpdateGrafanaDashboardInternalServerError) IsServerError

IsServerError returns true when this update grafana dashboard internal server error response has a 5xx status code

func (*UpdateGrafanaDashboardInternalServerError) IsSuccess

IsSuccess returns true when this update grafana dashboard internal server error response has a 2xx status code

func (*UpdateGrafanaDashboardInternalServerError) String

type UpdateGrafanaDashboardNotFound

type UpdateGrafanaDashboardNotFound struct {
	Payload *models.APIError
}

UpdateGrafanaDashboardNotFound describes a response with status code 404, with default header values.

Cannot update the GrafanaDashboard because the slug does not exist.

func NewUpdateGrafanaDashboardNotFound

func NewUpdateGrafanaDashboardNotFound() *UpdateGrafanaDashboardNotFound

NewUpdateGrafanaDashboardNotFound creates a UpdateGrafanaDashboardNotFound with default headers values

func (*UpdateGrafanaDashboardNotFound) Code

Code gets the status code for the update grafana dashboard not found response

func (*UpdateGrafanaDashboardNotFound) Error

func (*UpdateGrafanaDashboardNotFound) GetPayload

func (*UpdateGrafanaDashboardNotFound) IsClientError

func (o *UpdateGrafanaDashboardNotFound) IsClientError() bool

IsClientError returns true when this update grafana dashboard not found response has a 4xx status code

func (*UpdateGrafanaDashboardNotFound) IsCode

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

IsCode returns true when this update grafana dashboard not found response a status code equal to that given

func (*UpdateGrafanaDashboardNotFound) IsRedirect

func (o *UpdateGrafanaDashboardNotFound) IsRedirect() bool

IsRedirect returns true when this update grafana dashboard not found response has a 3xx status code

func (*UpdateGrafanaDashboardNotFound) IsServerError

func (o *UpdateGrafanaDashboardNotFound) IsServerError() bool

IsServerError returns true when this update grafana dashboard not found response has a 5xx status code

func (*UpdateGrafanaDashboardNotFound) IsSuccess

func (o *UpdateGrafanaDashboardNotFound) IsSuccess() bool

IsSuccess returns true when this update grafana dashboard not found response has a 2xx status code

func (*UpdateGrafanaDashboardNotFound) String

type UpdateGrafanaDashboardOK

type UpdateGrafanaDashboardOK struct {
	Payload *models.Configv1UpdateGrafanaDashboardResponse
}

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

A successful response containing the updated GrafanaDashboard.

func NewUpdateGrafanaDashboardOK

func NewUpdateGrafanaDashboardOK() *UpdateGrafanaDashboardOK

NewUpdateGrafanaDashboardOK creates a UpdateGrafanaDashboardOK with default headers values

func (*UpdateGrafanaDashboardOK) Code

func (o *UpdateGrafanaDashboardOK) Code() int

Code gets the status code for the update grafana dashboard o k response

func (*UpdateGrafanaDashboardOK) Error

func (o *UpdateGrafanaDashboardOK) Error() string

func (*UpdateGrafanaDashboardOK) GetPayload

func (*UpdateGrafanaDashboardOK) IsClientError

func (o *UpdateGrafanaDashboardOK) IsClientError() bool

IsClientError returns true when this update grafana dashboard o k response has a 4xx status code

func (*UpdateGrafanaDashboardOK) IsCode

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

IsCode returns true when this update grafana dashboard o k response a status code equal to that given

func (*UpdateGrafanaDashboardOK) IsRedirect

func (o *UpdateGrafanaDashboardOK) IsRedirect() bool

IsRedirect returns true when this update grafana dashboard o k response has a 3xx status code

func (*UpdateGrafanaDashboardOK) IsServerError

func (o *UpdateGrafanaDashboardOK) IsServerError() bool

IsServerError returns true when this update grafana dashboard o k response has a 5xx status code

func (*UpdateGrafanaDashboardOK) IsSuccess

func (o *UpdateGrafanaDashboardOK) IsSuccess() bool

IsSuccess returns true when this update grafana dashboard o k response has a 2xx status code

func (*UpdateGrafanaDashboardOK) String

func (o *UpdateGrafanaDashboardOK) String() string

type UpdateGrafanaDashboardParams

type UpdateGrafanaDashboardParams struct {

	// Body.
	Body *models.ConfigV1UpdateGrafanaDashboardBody

	// Slug.
	Slug string

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

UpdateGrafanaDashboardParams contains all the parameters to send to the API endpoint

for the update grafana dashboard operation.

Typically these are written to a http.Request.

func NewUpdateGrafanaDashboardParams

func NewUpdateGrafanaDashboardParams() *UpdateGrafanaDashboardParams

NewUpdateGrafanaDashboardParams creates a new UpdateGrafanaDashboardParams 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 NewUpdateGrafanaDashboardParamsWithContext

func NewUpdateGrafanaDashboardParamsWithContext(ctx context.Context) *UpdateGrafanaDashboardParams

NewUpdateGrafanaDashboardParamsWithContext creates a new UpdateGrafanaDashboardParams object with the ability to set a context for a request.

func NewUpdateGrafanaDashboardParamsWithHTTPClient

func NewUpdateGrafanaDashboardParamsWithHTTPClient(client *http.Client) *UpdateGrafanaDashboardParams

NewUpdateGrafanaDashboardParamsWithHTTPClient creates a new UpdateGrafanaDashboardParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateGrafanaDashboardParamsWithTimeout

func NewUpdateGrafanaDashboardParamsWithTimeout(timeout time.Duration) *UpdateGrafanaDashboardParams

NewUpdateGrafanaDashboardParamsWithTimeout creates a new UpdateGrafanaDashboardParams object with the ability to set a timeout on a request.

func (*UpdateGrafanaDashboardParams) SetBody

SetBody adds the body to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) SetContext

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

SetContext adds the context to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) SetDefaults

func (o *UpdateGrafanaDashboardParams) SetDefaults()

SetDefaults hydrates default values in the update grafana dashboard params (not the query body).

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

func (*UpdateGrafanaDashboardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) SetSlug

func (o *UpdateGrafanaDashboardParams) SetSlug(slug string)

SetSlug adds the slug to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) SetTimeout

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

SetTimeout adds the timeout to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) WithBody

WithBody adds the body to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) WithContext

WithContext adds the context to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) WithDefaults

WithDefaults hydrates default values in the update grafana dashboard params (not the query body).

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

func (*UpdateGrafanaDashboardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) WithSlug

WithSlug adds the slug to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) WithTimeout

WithTimeout adds the timeout to the update grafana dashboard params

func (*UpdateGrafanaDashboardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateGrafanaDashboardReader

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

UpdateGrafanaDashboardReader is a Reader for the UpdateGrafanaDashboard structure.

func (*UpdateGrafanaDashboardReader) ReadResponse

func (o *UpdateGrafanaDashboardReader) 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