annotations

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 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 annotations API

func (*Client) DeleteAnnotationByID

func (a *Client) DeleteAnnotationByID(params *DeleteAnnotationByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)

DeleteAnnotationByID deletes annotation by ID

Deletes the annotation that matches the specified ID.

func (*Client) GetAnnotationByID

func (a *Client) GetAnnotationByID(params *GetAnnotationByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnnotationByIDOK, error)

GetAnnotationByID gets annotation by ID

func (*Client) GetAnnotationTags

func (a *Client) GetAnnotationTags(params *GetAnnotationTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnnotationTagsOK, error)

GetAnnotationTags finds annotations tags

Find all the event tags created in the annotations.

func (*Client) GetAnnotations

func (a *Client) GetAnnotations(params *GetAnnotationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnnotationsOK, error)

GetAnnotations finds annotations

Starting in Grafana v6.4 regions annotations are now returned in one entity that now includes the timeEnd property.

func (*Client) MassDeleteAnnotations

func (a *Client) MassDeleteAnnotations(params *MassDeleteAnnotationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)

MassDeleteAnnotations deletes multiple annotations

func (*Client) PatchAnnotation

func (a *Client) PatchAnnotation(params *PatchAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAnnotationOK, error)
PatchAnnotation patches annotation

Updates one or more properties of an annotation that matches the specified ID.

This operation currently supports updating of the `text`, `tags`, `time` and `timeEnd` properties. This is available in Grafana 6.0.0-beta2 and above.

func (*Client) PostAnnotation

func (a *Client) PostAnnotation(params *PostAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAnnotationOK, error)
PostAnnotation creates annotation

Creates an annotation in the Grafana database. The dashboardId and panelId fields are optional. If they are not specified then an organization annotation is created and can be queried in any dashboard that adds the Grafana annotations data source. When creating a region annotation include the timeEnd property.

The format for `time` and `timeEnd` should be epoch numbers in millisecond resolution. The response for this HTTP request is slightly different in versions prior to v6.4. In prior versions you would also get an endId if you where creating a region. But in 6.4 regions are represented using a single event with time and timeEnd properties.

func (*Client) PostGraphiteAnnotation

func (a *Client) PostGraphiteAnnotation(params *PostGraphiteAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)

PostGraphiteAnnotation creates annotation in graphite format

Creates an annotation by using Graphite-compatible event format. The `when` and `data` fields are optional. If `when` is not specified then the current time will be used as annotation’s timestamp. The `tags` field can also be in prior to Graphite `0.10.0` format (string with multiple tags being separated by a space).

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAnnotation

func (a *Client) UpdateAnnotation(params *UpdateAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAnnotationOK, error)

UpdateAnnotation updates annotation

Updates all properties of an annotation that matches the specified id. To only update certain property, consider using the Patch Annotation operation.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteAnnotationByID(params *DeleteAnnotationByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAnnotationByIDOK, error)

	GetAnnotationByID(params *GetAnnotationByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnnotationByIDOK, error)

	GetAnnotationTags(params *GetAnnotationTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnnotationTagsOK, error)

	GetAnnotations(params *GetAnnotationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAnnotationsOK, error)

	MassDeleteAnnotations(params *MassDeleteAnnotationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MassDeleteAnnotationsOK, error)

	PatchAnnotation(params *PatchAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAnnotationOK, error)

	PostAnnotation(params *PostAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAnnotationOK, error)

	PostGraphiteAnnotation(params *PostGraphiteAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGraphiteAnnotationOK, error)

	UpdateAnnotation(params *UpdateAnnotationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAnnotationOK, 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 annotations API client.

type DeleteAnnotationByIDForbidden

type DeleteAnnotationByIDForbidden struct {
	Payload *models.ErrorResponseBody
}

DeleteAnnotationByIDForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewDeleteAnnotationByIDForbidden

func NewDeleteAnnotationByIDForbidden() *DeleteAnnotationByIDForbidden

NewDeleteAnnotationByIDForbidden creates a DeleteAnnotationByIDForbidden with default headers values

func (*DeleteAnnotationByIDForbidden) Error

func (*DeleteAnnotationByIDForbidden) GetPayload

type DeleteAnnotationByIDInternalServerError

type DeleteAnnotationByIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteAnnotationByIDInternalServerError

func NewDeleteAnnotationByIDInternalServerError() *DeleteAnnotationByIDInternalServerError

NewDeleteAnnotationByIDInternalServerError creates a DeleteAnnotationByIDInternalServerError with default headers values

func (*DeleteAnnotationByIDInternalServerError) Error

func (*DeleteAnnotationByIDInternalServerError) GetPayload

type DeleteAnnotationByIDOK

type DeleteAnnotationByIDOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewDeleteAnnotationByIDOK

func NewDeleteAnnotationByIDOK() *DeleteAnnotationByIDOK

NewDeleteAnnotationByIDOK creates a DeleteAnnotationByIDOK with default headers values

func (*DeleteAnnotationByIDOK) Error

func (o *DeleteAnnotationByIDOK) Error() string

func (*DeleteAnnotationByIDOK) GetPayload

type DeleteAnnotationByIDParams

type DeleteAnnotationByIDParams struct {

	// AnnotationID.
	AnnotationID string

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

DeleteAnnotationByIDParams contains all the parameters to send to the API endpoint

for the delete annotation by ID operation.

Typically these are written to a http.Request.

func NewDeleteAnnotationByIDParams

func NewDeleteAnnotationByIDParams() *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParams creates a new DeleteAnnotationByIDParams 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 NewDeleteAnnotationByIDParamsWithContext

func NewDeleteAnnotationByIDParamsWithContext(ctx context.Context) *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParamsWithContext creates a new DeleteAnnotationByIDParams object with the ability to set a context for a request.

func NewDeleteAnnotationByIDParamsWithHTTPClient

func NewDeleteAnnotationByIDParamsWithHTTPClient(client *http.Client) *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParamsWithHTTPClient creates a new DeleteAnnotationByIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAnnotationByIDParamsWithTimeout

func NewDeleteAnnotationByIDParamsWithTimeout(timeout time.Duration) *DeleteAnnotationByIDParams

NewDeleteAnnotationByIDParamsWithTimeout creates a new DeleteAnnotationByIDParams object with the ability to set a timeout on a request.

func (*DeleteAnnotationByIDParams) SetAnnotationID

func (o *DeleteAnnotationByIDParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) SetContext

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

SetContext adds the context to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) SetDefaults

func (o *DeleteAnnotationByIDParams) SetDefaults()

SetDefaults hydrates default values in the delete annotation by ID params (not the query body).

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

func (*DeleteAnnotationByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithAnnotationID

func (o *DeleteAnnotationByIDParams) WithAnnotationID(annotationID string) *DeleteAnnotationByIDParams

WithAnnotationID adds the annotationID to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithContext

WithContext adds the context to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithDefaults

WithDefaults hydrates default values in the delete annotation by ID params (not the query body).

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

func (*DeleteAnnotationByIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WithTimeout

WithTimeout adds the timeout to the delete annotation by ID params

func (*DeleteAnnotationByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAnnotationByIDReader

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

DeleteAnnotationByIDReader is a Reader for the DeleteAnnotationByID structure.

func (*DeleteAnnotationByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAnnotationByIDUnauthorized

type DeleteAnnotationByIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

DeleteAnnotationByIDUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteAnnotationByIDUnauthorized

func NewDeleteAnnotationByIDUnauthorized() *DeleteAnnotationByIDUnauthorized

NewDeleteAnnotationByIDUnauthorized creates a DeleteAnnotationByIDUnauthorized with default headers values

func (*DeleteAnnotationByIDUnauthorized) Error

func (*DeleteAnnotationByIDUnauthorized) GetPayload

type GetAnnotationByIDInternalServerError

type GetAnnotationByIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetAnnotationByIDInternalServerError

func NewGetAnnotationByIDInternalServerError() *GetAnnotationByIDInternalServerError

NewGetAnnotationByIDInternalServerError creates a GetAnnotationByIDInternalServerError with default headers values

func (*GetAnnotationByIDInternalServerError) Error

func (*GetAnnotationByIDInternalServerError) GetPayload

type GetAnnotationByIDOK

type GetAnnotationByIDOK struct {
	Payload *models.ItemDTO
}

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

(empty)

func NewGetAnnotationByIDOK

func NewGetAnnotationByIDOK() *GetAnnotationByIDOK

NewGetAnnotationByIDOK creates a GetAnnotationByIDOK with default headers values

func (*GetAnnotationByIDOK) Error

func (o *GetAnnotationByIDOK) Error() string

func (*GetAnnotationByIDOK) GetPayload

func (o *GetAnnotationByIDOK) GetPayload() *models.ItemDTO

type GetAnnotationByIDParams

type GetAnnotationByIDParams struct {

	// AnnotationID.
	AnnotationID string

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

GetAnnotationByIDParams contains all the parameters to send to the API endpoint

for the get annotation by ID operation.

Typically these are written to a http.Request.

func NewGetAnnotationByIDParams

func NewGetAnnotationByIDParams() *GetAnnotationByIDParams

NewGetAnnotationByIDParams creates a new GetAnnotationByIDParams 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 NewGetAnnotationByIDParamsWithContext

func NewGetAnnotationByIDParamsWithContext(ctx context.Context) *GetAnnotationByIDParams

NewGetAnnotationByIDParamsWithContext creates a new GetAnnotationByIDParams object with the ability to set a context for a request.

func NewGetAnnotationByIDParamsWithHTTPClient

func NewGetAnnotationByIDParamsWithHTTPClient(client *http.Client) *GetAnnotationByIDParams

NewGetAnnotationByIDParamsWithHTTPClient creates a new GetAnnotationByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnnotationByIDParamsWithTimeout

func NewGetAnnotationByIDParamsWithTimeout(timeout time.Duration) *GetAnnotationByIDParams

NewGetAnnotationByIDParamsWithTimeout creates a new GetAnnotationByIDParams object with the ability to set a timeout on a request.

func (*GetAnnotationByIDParams) SetAnnotationID

func (o *GetAnnotationByIDParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the get annotation by ID params

func (*GetAnnotationByIDParams) SetContext

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

SetContext adds the context to the get annotation by ID params

func (*GetAnnotationByIDParams) SetDefaults

func (o *GetAnnotationByIDParams) SetDefaults()

SetDefaults hydrates default values in the get annotation by ID params (not the query body).

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

func (*GetAnnotationByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get annotation by ID params

func (*GetAnnotationByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get annotation by ID params

func (*GetAnnotationByIDParams) WithAnnotationID

func (o *GetAnnotationByIDParams) WithAnnotationID(annotationID string) *GetAnnotationByIDParams

WithAnnotationID adds the annotationID to the get annotation by ID params

func (*GetAnnotationByIDParams) WithContext

WithContext adds the context to the get annotation by ID params

func (*GetAnnotationByIDParams) WithDefaults

WithDefaults hydrates default values in the get annotation by ID params (not the query body).

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

func (*GetAnnotationByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get annotation by ID params

func (*GetAnnotationByIDParams) WithTimeout

WithTimeout adds the timeout to the get annotation by ID params

func (*GetAnnotationByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAnnotationByIDReader

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

GetAnnotationByIDReader is a Reader for the GetAnnotationByID structure.

func (*GetAnnotationByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAnnotationByIDUnauthorized

type GetAnnotationByIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetAnnotationByIDUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetAnnotationByIDUnauthorized

func NewGetAnnotationByIDUnauthorized() *GetAnnotationByIDUnauthorized

NewGetAnnotationByIDUnauthorized creates a GetAnnotationByIDUnauthorized with default headers values

func (*GetAnnotationByIDUnauthorized) Error

func (*GetAnnotationByIDUnauthorized) GetPayload

type GetAnnotationTagsInternalServerError

type GetAnnotationTagsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetAnnotationTagsInternalServerError

func NewGetAnnotationTagsInternalServerError() *GetAnnotationTagsInternalServerError

NewGetAnnotationTagsInternalServerError creates a GetAnnotationTagsInternalServerError with default headers values

func (*GetAnnotationTagsInternalServerError) Error

func (*GetAnnotationTagsInternalServerError) GetPayload

type GetAnnotationTagsOK

type GetAnnotationTagsOK struct {
	Payload *models.GetAnnotationTagsResponse
}

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

(empty)

func NewGetAnnotationTagsOK

func NewGetAnnotationTagsOK() *GetAnnotationTagsOK

NewGetAnnotationTagsOK creates a GetAnnotationTagsOK with default headers values

func (*GetAnnotationTagsOK) Error

func (o *GetAnnotationTagsOK) Error() string

func (*GetAnnotationTagsOK) GetPayload

type GetAnnotationTagsParams

type GetAnnotationTagsParams struct {

	/* Limit.

	   Max limit for results returned.

	   Default: "100"
	*/
	Limit *string

	/* Tag.

	   Tag is a string that you can use to filter tags.
	*/
	Tag *string

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

GetAnnotationTagsParams contains all the parameters to send to the API endpoint

for the get annotation tags operation.

Typically these are written to a http.Request.

func NewGetAnnotationTagsParams

func NewGetAnnotationTagsParams() *GetAnnotationTagsParams

NewGetAnnotationTagsParams creates a new GetAnnotationTagsParams 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 NewGetAnnotationTagsParamsWithContext

func NewGetAnnotationTagsParamsWithContext(ctx context.Context) *GetAnnotationTagsParams

NewGetAnnotationTagsParamsWithContext creates a new GetAnnotationTagsParams object with the ability to set a context for a request.

func NewGetAnnotationTagsParamsWithHTTPClient

func NewGetAnnotationTagsParamsWithHTTPClient(client *http.Client) *GetAnnotationTagsParams

NewGetAnnotationTagsParamsWithHTTPClient creates a new GetAnnotationTagsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnnotationTagsParamsWithTimeout

func NewGetAnnotationTagsParamsWithTimeout(timeout time.Duration) *GetAnnotationTagsParams

NewGetAnnotationTagsParamsWithTimeout creates a new GetAnnotationTagsParams object with the ability to set a timeout on a request.

func (*GetAnnotationTagsParams) SetContext

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

SetContext adds the context to the get annotation tags params

func (*GetAnnotationTagsParams) SetDefaults

func (o *GetAnnotationTagsParams) SetDefaults()

SetDefaults hydrates default values in the get annotation tags params (not the query body).

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

func (*GetAnnotationTagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get annotation tags params

func (*GetAnnotationTagsParams) SetLimit

func (o *GetAnnotationTagsParams) SetLimit(limit *string)

SetLimit adds the limit to the get annotation tags params

func (*GetAnnotationTagsParams) SetTag

func (o *GetAnnotationTagsParams) SetTag(tag *string)

SetTag adds the tag to the get annotation tags params

func (*GetAnnotationTagsParams) SetTimeout

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

SetTimeout adds the timeout to the get annotation tags params

func (*GetAnnotationTagsParams) WithContext

WithContext adds the context to the get annotation tags params

func (*GetAnnotationTagsParams) WithDefaults

WithDefaults hydrates default values in the get annotation tags params (not the query body).

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

func (*GetAnnotationTagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get annotation tags params

func (*GetAnnotationTagsParams) WithLimit

WithLimit adds the limit to the get annotation tags params

func (*GetAnnotationTagsParams) WithTag

WithTag adds the tag to the get annotation tags params

func (*GetAnnotationTagsParams) WithTimeout

WithTimeout adds the timeout to the get annotation tags params

func (*GetAnnotationTagsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAnnotationTagsReader

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

GetAnnotationTagsReader is a Reader for the GetAnnotationTags structure.

func (*GetAnnotationTagsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAnnotationTagsUnauthorized

type GetAnnotationTagsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetAnnotationTagsUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetAnnotationTagsUnauthorized

func NewGetAnnotationTagsUnauthorized() *GetAnnotationTagsUnauthorized

NewGetAnnotationTagsUnauthorized creates a GetAnnotationTagsUnauthorized with default headers values

func (*GetAnnotationTagsUnauthorized) Error

func (*GetAnnotationTagsUnauthorized) GetPayload

type GetAnnotationsInternalServerError

type GetAnnotationsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetAnnotationsInternalServerError

func NewGetAnnotationsInternalServerError() *GetAnnotationsInternalServerError

NewGetAnnotationsInternalServerError creates a GetAnnotationsInternalServerError with default headers values

func (*GetAnnotationsInternalServerError) Error

func (*GetAnnotationsInternalServerError) GetPayload

type GetAnnotationsOK

type GetAnnotationsOK struct {
	Payload []*models.ItemDTO
}

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

(empty)

func NewGetAnnotationsOK

func NewGetAnnotationsOK() *GetAnnotationsOK

NewGetAnnotationsOK creates a GetAnnotationsOK with default headers values

func (*GetAnnotationsOK) Error

func (o *GetAnnotationsOK) Error() string

func (*GetAnnotationsOK) GetPayload

func (o *GetAnnotationsOK) GetPayload() []*models.ItemDTO

type GetAnnotationsParams

type GetAnnotationsParams struct {

	/* AlertID.

	   Find annotations for a specified alert.

	   Format: int64
	*/
	AlertID *int64

	/* DashboardID.

	   Find annotations that are scoped to a specific dashboard

	   Format: int64
	*/
	DashboardID *int64

	/* DashboardUID.

	   Find annotations that are scoped to a specific dashboard
	*/
	DashboardUID *string

	/* From.

	   Find annotations created after specific epoch datetime in milliseconds.

	   Format: int64
	*/
	From *int64

	/* Limit.

	   Max limit for results returned.

	   Format: int64
	*/
	Limit *int64

	/* MatchAny.

	   Match any or all tags
	*/
	MatchAny *bool

	/* PanelID.

	   Find annotations that are scoped to a specific panel

	   Format: int64
	*/
	PanelID *int64

	/* Tags.

	   Use this to filter organization annotations. Organization annotations are annotations from an annotation data source that are not connected specifically to a dashboard or panel. You can filter by multiple tags.
	*/
	Tags []string

	/* To.

	   Find annotations created before specific epoch datetime in milliseconds.

	   Format: int64
	*/
	To *int64

	/* Type.

	   Return alerts or user created annotations
	*/
	Type *string

	/* UserID.

	   Limit response to annotations created by specific user.

	   Format: int64
	*/
	UserID *int64

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

GetAnnotationsParams contains all the parameters to send to the API endpoint

for the get annotations operation.

Typically these are written to a http.Request.

func NewGetAnnotationsParams

func NewGetAnnotationsParams() *GetAnnotationsParams

NewGetAnnotationsParams creates a new GetAnnotationsParams 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 NewGetAnnotationsParamsWithContext

func NewGetAnnotationsParamsWithContext(ctx context.Context) *GetAnnotationsParams

NewGetAnnotationsParamsWithContext creates a new GetAnnotationsParams object with the ability to set a context for a request.

func NewGetAnnotationsParamsWithHTTPClient

func NewGetAnnotationsParamsWithHTTPClient(client *http.Client) *GetAnnotationsParams

NewGetAnnotationsParamsWithHTTPClient creates a new GetAnnotationsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAnnotationsParamsWithTimeout

func NewGetAnnotationsParamsWithTimeout(timeout time.Duration) *GetAnnotationsParams

NewGetAnnotationsParamsWithTimeout creates a new GetAnnotationsParams object with the ability to set a timeout on a request.

func (*GetAnnotationsParams) SetAlertID

func (o *GetAnnotationsParams) SetAlertID(alertID *int64)

SetAlertID adds the alertId to the get annotations params

func (*GetAnnotationsParams) SetContext

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

SetContext adds the context to the get annotations params

func (*GetAnnotationsParams) SetDashboardID

func (o *GetAnnotationsParams) SetDashboardID(dashboardID *int64)

SetDashboardID adds the dashboardId to the get annotations params

func (*GetAnnotationsParams) SetDashboardUID

func (o *GetAnnotationsParams) SetDashboardUID(dashboardUID *string)

SetDashboardUID adds the dashboardUid to the get annotations params

func (*GetAnnotationsParams) SetDefaults

func (o *GetAnnotationsParams) SetDefaults()

SetDefaults hydrates default values in the get annotations params (not the query body).

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

func (*GetAnnotationsParams) SetFrom

func (o *GetAnnotationsParams) SetFrom(from *int64)

SetFrom adds the from to the get annotations params

func (*GetAnnotationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get annotations params

func (*GetAnnotationsParams) SetLimit

func (o *GetAnnotationsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get annotations params

func (*GetAnnotationsParams) SetMatchAny

func (o *GetAnnotationsParams) SetMatchAny(matchAny *bool)

SetMatchAny adds the matchAny to the get annotations params

func (*GetAnnotationsParams) SetPanelID

func (o *GetAnnotationsParams) SetPanelID(panelID *int64)

SetPanelID adds the panelId to the get annotations params

func (*GetAnnotationsParams) SetTags

func (o *GetAnnotationsParams) SetTags(tags []string)

SetTags adds the tags to the get annotations params

func (*GetAnnotationsParams) SetTimeout

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

SetTimeout adds the timeout to the get annotations params

func (*GetAnnotationsParams) SetTo

func (o *GetAnnotationsParams) SetTo(to *int64)

SetTo adds the to to the get annotations params

func (*GetAnnotationsParams) SetType

func (o *GetAnnotationsParams) SetType(typeVar *string)

SetType adds the type to the get annotations params

func (*GetAnnotationsParams) SetUserID

func (o *GetAnnotationsParams) SetUserID(userID *int64)

SetUserID adds the userId to the get annotations params

func (*GetAnnotationsParams) WithAlertID

func (o *GetAnnotationsParams) WithAlertID(alertID *int64) *GetAnnotationsParams

WithAlertID adds the alertID to the get annotations params

func (*GetAnnotationsParams) WithContext

WithContext adds the context to the get annotations params

func (*GetAnnotationsParams) WithDashboardID

func (o *GetAnnotationsParams) WithDashboardID(dashboardID *int64) *GetAnnotationsParams

WithDashboardID adds the dashboardID to the get annotations params

func (*GetAnnotationsParams) WithDashboardUID

func (o *GetAnnotationsParams) WithDashboardUID(dashboardUID *string) *GetAnnotationsParams

WithDashboardUID adds the dashboardUID to the get annotations params

func (*GetAnnotationsParams) WithDefaults

func (o *GetAnnotationsParams) WithDefaults() *GetAnnotationsParams

WithDefaults hydrates default values in the get annotations params (not the query body).

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

func (*GetAnnotationsParams) WithFrom

func (o *GetAnnotationsParams) WithFrom(from *int64) *GetAnnotationsParams

WithFrom adds the from to the get annotations params

func (*GetAnnotationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get annotations params

func (*GetAnnotationsParams) WithLimit

func (o *GetAnnotationsParams) WithLimit(limit *int64) *GetAnnotationsParams

WithLimit adds the limit to the get annotations params

func (*GetAnnotationsParams) WithMatchAny

func (o *GetAnnotationsParams) WithMatchAny(matchAny *bool) *GetAnnotationsParams

WithMatchAny adds the matchAny to the get annotations params

func (*GetAnnotationsParams) WithPanelID

func (o *GetAnnotationsParams) WithPanelID(panelID *int64) *GetAnnotationsParams

WithPanelID adds the panelID to the get annotations params

func (*GetAnnotationsParams) WithTags

func (o *GetAnnotationsParams) WithTags(tags []string) *GetAnnotationsParams

WithTags adds the tags to the get annotations params

func (*GetAnnotationsParams) WithTimeout

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

WithTimeout adds the timeout to the get annotations params

func (*GetAnnotationsParams) WithTo

WithTo adds the to to the get annotations params

func (*GetAnnotationsParams) WithType

func (o *GetAnnotationsParams) WithType(typeVar *string) *GetAnnotationsParams

WithType adds the typeVar to the get annotations params

func (*GetAnnotationsParams) WithUserID

func (o *GetAnnotationsParams) WithUserID(userID *int64) *GetAnnotationsParams

WithUserID adds the userID to the get annotations params

func (*GetAnnotationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAnnotationsReader

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

GetAnnotationsReader is a Reader for the GetAnnotations structure.

func (*GetAnnotationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAnnotationsUnauthorized

type GetAnnotationsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetAnnotationsUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetAnnotationsUnauthorized

func NewGetAnnotationsUnauthorized() *GetAnnotationsUnauthorized

NewGetAnnotationsUnauthorized creates a GetAnnotationsUnauthorized with default headers values

func (*GetAnnotationsUnauthorized) Error

func (*GetAnnotationsUnauthorized) GetPayload

type MassDeleteAnnotationsInternalServerError

type MassDeleteAnnotationsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewMassDeleteAnnotationsInternalServerError

func NewMassDeleteAnnotationsInternalServerError() *MassDeleteAnnotationsInternalServerError

NewMassDeleteAnnotationsInternalServerError creates a MassDeleteAnnotationsInternalServerError with default headers values

func (*MassDeleteAnnotationsInternalServerError) Error

func (*MassDeleteAnnotationsInternalServerError) GetPayload

type MassDeleteAnnotationsOK

type MassDeleteAnnotationsOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewMassDeleteAnnotationsOK

func NewMassDeleteAnnotationsOK() *MassDeleteAnnotationsOK

NewMassDeleteAnnotationsOK creates a MassDeleteAnnotationsOK with default headers values

func (*MassDeleteAnnotationsOK) Error

func (o *MassDeleteAnnotationsOK) Error() string

func (*MassDeleteAnnotationsOK) GetPayload

type MassDeleteAnnotationsParams

type MassDeleteAnnotationsParams struct {

	// Body.
	Body *models.MassDeleteAnnotationsCmd

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

MassDeleteAnnotationsParams contains all the parameters to send to the API endpoint

for the mass delete annotations operation.

Typically these are written to a http.Request.

func NewMassDeleteAnnotationsParams

func NewMassDeleteAnnotationsParams() *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParams creates a new MassDeleteAnnotationsParams 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 NewMassDeleteAnnotationsParamsWithContext

func NewMassDeleteAnnotationsParamsWithContext(ctx context.Context) *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParamsWithContext creates a new MassDeleteAnnotationsParams object with the ability to set a context for a request.

func NewMassDeleteAnnotationsParamsWithHTTPClient

func NewMassDeleteAnnotationsParamsWithHTTPClient(client *http.Client) *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParamsWithHTTPClient creates a new MassDeleteAnnotationsParams object with the ability to set a custom HTTPClient for a request.

func NewMassDeleteAnnotationsParamsWithTimeout

func NewMassDeleteAnnotationsParamsWithTimeout(timeout time.Duration) *MassDeleteAnnotationsParams

NewMassDeleteAnnotationsParamsWithTimeout creates a new MassDeleteAnnotationsParams object with the ability to set a timeout on a request.

func (*MassDeleteAnnotationsParams) SetBody

SetBody adds the body to the mass delete annotations params

func (*MassDeleteAnnotationsParams) SetContext

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

SetContext adds the context to the mass delete annotations params

func (*MassDeleteAnnotationsParams) SetDefaults

func (o *MassDeleteAnnotationsParams) SetDefaults()

SetDefaults hydrates default values in the mass delete annotations params (not the query body).

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

func (*MassDeleteAnnotationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the mass delete annotations params

func (*MassDeleteAnnotationsParams) SetTimeout

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

SetTimeout adds the timeout to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithBody

WithBody adds the body to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithContext

WithContext adds the context to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithDefaults

WithDefaults hydrates default values in the mass delete annotations params (not the query body).

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

func (*MassDeleteAnnotationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WithTimeout

WithTimeout adds the timeout to the mass delete annotations params

func (*MassDeleteAnnotationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type MassDeleteAnnotationsReader

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

MassDeleteAnnotationsReader is a Reader for the MassDeleteAnnotations structure.

func (*MassDeleteAnnotationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MassDeleteAnnotationsUnauthorized

type MassDeleteAnnotationsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

MassDeleteAnnotationsUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewMassDeleteAnnotationsUnauthorized

func NewMassDeleteAnnotationsUnauthorized() *MassDeleteAnnotationsUnauthorized

NewMassDeleteAnnotationsUnauthorized creates a MassDeleteAnnotationsUnauthorized with default headers values

func (*MassDeleteAnnotationsUnauthorized) Error

func (*MassDeleteAnnotationsUnauthorized) GetPayload

type PatchAnnotationForbidden

type PatchAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

PatchAnnotationForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewPatchAnnotationForbidden

func NewPatchAnnotationForbidden() *PatchAnnotationForbidden

NewPatchAnnotationForbidden creates a PatchAnnotationForbidden with default headers values

func (*PatchAnnotationForbidden) Error

func (o *PatchAnnotationForbidden) Error() string

func (*PatchAnnotationForbidden) GetPayload

type PatchAnnotationInternalServerError

type PatchAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewPatchAnnotationInternalServerError

func NewPatchAnnotationInternalServerError() *PatchAnnotationInternalServerError

NewPatchAnnotationInternalServerError creates a PatchAnnotationInternalServerError with default headers values

func (*PatchAnnotationInternalServerError) Error

func (*PatchAnnotationInternalServerError) GetPayload

type PatchAnnotationNotFound

type PatchAnnotationNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewPatchAnnotationNotFound

func NewPatchAnnotationNotFound() *PatchAnnotationNotFound

NewPatchAnnotationNotFound creates a PatchAnnotationNotFound with default headers values

func (*PatchAnnotationNotFound) Error

func (o *PatchAnnotationNotFound) Error() string

func (*PatchAnnotationNotFound) GetPayload

type PatchAnnotationOK

type PatchAnnotationOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewPatchAnnotationOK

func NewPatchAnnotationOK() *PatchAnnotationOK

NewPatchAnnotationOK creates a PatchAnnotationOK with default headers values

func (*PatchAnnotationOK) Error

func (o *PatchAnnotationOK) Error() string

func (*PatchAnnotationOK) GetPayload

func (o *PatchAnnotationOK) GetPayload() *models.SuccessResponseBody

type PatchAnnotationParams

type PatchAnnotationParams struct {

	// AnnotationID.
	AnnotationID string

	// Body.
	Body *models.PatchAnnotationsCmd

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

PatchAnnotationParams contains all the parameters to send to the API endpoint

for the patch annotation operation.

Typically these are written to a http.Request.

func NewPatchAnnotationParams

func NewPatchAnnotationParams() *PatchAnnotationParams

NewPatchAnnotationParams creates a new PatchAnnotationParams 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 NewPatchAnnotationParamsWithContext

func NewPatchAnnotationParamsWithContext(ctx context.Context) *PatchAnnotationParams

NewPatchAnnotationParamsWithContext creates a new PatchAnnotationParams object with the ability to set a context for a request.

func NewPatchAnnotationParamsWithHTTPClient

func NewPatchAnnotationParamsWithHTTPClient(client *http.Client) *PatchAnnotationParams

NewPatchAnnotationParamsWithHTTPClient creates a new PatchAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAnnotationParamsWithTimeout

func NewPatchAnnotationParamsWithTimeout(timeout time.Duration) *PatchAnnotationParams

NewPatchAnnotationParamsWithTimeout creates a new PatchAnnotationParams object with the ability to set a timeout on a request.

func (*PatchAnnotationParams) SetAnnotationID

func (o *PatchAnnotationParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the patch annotation params

func (*PatchAnnotationParams) SetBody

SetBody adds the body to the patch annotation params

func (*PatchAnnotationParams) SetContext

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

SetContext adds the context to the patch annotation params

func (*PatchAnnotationParams) SetDefaults

func (o *PatchAnnotationParams) SetDefaults()

SetDefaults hydrates default values in the patch annotation params (not the query body).

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

func (*PatchAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch annotation params

func (*PatchAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the patch annotation params

func (*PatchAnnotationParams) WithAnnotationID

func (o *PatchAnnotationParams) WithAnnotationID(annotationID string) *PatchAnnotationParams

WithAnnotationID adds the annotationID to the patch annotation params

func (*PatchAnnotationParams) WithBody

WithBody adds the body to the patch annotation params

func (*PatchAnnotationParams) WithContext

WithContext adds the context to the patch annotation params

func (*PatchAnnotationParams) WithDefaults

func (o *PatchAnnotationParams) WithDefaults() *PatchAnnotationParams

WithDefaults hydrates default values in the patch annotation params (not the query body).

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

func (*PatchAnnotationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch annotation params

func (*PatchAnnotationParams) WithTimeout

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

WithTimeout adds the timeout to the patch annotation params

func (*PatchAnnotationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchAnnotationReader

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

PatchAnnotationReader is a Reader for the PatchAnnotation structure.

func (*PatchAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAnnotationUnauthorized

type PatchAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

PatchAnnotationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewPatchAnnotationUnauthorized

func NewPatchAnnotationUnauthorized() *PatchAnnotationUnauthorized

NewPatchAnnotationUnauthorized creates a PatchAnnotationUnauthorized with default headers values

func (*PatchAnnotationUnauthorized) Error

func (*PatchAnnotationUnauthorized) GetPayload

type PostAnnotationBadRequest

type PostAnnotationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewPostAnnotationBadRequest

func NewPostAnnotationBadRequest() *PostAnnotationBadRequest

NewPostAnnotationBadRequest creates a PostAnnotationBadRequest with default headers values

func (*PostAnnotationBadRequest) Error

func (o *PostAnnotationBadRequest) Error() string

func (*PostAnnotationBadRequest) GetPayload

type PostAnnotationForbidden

type PostAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

PostAnnotationForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewPostAnnotationForbidden

func NewPostAnnotationForbidden() *PostAnnotationForbidden

NewPostAnnotationForbidden creates a PostAnnotationForbidden with default headers values

func (*PostAnnotationForbidden) Error

func (o *PostAnnotationForbidden) Error() string

func (*PostAnnotationForbidden) GetPayload

type PostAnnotationInternalServerError

type PostAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewPostAnnotationInternalServerError

func NewPostAnnotationInternalServerError() *PostAnnotationInternalServerError

NewPostAnnotationInternalServerError creates a PostAnnotationInternalServerError with default headers values

func (*PostAnnotationInternalServerError) Error

func (*PostAnnotationInternalServerError) GetPayload

type PostAnnotationOK

type PostAnnotationOK struct {
	Payload *models.PostAnnotationOKBody
}

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

(empty)

func NewPostAnnotationOK

func NewPostAnnotationOK() *PostAnnotationOK

NewPostAnnotationOK creates a PostAnnotationOK with default headers values

func (*PostAnnotationOK) Error

func (o *PostAnnotationOK) Error() string

func (*PostAnnotationOK) GetPayload

func (o *PostAnnotationOK) GetPayload() *models.PostAnnotationOKBody

type PostAnnotationParams

type PostAnnotationParams struct {

	// Body.
	Body *models.PostAnnotationsCmd

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

PostAnnotationParams contains all the parameters to send to the API endpoint

for the post annotation operation.

Typically these are written to a http.Request.

func NewPostAnnotationParams

func NewPostAnnotationParams() *PostAnnotationParams

NewPostAnnotationParams creates a new PostAnnotationParams 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 NewPostAnnotationParamsWithContext

func NewPostAnnotationParamsWithContext(ctx context.Context) *PostAnnotationParams

NewPostAnnotationParamsWithContext creates a new PostAnnotationParams object with the ability to set a context for a request.

func NewPostAnnotationParamsWithHTTPClient

func NewPostAnnotationParamsWithHTTPClient(client *http.Client) *PostAnnotationParams

NewPostAnnotationParamsWithHTTPClient creates a new PostAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewPostAnnotationParamsWithTimeout

func NewPostAnnotationParamsWithTimeout(timeout time.Duration) *PostAnnotationParams

NewPostAnnotationParamsWithTimeout creates a new PostAnnotationParams object with the ability to set a timeout on a request.

func (*PostAnnotationParams) SetBody

SetBody adds the body to the post annotation params

func (*PostAnnotationParams) SetContext

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

SetContext adds the context to the post annotation params

func (*PostAnnotationParams) SetDefaults

func (o *PostAnnotationParams) SetDefaults()

SetDefaults hydrates default values in the post annotation params (not the query body).

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

func (*PostAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post annotation params

func (*PostAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the post annotation params

func (*PostAnnotationParams) WithBody

WithBody adds the body to the post annotation params

func (*PostAnnotationParams) WithContext

WithContext adds the context to the post annotation params

func (*PostAnnotationParams) WithDefaults

func (o *PostAnnotationParams) WithDefaults() *PostAnnotationParams

WithDefaults hydrates default values in the post annotation params (not the query body).

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

func (*PostAnnotationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post annotation params

func (*PostAnnotationParams) WithTimeout

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

WithTimeout adds the timeout to the post annotation params

func (*PostAnnotationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAnnotationReader

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

PostAnnotationReader is a Reader for the PostAnnotation structure.

func (*PostAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAnnotationUnauthorized

type PostAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

PostAnnotationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewPostAnnotationUnauthorized

func NewPostAnnotationUnauthorized() *PostAnnotationUnauthorized

NewPostAnnotationUnauthorized creates a PostAnnotationUnauthorized with default headers values

func (*PostAnnotationUnauthorized) Error

func (*PostAnnotationUnauthorized) GetPayload

type PostGraphiteAnnotationBadRequest

type PostGraphiteAnnotationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewPostGraphiteAnnotationBadRequest

func NewPostGraphiteAnnotationBadRequest() *PostGraphiteAnnotationBadRequest

NewPostGraphiteAnnotationBadRequest creates a PostGraphiteAnnotationBadRequest with default headers values

func (*PostGraphiteAnnotationBadRequest) Error

func (*PostGraphiteAnnotationBadRequest) GetPayload

type PostGraphiteAnnotationForbidden

type PostGraphiteAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

PostGraphiteAnnotationForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewPostGraphiteAnnotationForbidden

func NewPostGraphiteAnnotationForbidden() *PostGraphiteAnnotationForbidden

NewPostGraphiteAnnotationForbidden creates a PostGraphiteAnnotationForbidden with default headers values

func (*PostGraphiteAnnotationForbidden) Error

func (*PostGraphiteAnnotationForbidden) GetPayload

type PostGraphiteAnnotationInternalServerError

type PostGraphiteAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewPostGraphiteAnnotationInternalServerError

func NewPostGraphiteAnnotationInternalServerError() *PostGraphiteAnnotationInternalServerError

NewPostGraphiteAnnotationInternalServerError creates a PostGraphiteAnnotationInternalServerError with default headers values

func (*PostGraphiteAnnotationInternalServerError) Error

func (*PostGraphiteAnnotationInternalServerError) GetPayload

type PostGraphiteAnnotationOK

type PostGraphiteAnnotationOK struct {
	Payload *models.PostGraphiteAnnotationOKBody
}

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

(empty)

func NewPostGraphiteAnnotationOK

func NewPostGraphiteAnnotationOK() *PostGraphiteAnnotationOK

NewPostGraphiteAnnotationOK creates a PostGraphiteAnnotationOK with default headers values

func (*PostGraphiteAnnotationOK) Error

func (o *PostGraphiteAnnotationOK) Error() string

func (*PostGraphiteAnnotationOK) GetPayload

type PostGraphiteAnnotationParams

type PostGraphiteAnnotationParams struct {

	// Body.
	Body *models.PostGraphiteAnnotationsCmd

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

PostGraphiteAnnotationParams contains all the parameters to send to the API endpoint

for the post graphite annotation operation.

Typically these are written to a http.Request.

func NewPostGraphiteAnnotationParams

func NewPostGraphiteAnnotationParams() *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParams creates a new PostGraphiteAnnotationParams 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 NewPostGraphiteAnnotationParamsWithContext

func NewPostGraphiteAnnotationParamsWithContext(ctx context.Context) *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParamsWithContext creates a new PostGraphiteAnnotationParams object with the ability to set a context for a request.

func NewPostGraphiteAnnotationParamsWithHTTPClient

func NewPostGraphiteAnnotationParamsWithHTTPClient(client *http.Client) *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParamsWithHTTPClient creates a new PostGraphiteAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewPostGraphiteAnnotationParamsWithTimeout

func NewPostGraphiteAnnotationParamsWithTimeout(timeout time.Duration) *PostGraphiteAnnotationParams

NewPostGraphiteAnnotationParamsWithTimeout creates a new PostGraphiteAnnotationParams object with the ability to set a timeout on a request.

func (*PostGraphiteAnnotationParams) SetBody

SetBody adds the body to the post graphite annotation params

func (*PostGraphiteAnnotationParams) SetContext

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

SetContext adds the context to the post graphite annotation params

func (*PostGraphiteAnnotationParams) SetDefaults

func (o *PostGraphiteAnnotationParams) SetDefaults()

SetDefaults hydrates default values in the post graphite annotation params (not the query body).

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

func (*PostGraphiteAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post graphite annotation params

func (*PostGraphiteAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithBody

WithBody adds the body to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithContext

WithContext adds the context to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithDefaults

WithDefaults hydrates default values in the post graphite annotation params (not the query body).

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

func (*PostGraphiteAnnotationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WithTimeout

WithTimeout adds the timeout to the post graphite annotation params

func (*PostGraphiteAnnotationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostGraphiteAnnotationReader

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

PostGraphiteAnnotationReader is a Reader for the PostGraphiteAnnotation structure.

func (*PostGraphiteAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostGraphiteAnnotationUnauthorized

type PostGraphiteAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

PostGraphiteAnnotationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewPostGraphiteAnnotationUnauthorized

func NewPostGraphiteAnnotationUnauthorized() *PostGraphiteAnnotationUnauthorized

NewPostGraphiteAnnotationUnauthorized creates a PostGraphiteAnnotationUnauthorized with default headers values

func (*PostGraphiteAnnotationUnauthorized) Error

func (*PostGraphiteAnnotationUnauthorized) GetPayload

type UpdateAnnotationBadRequest

type UpdateAnnotationBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewUpdateAnnotationBadRequest

func NewUpdateAnnotationBadRequest() *UpdateAnnotationBadRequest

NewUpdateAnnotationBadRequest creates a UpdateAnnotationBadRequest with default headers values

func (*UpdateAnnotationBadRequest) Error

func (*UpdateAnnotationBadRequest) GetPayload

type UpdateAnnotationForbidden

type UpdateAnnotationForbidden struct {
	Payload *models.ErrorResponseBody
}

UpdateAnnotationForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewUpdateAnnotationForbidden

func NewUpdateAnnotationForbidden() *UpdateAnnotationForbidden

NewUpdateAnnotationForbidden creates a UpdateAnnotationForbidden with default headers values

func (*UpdateAnnotationForbidden) Error

func (o *UpdateAnnotationForbidden) Error() string

func (*UpdateAnnotationForbidden) GetPayload

type UpdateAnnotationInternalServerError

type UpdateAnnotationInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateAnnotationInternalServerError

func NewUpdateAnnotationInternalServerError() *UpdateAnnotationInternalServerError

NewUpdateAnnotationInternalServerError creates a UpdateAnnotationInternalServerError with default headers values

func (*UpdateAnnotationInternalServerError) Error

func (*UpdateAnnotationInternalServerError) GetPayload

type UpdateAnnotationOK

type UpdateAnnotationOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewUpdateAnnotationOK

func NewUpdateAnnotationOK() *UpdateAnnotationOK

NewUpdateAnnotationOK creates a UpdateAnnotationOK with default headers values

func (*UpdateAnnotationOK) Error

func (o *UpdateAnnotationOK) Error() string

func (*UpdateAnnotationOK) GetPayload

type UpdateAnnotationParams

type UpdateAnnotationParams struct {

	// AnnotationID.
	AnnotationID string

	// Body.
	Body *models.UpdateAnnotationsCmd

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

UpdateAnnotationParams contains all the parameters to send to the API endpoint

for the update annotation operation.

Typically these are written to a http.Request.

func NewUpdateAnnotationParams

func NewUpdateAnnotationParams() *UpdateAnnotationParams

NewUpdateAnnotationParams creates a new UpdateAnnotationParams 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 NewUpdateAnnotationParamsWithContext

func NewUpdateAnnotationParamsWithContext(ctx context.Context) *UpdateAnnotationParams

NewUpdateAnnotationParamsWithContext creates a new UpdateAnnotationParams object with the ability to set a context for a request.

func NewUpdateAnnotationParamsWithHTTPClient

func NewUpdateAnnotationParamsWithHTTPClient(client *http.Client) *UpdateAnnotationParams

NewUpdateAnnotationParamsWithHTTPClient creates a new UpdateAnnotationParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAnnotationParamsWithTimeout

func NewUpdateAnnotationParamsWithTimeout(timeout time.Duration) *UpdateAnnotationParams

NewUpdateAnnotationParamsWithTimeout creates a new UpdateAnnotationParams object with the ability to set a timeout on a request.

func (*UpdateAnnotationParams) SetAnnotationID

func (o *UpdateAnnotationParams) SetAnnotationID(annotationID string)

SetAnnotationID adds the annotationId to the update annotation params

func (*UpdateAnnotationParams) SetBody

SetBody adds the body to the update annotation params

func (*UpdateAnnotationParams) SetContext

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

SetContext adds the context to the update annotation params

func (*UpdateAnnotationParams) SetDefaults

func (o *UpdateAnnotationParams) SetDefaults()

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

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

func (*UpdateAnnotationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update annotation params

func (*UpdateAnnotationParams) SetTimeout

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

SetTimeout adds the timeout to the update annotation params

func (*UpdateAnnotationParams) WithAnnotationID

func (o *UpdateAnnotationParams) WithAnnotationID(annotationID string) *UpdateAnnotationParams

WithAnnotationID adds the annotationID to the update annotation params

func (*UpdateAnnotationParams) WithBody

WithBody adds the body to the update annotation params

func (*UpdateAnnotationParams) WithContext

WithContext adds the context to the update annotation params

func (*UpdateAnnotationParams) WithDefaults

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

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

func (*UpdateAnnotationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update annotation params

func (*UpdateAnnotationParams) WithTimeout

WithTimeout adds the timeout to the update annotation params

func (*UpdateAnnotationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateAnnotationReader

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

UpdateAnnotationReader is a Reader for the UpdateAnnotation structure.

func (*UpdateAnnotationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAnnotationUnauthorized

type UpdateAnnotationUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UpdateAnnotationUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateAnnotationUnauthorized

func NewUpdateAnnotationUnauthorized() *UpdateAnnotationUnauthorized

NewUpdateAnnotationUnauthorized creates a UpdateAnnotationUnauthorized with default headers values

func (*UpdateAnnotationUnauthorized) Error

func (*UpdateAnnotationUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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