alerts

package
v0.0.0-...-3ee50fb Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT 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 alerts API

func (*Client) DeleteV1IncidentsIncidentIDAlertsIncidentAlertID

DeleteV1IncidentsIncidentIDAlertsIncidentAlertID removes an alert from an incident

Remove an alert from an incident

func (*Client) GetV1Alerts

func (a *Client) GetV1Alerts(params *GetV1AlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1AlertsOK, error)

GetV1Alerts lists alerts

Retrieve all alerts from third parties

func (*Client) GetV1AlertsAlertID

func (a *Client) GetV1AlertsAlertID(params *GetV1AlertsAlertIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1AlertsAlertIDOK, error)

GetV1AlertsAlertID gets an alert

Retrieve a single alert

func (*Client) GetV1IncidentsIncidentIDAlerts

func (a *Client) GetV1IncidentsIncidentIDAlerts(params *GetV1IncidentsIncidentIDAlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentsIncidentIDAlertsOK, error)

GetV1IncidentsIncidentIDAlerts lists alerts for an incident

List alerts that have been attached to an incident

func (*Client) GetV1ProcessingLogEntries

func (a *Client) GetV1ProcessingLogEntries(params *GetV1ProcessingLogEntriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1ProcessingLogEntriesOK, error)

GetV1ProcessingLogEntries lists alert processing log entries

Processing Log Entries for a specific alert

func (*Client) PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary

PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary sets an alert as primary for an incident

Setting an alert as primary will overwrite milestone times in the FireHydrant incident with times included in the primary alert. Services attached to the primary alert will also be automatically added to the incident.

func (*Client) PostV1IncidentsIncidentIDAlerts

PostV1IncidentsIncidentIDAlerts attaches an alert to an incident

Add an alert to an incident. FireHydrant needs to have ingested the alert from a third party system in order to attach it to the incident.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new alerts API client.

type DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent

type DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent struct {
}

DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent describes a response with status code 204, with default header values.

Remove an alert from an incident

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent() *DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent

NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent creates a DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent with default headers values

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent) Error

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent) IsClientError

IsClientError returns true when this delete v1 incidents incident Id alerts incident alert Id no content response has a 4xx status code

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent) IsCode

IsCode returns true when this delete v1 incidents incident Id alerts incident alert Id no content response a status code equal to that given

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent) IsRedirect

IsRedirect returns true when this delete v1 incidents incident Id alerts incident alert Id no content response has a 3xx status code

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent) IsServerError

IsServerError returns true when this delete v1 incidents incident Id alerts incident alert Id no content response has a 5xx status code

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent) IsSuccess

IsSuccess returns true when this delete v1 incidents incident Id alerts incident alert Id no content response has a 2xx status code

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDNoContent) String

type DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams

type DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams struct {

	// IncidentAlertID.
	IncidentAlertID string

	// IncidentID.
	IncidentID string

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

DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams contains all the parameters to send to the API endpoint

for the delete v1 incidents incident Id alerts incident alert Id operation.

Typically these are written to a http.Request.

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams() *DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams

NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams creates a new DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams 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 NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithContext

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithContext(ctx context.Context) *DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams

NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithContext creates a new DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams object with the ability to set a context for a request.

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithHTTPClient

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithHTTPClient(client *http.Client) *DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams

NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithHTTPClient creates a new DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithTimeout

func NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithTimeout(timeout time.Duration) *DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams

NewDeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParamsWithTimeout creates a new DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams object with the ability to set a timeout on a request.

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) SetContext

SetContext adds the context to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) SetDefaults

SetDefaults hydrates default values in the delete v1 incidents incident Id alerts incident alert Id params (not the query body).

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

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) SetIncidentAlertID

func (o *DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) SetIncidentAlertID(incidentAlertID string)

SetIncidentAlertID adds the incidentAlertId to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) SetIncidentID

SetIncidentID adds the incidentId to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) SetTimeout

SetTimeout adds the timeout to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) WithContext

WithContext adds the context to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) WithDefaults

WithDefaults hydrates default values in the delete v1 incidents incident Id alerts incident alert Id params (not the query body).

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

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) WithIncidentAlertID

WithIncidentAlertID adds the incidentAlertID to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) WithIncidentID

WithIncidentID adds the incidentID to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) WithTimeout

WithTimeout adds the timeout to the delete v1 incidents incident Id alerts incident alert Id params

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDReader

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

DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDReader is a Reader for the DeleteV1IncidentsIncidentIDAlertsIncidentAlertID structure.

func (*DeleteV1IncidentsIncidentIDAlertsIncidentAlertIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1AlertsAlertIDOK

type GetV1AlertsAlertIDOK struct {
	Payload *models.AlertsAlertEntity
}

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

Retrieve a single alert

func NewGetV1AlertsAlertIDOK

func NewGetV1AlertsAlertIDOK() *GetV1AlertsAlertIDOK

NewGetV1AlertsAlertIDOK creates a GetV1AlertsAlertIDOK with default headers values

func (*GetV1AlertsAlertIDOK) Error

func (o *GetV1AlertsAlertIDOK) Error() string

func (*GetV1AlertsAlertIDOK) GetPayload

func (*GetV1AlertsAlertIDOK) IsClientError

func (o *GetV1AlertsAlertIDOK) IsClientError() bool

IsClientError returns true when this get v1 alerts alert Id o k response has a 4xx status code

func (*GetV1AlertsAlertIDOK) IsCode

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

IsCode returns true when this get v1 alerts alert Id o k response a status code equal to that given

func (*GetV1AlertsAlertIDOK) IsRedirect

func (o *GetV1AlertsAlertIDOK) IsRedirect() bool

IsRedirect returns true when this get v1 alerts alert Id o k response has a 3xx status code

func (*GetV1AlertsAlertIDOK) IsServerError

func (o *GetV1AlertsAlertIDOK) IsServerError() bool

IsServerError returns true when this get v1 alerts alert Id o k response has a 5xx status code

func (*GetV1AlertsAlertIDOK) IsSuccess

func (o *GetV1AlertsAlertIDOK) IsSuccess() bool

IsSuccess returns true when this get v1 alerts alert Id o k response has a 2xx status code

func (*GetV1AlertsAlertIDOK) String

func (o *GetV1AlertsAlertIDOK) String() string

type GetV1AlertsAlertIDParams

type GetV1AlertsAlertIDParams struct {

	// AlertID.
	AlertID string

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

GetV1AlertsAlertIDParams contains all the parameters to send to the API endpoint

for the get v1 alerts alert Id operation.

Typically these are written to a http.Request.

func NewGetV1AlertsAlertIDParams

func NewGetV1AlertsAlertIDParams() *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParams creates a new GetV1AlertsAlertIDParams 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 NewGetV1AlertsAlertIDParamsWithContext

func NewGetV1AlertsAlertIDParamsWithContext(ctx context.Context) *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParamsWithContext creates a new GetV1AlertsAlertIDParams object with the ability to set a context for a request.

func NewGetV1AlertsAlertIDParamsWithHTTPClient

func NewGetV1AlertsAlertIDParamsWithHTTPClient(client *http.Client) *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParamsWithHTTPClient creates a new GetV1AlertsAlertIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1AlertsAlertIDParamsWithTimeout

func NewGetV1AlertsAlertIDParamsWithTimeout(timeout time.Duration) *GetV1AlertsAlertIDParams

NewGetV1AlertsAlertIDParamsWithTimeout creates a new GetV1AlertsAlertIDParams object with the ability to set a timeout on a request.

func (*GetV1AlertsAlertIDParams) SetAlertID

func (o *GetV1AlertsAlertIDParams) SetAlertID(alertID string)

SetAlertID adds the alertId to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) SetContext

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

SetContext adds the context to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) SetDefaults

func (o *GetV1AlertsAlertIDParams) SetDefaults()

SetDefaults hydrates default values in the get v1 alerts alert Id params (not the query body).

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

func (*GetV1AlertsAlertIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithAlertID

func (o *GetV1AlertsAlertIDParams) WithAlertID(alertID string) *GetV1AlertsAlertIDParams

WithAlertID adds the alertID to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithContext

WithContext adds the context to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithDefaults

WithDefaults hydrates default values in the get v1 alerts alert Id params (not the query body).

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

func (*GetV1AlertsAlertIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 alerts alert Id params

func (*GetV1AlertsAlertIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1AlertsAlertIDReader

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

GetV1AlertsAlertIDReader is a Reader for the GetV1AlertsAlertID structure.

func (*GetV1AlertsAlertIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1AlertsOK

type GetV1AlertsOK struct {
	Payload *models.AlertsAlertEntityPaginated
}

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

Retrieve all alerts from third parties

func NewGetV1AlertsOK

func NewGetV1AlertsOK() *GetV1AlertsOK

NewGetV1AlertsOK creates a GetV1AlertsOK with default headers values

func (*GetV1AlertsOK) Error

func (o *GetV1AlertsOK) Error() string

func (*GetV1AlertsOK) GetPayload

func (*GetV1AlertsOK) IsClientError

func (o *GetV1AlertsOK) IsClientError() bool

IsClientError returns true when this get v1 alerts o k response has a 4xx status code

func (*GetV1AlertsOK) IsCode

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

IsCode returns true when this get v1 alerts o k response a status code equal to that given

func (*GetV1AlertsOK) IsRedirect

func (o *GetV1AlertsOK) IsRedirect() bool

IsRedirect returns true when this get v1 alerts o k response has a 3xx status code

func (*GetV1AlertsOK) IsServerError

func (o *GetV1AlertsOK) IsServerError() bool

IsServerError returns true when this get v1 alerts o k response has a 5xx status code

func (*GetV1AlertsOK) IsSuccess

func (o *GetV1AlertsOK) IsSuccess() bool

IsSuccess returns true when this get v1 alerts o k response has a 2xx status code

func (*GetV1AlertsOK) String

func (o *GetV1AlertsOK) String() string

type GetV1AlertsParams

type GetV1AlertsParams struct {

	/* Environments.

	   A comma separated list of environment IDs. This currently only works for Signals alerts.
	*/
	Environments *string

	/* Functionalities.

	   A comma separated list of functionality IDs. This currently only works for Signals alerts.
	*/
	Functionalities *string

	// Page.
	//
	// Format: int32
	Page *int32

	// PerPage.
	//
	// Format: int32
	PerPage *int32

	/* Query.

	   A text query for alerts
	*/
	Query *string

	/* Services.

	   A comma separated list of service IDs. This currently only works for Signals alerts.
	*/
	Services *string

	/* SignalRules.

	   A comma separated list of signals rule IDs. This currently only works for Signals alerts.
	*/
	SignalRules *string

	/* Statuses.

	   A comma separated list of statuses to filter by. Valid statuses are: opened, acknowledged, resolved, ignored, expired, or linked
	*/
	Statuses *string

	/* TagMatchStrategy.

	   The strategy to match tags. `any` will return alerts that have at least one of the supplied tags, `match_all` will return only alerts that have all of the supplied tags, and `exclude` will only return alerts that have none of the supplied tags. This currently only works for Signals alerts.
	*/
	TagMatchStrategy *string

	/* Tags.

	   A comma separated list of tags. This currently only works for Signals alerts.
	*/
	Tags *string

	/* Teams.

	   A comma separated list of team IDs. This currently only works for Signals alerts.
	*/
	Teams *string

	/* Users.

	   A comma separated list of user IDs. This currently only works for Signals alerts.
	*/
	Users *string

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

GetV1AlertsParams contains all the parameters to send to the API endpoint

for the get v1 alerts operation.

Typically these are written to a http.Request.

func NewGetV1AlertsParams

func NewGetV1AlertsParams() *GetV1AlertsParams

NewGetV1AlertsParams creates a new GetV1AlertsParams 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 NewGetV1AlertsParamsWithContext

func NewGetV1AlertsParamsWithContext(ctx context.Context) *GetV1AlertsParams

NewGetV1AlertsParamsWithContext creates a new GetV1AlertsParams object with the ability to set a context for a request.

func NewGetV1AlertsParamsWithHTTPClient

func NewGetV1AlertsParamsWithHTTPClient(client *http.Client) *GetV1AlertsParams

NewGetV1AlertsParamsWithHTTPClient creates a new GetV1AlertsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1AlertsParamsWithTimeout

func NewGetV1AlertsParamsWithTimeout(timeout time.Duration) *GetV1AlertsParams

NewGetV1AlertsParamsWithTimeout creates a new GetV1AlertsParams object with the ability to set a timeout on a request.

func (*GetV1AlertsParams) SetContext

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

SetContext adds the context to the get v1 alerts params

func (*GetV1AlertsParams) SetDefaults

func (o *GetV1AlertsParams) SetDefaults()

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

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

func (*GetV1AlertsParams) SetEnvironments

func (o *GetV1AlertsParams) SetEnvironments(environments *string)

SetEnvironments adds the environments to the get v1 alerts params

func (*GetV1AlertsParams) SetFunctionalities

func (o *GetV1AlertsParams) SetFunctionalities(functionalities *string)

SetFunctionalities adds the functionalities to the get v1 alerts params

func (*GetV1AlertsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 alerts params

func (*GetV1AlertsParams) SetPage

func (o *GetV1AlertsParams) SetPage(page *int32)

SetPage adds the page to the get v1 alerts params

func (*GetV1AlertsParams) SetPerPage

func (o *GetV1AlertsParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v1 alerts params

func (*GetV1AlertsParams) SetQuery

func (o *GetV1AlertsParams) SetQuery(query *string)

SetQuery adds the query to the get v1 alerts params

func (*GetV1AlertsParams) SetServices

func (o *GetV1AlertsParams) SetServices(services *string)

SetServices adds the services to the get v1 alerts params

func (*GetV1AlertsParams) SetSignalRules

func (o *GetV1AlertsParams) SetSignalRules(signalRules *string)

SetSignalRules adds the signalRules to the get v1 alerts params

func (*GetV1AlertsParams) SetStatuses

func (o *GetV1AlertsParams) SetStatuses(statuses *string)

SetStatuses adds the statuses to the get v1 alerts params

func (*GetV1AlertsParams) SetTagMatchStrategy

func (o *GetV1AlertsParams) SetTagMatchStrategy(tagMatchStrategy *string)

SetTagMatchStrategy adds the tagMatchStrategy to the get v1 alerts params

func (*GetV1AlertsParams) SetTags

func (o *GetV1AlertsParams) SetTags(tags *string)

SetTags adds the tags to the get v1 alerts params

func (*GetV1AlertsParams) SetTeams

func (o *GetV1AlertsParams) SetTeams(teams *string)

SetTeams adds the teams to the get v1 alerts params

func (*GetV1AlertsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 alerts params

func (*GetV1AlertsParams) SetUsers

func (o *GetV1AlertsParams) SetUsers(users *string)

SetUsers adds the users to the get v1 alerts params

func (*GetV1AlertsParams) WithContext

func (o *GetV1AlertsParams) WithContext(ctx context.Context) *GetV1AlertsParams

WithContext adds the context to the get v1 alerts params

func (*GetV1AlertsParams) WithDefaults

func (o *GetV1AlertsParams) WithDefaults() *GetV1AlertsParams

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

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

func (*GetV1AlertsParams) WithEnvironments

func (o *GetV1AlertsParams) WithEnvironments(environments *string) *GetV1AlertsParams

WithEnvironments adds the environments to the get v1 alerts params

func (*GetV1AlertsParams) WithFunctionalities

func (o *GetV1AlertsParams) WithFunctionalities(functionalities *string) *GetV1AlertsParams

WithFunctionalities adds the functionalities to the get v1 alerts params

func (*GetV1AlertsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 alerts params

func (*GetV1AlertsParams) WithPage

func (o *GetV1AlertsParams) WithPage(page *int32) *GetV1AlertsParams

WithPage adds the page to the get v1 alerts params

func (*GetV1AlertsParams) WithPerPage

func (o *GetV1AlertsParams) WithPerPage(perPage *int32) *GetV1AlertsParams

WithPerPage adds the perPage to the get v1 alerts params

func (*GetV1AlertsParams) WithQuery

func (o *GetV1AlertsParams) WithQuery(query *string) *GetV1AlertsParams

WithQuery adds the query to the get v1 alerts params

func (*GetV1AlertsParams) WithServices

func (o *GetV1AlertsParams) WithServices(services *string) *GetV1AlertsParams

WithServices adds the services to the get v1 alerts params

func (*GetV1AlertsParams) WithSignalRules

func (o *GetV1AlertsParams) WithSignalRules(signalRules *string) *GetV1AlertsParams

WithSignalRules adds the signalRules to the get v1 alerts params

func (*GetV1AlertsParams) WithStatuses

func (o *GetV1AlertsParams) WithStatuses(statuses *string) *GetV1AlertsParams

WithStatuses adds the statuses to the get v1 alerts params

func (*GetV1AlertsParams) WithTagMatchStrategy

func (o *GetV1AlertsParams) WithTagMatchStrategy(tagMatchStrategy *string) *GetV1AlertsParams

WithTagMatchStrategy adds the tagMatchStrategy to the get v1 alerts params

func (*GetV1AlertsParams) WithTags

func (o *GetV1AlertsParams) WithTags(tags *string) *GetV1AlertsParams

WithTags adds the tags to the get v1 alerts params

func (*GetV1AlertsParams) WithTeams

func (o *GetV1AlertsParams) WithTeams(teams *string) *GetV1AlertsParams

WithTeams adds the teams to the get v1 alerts params

func (*GetV1AlertsParams) WithTimeout

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

WithTimeout adds the timeout to the get v1 alerts params

func (*GetV1AlertsParams) WithUsers

func (o *GetV1AlertsParams) WithUsers(users *string) *GetV1AlertsParams

WithUsers adds the users to the get v1 alerts params

func (*GetV1AlertsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetV1AlertsReader

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

GetV1AlertsReader is a Reader for the GetV1Alerts structure.

func (*GetV1AlertsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1IncidentsIncidentIDAlertsOK

type GetV1IncidentsIncidentIDAlertsOK struct {
	Payload *models.IncidentsAlertEntityPaginated
}

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

List alerts that have been attached to an incident

func NewGetV1IncidentsIncidentIDAlertsOK

func NewGetV1IncidentsIncidentIDAlertsOK() *GetV1IncidentsIncidentIDAlertsOK

NewGetV1IncidentsIncidentIDAlertsOK creates a GetV1IncidentsIncidentIDAlertsOK with default headers values

func (*GetV1IncidentsIncidentIDAlertsOK) Error

func (*GetV1IncidentsIncidentIDAlertsOK) GetPayload

func (*GetV1IncidentsIncidentIDAlertsOK) IsClientError

func (o *GetV1IncidentsIncidentIDAlertsOK) IsClientError() bool

IsClientError returns true when this get v1 incidents incident Id alerts o k response has a 4xx status code

func (*GetV1IncidentsIncidentIDAlertsOK) IsCode

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

IsCode returns true when this get v1 incidents incident Id alerts o k response a status code equal to that given

func (*GetV1IncidentsIncidentIDAlertsOK) IsRedirect

func (o *GetV1IncidentsIncidentIDAlertsOK) IsRedirect() bool

IsRedirect returns true when this get v1 incidents incident Id alerts o k response has a 3xx status code

func (*GetV1IncidentsIncidentIDAlertsOK) IsServerError

func (o *GetV1IncidentsIncidentIDAlertsOK) IsServerError() bool

IsServerError returns true when this get v1 incidents incident Id alerts o k response has a 5xx status code

func (*GetV1IncidentsIncidentIDAlertsOK) IsSuccess

func (o *GetV1IncidentsIncidentIDAlertsOK) IsSuccess() bool

IsSuccess returns true when this get v1 incidents incident Id alerts o k response has a 2xx status code

func (*GetV1IncidentsIncidentIDAlertsOK) String

type GetV1IncidentsIncidentIDAlertsParams

type GetV1IncidentsIncidentIDAlertsParams struct {

	// IncidentID.
	IncidentID string

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

GetV1IncidentsIncidentIDAlertsParams contains all the parameters to send to the API endpoint

for the get v1 incidents incident Id alerts operation.

Typically these are written to a http.Request.

func NewGetV1IncidentsIncidentIDAlertsParams

func NewGetV1IncidentsIncidentIDAlertsParams() *GetV1IncidentsIncidentIDAlertsParams

NewGetV1IncidentsIncidentIDAlertsParams creates a new GetV1IncidentsIncidentIDAlertsParams 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 NewGetV1IncidentsIncidentIDAlertsParamsWithContext

func NewGetV1IncidentsIncidentIDAlertsParamsWithContext(ctx context.Context) *GetV1IncidentsIncidentIDAlertsParams

NewGetV1IncidentsIncidentIDAlertsParamsWithContext creates a new GetV1IncidentsIncidentIDAlertsParams object with the ability to set a context for a request.

func NewGetV1IncidentsIncidentIDAlertsParamsWithHTTPClient

func NewGetV1IncidentsIncidentIDAlertsParamsWithHTTPClient(client *http.Client) *GetV1IncidentsIncidentIDAlertsParams

NewGetV1IncidentsIncidentIDAlertsParamsWithHTTPClient creates a new GetV1IncidentsIncidentIDAlertsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1IncidentsIncidentIDAlertsParamsWithTimeout

func NewGetV1IncidentsIncidentIDAlertsParamsWithTimeout(timeout time.Duration) *GetV1IncidentsIncidentIDAlertsParams

NewGetV1IncidentsIncidentIDAlertsParamsWithTimeout creates a new GetV1IncidentsIncidentIDAlertsParams object with the ability to set a timeout on a request.

func (*GetV1IncidentsIncidentIDAlertsParams) SetContext

SetContext adds the context to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) SetDefaults

func (o *GetV1IncidentsIncidentIDAlertsParams) SetDefaults()

SetDefaults hydrates default values in the get v1 incidents incident Id alerts params (not the query body).

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

func (*GetV1IncidentsIncidentIDAlertsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) SetIncidentID

func (o *GetV1IncidentsIncidentIDAlertsParams) SetIncidentID(incidentID string)

SetIncidentID adds the incidentId to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) WithContext

WithContext adds the context to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) WithDefaults

WithDefaults hydrates default values in the get v1 incidents incident Id alerts params (not the query body).

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

func (*GetV1IncidentsIncidentIDAlertsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) WithIncidentID

WithIncidentID adds the incidentID to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) WithTimeout

WithTimeout adds the timeout to the get v1 incidents incident Id alerts params

func (*GetV1IncidentsIncidentIDAlertsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1IncidentsIncidentIDAlertsReader

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

GetV1IncidentsIncidentIDAlertsReader is a Reader for the GetV1IncidentsIncidentIDAlerts structure.

func (*GetV1IncidentsIncidentIDAlertsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1ProcessingLogEntriesOK

type GetV1ProcessingLogEntriesOK struct {
	Payload *models.AlertsProcessingLogEntryEntityPaginated
}

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

Processing Log Entries for a specific alert

func NewGetV1ProcessingLogEntriesOK

func NewGetV1ProcessingLogEntriesOK() *GetV1ProcessingLogEntriesOK

NewGetV1ProcessingLogEntriesOK creates a GetV1ProcessingLogEntriesOK with default headers values

func (*GetV1ProcessingLogEntriesOK) Error

func (*GetV1ProcessingLogEntriesOK) GetPayload

func (*GetV1ProcessingLogEntriesOK) IsClientError

func (o *GetV1ProcessingLogEntriesOK) IsClientError() bool

IsClientError returns true when this get v1 processing log entries o k response has a 4xx status code

func (*GetV1ProcessingLogEntriesOK) IsCode

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

IsCode returns true when this get v1 processing log entries o k response a status code equal to that given

func (*GetV1ProcessingLogEntriesOK) IsRedirect

func (o *GetV1ProcessingLogEntriesOK) IsRedirect() bool

IsRedirect returns true when this get v1 processing log entries o k response has a 3xx status code

func (*GetV1ProcessingLogEntriesOK) IsServerError

func (o *GetV1ProcessingLogEntriesOK) IsServerError() bool

IsServerError returns true when this get v1 processing log entries o k response has a 5xx status code

func (*GetV1ProcessingLogEntriesOK) IsSuccess

func (o *GetV1ProcessingLogEntriesOK) IsSuccess() bool

IsSuccess returns true when this get v1 processing log entries o k response has a 2xx status code

func (*GetV1ProcessingLogEntriesOK) String

func (o *GetV1ProcessingLogEntriesOK) String() string

type GetV1ProcessingLogEntriesParams

type GetV1ProcessingLogEntriesParams struct {

	/* ConnectionID.

	   Scopes returned log entries to a specific connection ID
	*/
	ConnectionID *string

	/* ExactLevel.

	   Returns log entries of all levels equal to the provided level
	*/
	ExactLevel *string

	/* IntegrationSlug.

	   Scopes returned log entries to a specific integration ID
	*/
	IntegrationSlug *string

	/* OfLevel.

	   Returns logs of all levels equal to or above the provided level
	*/
	OfLevel *string

	// Page.
	//
	// Format: int32
	Page *int32

	// PerPage.
	//
	// Format: int32
	PerPage *int32

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

GetV1ProcessingLogEntriesParams contains all the parameters to send to the API endpoint

for the get v1 processing log entries operation.

Typically these are written to a http.Request.

func NewGetV1ProcessingLogEntriesParams

func NewGetV1ProcessingLogEntriesParams() *GetV1ProcessingLogEntriesParams

NewGetV1ProcessingLogEntriesParams creates a new GetV1ProcessingLogEntriesParams 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 NewGetV1ProcessingLogEntriesParamsWithContext

func NewGetV1ProcessingLogEntriesParamsWithContext(ctx context.Context) *GetV1ProcessingLogEntriesParams

NewGetV1ProcessingLogEntriesParamsWithContext creates a new GetV1ProcessingLogEntriesParams object with the ability to set a context for a request.

func NewGetV1ProcessingLogEntriesParamsWithHTTPClient

func NewGetV1ProcessingLogEntriesParamsWithHTTPClient(client *http.Client) *GetV1ProcessingLogEntriesParams

NewGetV1ProcessingLogEntriesParamsWithHTTPClient creates a new GetV1ProcessingLogEntriesParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1ProcessingLogEntriesParamsWithTimeout

func NewGetV1ProcessingLogEntriesParamsWithTimeout(timeout time.Duration) *GetV1ProcessingLogEntriesParams

NewGetV1ProcessingLogEntriesParamsWithTimeout creates a new GetV1ProcessingLogEntriesParams object with the ability to set a timeout on a request.

func (*GetV1ProcessingLogEntriesParams) SetConnectionID

func (o *GetV1ProcessingLogEntriesParams) SetConnectionID(connectionID *string)

SetConnectionID adds the connectionId to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetContext

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

SetContext adds the context to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetDefaults

func (o *GetV1ProcessingLogEntriesParams) SetDefaults()

SetDefaults hydrates default values in the get v1 processing log entries params (not the query body).

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

func (*GetV1ProcessingLogEntriesParams) SetExactLevel

func (o *GetV1ProcessingLogEntriesParams) SetExactLevel(exactLevel *string)

SetExactLevel adds the exactLevel to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetIntegrationSlug

func (o *GetV1ProcessingLogEntriesParams) SetIntegrationSlug(integrationSlug *string)

SetIntegrationSlug adds the integrationSlug to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetOfLevel

func (o *GetV1ProcessingLogEntriesParams) SetOfLevel(ofLevel *string)

SetOfLevel adds the ofLevel to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetPage

func (o *GetV1ProcessingLogEntriesParams) SetPage(page *int32)

SetPage adds the page to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetPerPage

func (o *GetV1ProcessingLogEntriesParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithConnectionID

func (o *GetV1ProcessingLogEntriesParams) WithConnectionID(connectionID *string) *GetV1ProcessingLogEntriesParams

WithConnectionID adds the connectionID to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithContext

WithContext adds the context to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithDefaults

WithDefaults hydrates default values in the get v1 processing log entries params (not the query body).

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

func (*GetV1ProcessingLogEntriesParams) WithExactLevel

WithExactLevel adds the exactLevel to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithIntegrationSlug

func (o *GetV1ProcessingLogEntriesParams) WithIntegrationSlug(integrationSlug *string) *GetV1ProcessingLogEntriesParams

WithIntegrationSlug adds the integrationSlug to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithOfLevel

WithOfLevel adds the ofLevel to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithPage

WithPage adds the page to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithPerPage

WithPerPage adds the perPage to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WithTimeout

WithTimeout adds the timeout to the get v1 processing log entries params

func (*GetV1ProcessingLogEntriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1ProcessingLogEntriesReader

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

GetV1ProcessingLogEntriesReader is a Reader for the GetV1ProcessingLogEntries structure.

func (*GetV1ProcessingLogEntriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK

type PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK struct {
	Payload *models.IncidentsAlertEntity
}

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

Setting an alert as primary will overwrite milestone times in the FireHydrant incident with times included in the primary alert. Services attached to the primary alert will also be automatically added to the incident.

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK() *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK

NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK creates a PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK with default headers values

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) Error

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) GetPayload

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) IsClientError

IsClientError returns true when this patch v1 incidents incident Id alerts incident alert Id primary o k response has a 4xx status code

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) IsCode

IsCode returns true when this patch v1 incidents incident Id alerts incident alert Id primary o k response a status code equal to that given

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) IsRedirect

IsRedirect returns true when this patch v1 incidents incident Id alerts incident alert Id primary o k response has a 3xx status code

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) IsServerError

IsServerError returns true when this patch v1 incidents incident Id alerts incident alert Id primary o k response has a 5xx status code

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) IsSuccess

IsSuccess returns true when this patch v1 incidents incident Id alerts incident alert Id primary o k response has a 2xx status code

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryOK) String

type PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams

type PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams struct {

	// IncidentAlertID.
	IncidentAlertID string

	// IncidentID.
	IncidentID string

	// PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary.
	PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary *models.PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary

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

PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams contains all the parameters to send to the API endpoint

for the patch v1 incidents incident Id alerts incident alert Id primary operation.

Typically these are written to a http.Request.

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams() *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams

NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams creates a new PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams 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 NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithContext

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithContext(ctx context.Context) *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams

NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithContext creates a new PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams object with the ability to set a context for a request.

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithHTTPClient

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithHTTPClient(client *http.Client) *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams

NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithHTTPClient creates a new PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams object with the ability to set a custom HTTPClient for a request.

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithTimeout

func NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithTimeout(timeout time.Duration) *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams

NewPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParamsWithTimeout creates a new PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams object with the ability to set a timeout on a request.

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetContext

SetContext adds the context to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetDefaults

SetDefaults hydrates default values in the patch v1 incidents incident Id alerts incident alert Id primary params (not the query body).

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

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetIncidentAlertID

func (o *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetIncidentAlertID(incidentAlertID string)

SetIncidentAlertID adds the incidentAlertId to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetIncidentID

SetIncidentID adds the incidentId to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary

func (o *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary(patchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary *models.PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary)

SetPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary adds the patchV1IncidentsIncidentIdAlertsIncidentAlertIdPrimary to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) SetTimeout

SetTimeout adds the timeout to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithContext

WithContext adds the context to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithDefaults

WithDefaults hydrates default values in the patch v1 incidents incident Id alerts incident alert Id primary params (not the query body).

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

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithIncidentAlertID

WithIncidentAlertID adds the incidentAlertID to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithIncidentID

WithIncidentID adds the incidentID to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary

func (o *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary(patchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary *models.PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary) *PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams

WithPatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary adds the patchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WithTimeout

WithTimeout adds the timeout to the patch v1 incidents incident Id alerts incident alert Id primary params

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryReader

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

PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryReader is a Reader for the PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimary structure.

func (*PatchV1IncidentsIncidentIDAlertsIncidentAlertIDPrimaryReader) ReadResponse

ReadResponse reads a server response into the received o.

type PostV1IncidentsIncidentIDAlertsNoContent

type PostV1IncidentsIncidentIDAlertsNoContent struct {
}

PostV1IncidentsIncidentIDAlertsNoContent describes a response with status code 204, with default header values.

Add an alert to an incident. FireHydrant needs to have ingested the alert from a third party system in order to attach it to the incident.

func NewPostV1IncidentsIncidentIDAlertsNoContent

func NewPostV1IncidentsIncidentIDAlertsNoContent() *PostV1IncidentsIncidentIDAlertsNoContent

NewPostV1IncidentsIncidentIDAlertsNoContent creates a PostV1IncidentsIncidentIDAlertsNoContent with default headers values

func (*PostV1IncidentsIncidentIDAlertsNoContent) Error

func (*PostV1IncidentsIncidentIDAlertsNoContent) IsClientError

IsClientError returns true when this post v1 incidents incident Id alerts no content response has a 4xx status code

func (*PostV1IncidentsIncidentIDAlertsNoContent) IsCode

IsCode returns true when this post v1 incidents incident Id alerts no content response a status code equal to that given

func (*PostV1IncidentsIncidentIDAlertsNoContent) IsRedirect

IsRedirect returns true when this post v1 incidents incident Id alerts no content response has a 3xx status code

func (*PostV1IncidentsIncidentIDAlertsNoContent) IsServerError

IsServerError returns true when this post v1 incidents incident Id alerts no content response has a 5xx status code

func (*PostV1IncidentsIncidentIDAlertsNoContent) IsSuccess

IsSuccess returns true when this post v1 incidents incident Id alerts no content response has a 2xx status code

func (*PostV1IncidentsIncidentIDAlertsNoContent) String

type PostV1IncidentsIncidentIDAlertsParams

type PostV1IncidentsIncidentIDAlertsParams struct {

	/* AlertIds.

	   Array of alert IDs to be assigned to the incident
	*/
	AlertIds []string

	// IncidentID.
	IncidentID string

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

PostV1IncidentsIncidentIDAlertsParams contains all the parameters to send to the API endpoint

for the post v1 incidents incident Id alerts operation.

Typically these are written to a http.Request.

func NewPostV1IncidentsIncidentIDAlertsParams

func NewPostV1IncidentsIncidentIDAlertsParams() *PostV1IncidentsIncidentIDAlertsParams

NewPostV1IncidentsIncidentIDAlertsParams creates a new PostV1IncidentsIncidentIDAlertsParams 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 NewPostV1IncidentsIncidentIDAlertsParamsWithContext

func NewPostV1IncidentsIncidentIDAlertsParamsWithContext(ctx context.Context) *PostV1IncidentsIncidentIDAlertsParams

NewPostV1IncidentsIncidentIDAlertsParamsWithContext creates a new PostV1IncidentsIncidentIDAlertsParams object with the ability to set a context for a request.

func NewPostV1IncidentsIncidentIDAlertsParamsWithHTTPClient

func NewPostV1IncidentsIncidentIDAlertsParamsWithHTTPClient(client *http.Client) *PostV1IncidentsIncidentIDAlertsParams

NewPostV1IncidentsIncidentIDAlertsParamsWithHTTPClient creates a new PostV1IncidentsIncidentIDAlertsParams object with the ability to set a custom HTTPClient for a request.

func NewPostV1IncidentsIncidentIDAlertsParamsWithTimeout

func NewPostV1IncidentsIncidentIDAlertsParamsWithTimeout(timeout time.Duration) *PostV1IncidentsIncidentIDAlertsParams

NewPostV1IncidentsIncidentIDAlertsParamsWithTimeout creates a new PostV1IncidentsIncidentIDAlertsParams object with the ability to set a timeout on a request.

func (*PostV1IncidentsIncidentIDAlertsParams) SetAlertIds

func (o *PostV1IncidentsIncidentIDAlertsParams) SetAlertIds(alertIds []string)

SetAlertIds adds the alertIds to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) SetContext

SetContext adds the context to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) SetDefaults

func (o *PostV1IncidentsIncidentIDAlertsParams) SetDefaults()

SetDefaults hydrates default values in the post v1 incidents incident Id alerts params (not the query body).

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

func (*PostV1IncidentsIncidentIDAlertsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) SetIncidentID

func (o *PostV1IncidentsIncidentIDAlertsParams) SetIncidentID(incidentID string)

SetIncidentID adds the incidentId to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) SetTimeout

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

SetTimeout adds the timeout to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) WithAlertIds

WithAlertIds adds the alertIds to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) WithContext

WithContext adds the context to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) WithDefaults

WithDefaults hydrates default values in the post v1 incidents incident Id alerts params (not the query body).

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

func (*PostV1IncidentsIncidentIDAlertsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) WithIncidentID

WithIncidentID adds the incidentID to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) WithTimeout

WithTimeout adds the timeout to the post v1 incidents incident Id alerts params

func (*PostV1IncidentsIncidentIDAlertsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostV1IncidentsIncidentIDAlertsReader

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

PostV1IncidentsIncidentIDAlertsReader is a Reader for the PostV1IncidentsIncidentIDAlerts structure.

func (*PostV1IncidentsIncidentIDAlertsReader) ReadResponse

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