api

package module
v0.0.0-...-43819c5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 12 Imported by: 3

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

Types

type Component

type Component struct {
	// ActivelyAffectedBy A list of impacts for a component.
	// Impacts reference incidents.
	ActivelyAffectedBy *ImpactIncidentList `json:"activelyAffectedBy,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`

	// Labels Labels are free text key value pairs for components.
	Labels *Labels `json:"labels,omitempty"`
}

Component defines model for Component.

type ComponentIdPathParameter

type ComponentIdPathParameter = Id

ComponentIdPathParameter Identification for objects. UUID preferred.

type ComponentListResponse

type ComponentListResponse struct {
	Data []ComponentResponseData `json:"data"`
}

ComponentListResponse defines model for ComponentListResponse.

type ComponentRequest

type ComponentRequest = Component

ComponentRequest defines model for ComponentRequest.

type ComponentResponse

type ComponentResponse struct {
	Data ComponentResponseData `json:"data"`
}

ComponentResponse defines model for ComponentResponse.

type ComponentResponseData

type ComponentResponseData struct {
	// ActivelyAffectedBy A list of impacts for a component.
	// Impacts reference incidents.
	ActivelyAffectedBy *ImpactIncidentList `json:"activelyAffectedBy,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`

	// Id Identification for objects. UUID preferred.
	Id Id `json:"id"`

	// Labels Labels are free text key value pairs for components.
	Labels *Labels `json:"labels,omitempty"`
}

ComponentResponseData defines model for ComponentResponseData.

type CreateComponentJSONRequestBody

type CreateComponentJSONRequestBody = Component

CreateComponentJSONRequestBody defines body for CreateComponent for application/json ContentType.

type CreateImpactTypeJSONRequestBody

type CreateImpactTypeJSONRequestBody = ImpactType

CreateImpactTypeJSONRequestBody defines body for CreateImpactType for application/json ContentType.

type CreateIncidentJSONRequestBody

type CreateIncidentJSONRequestBody = Incident

CreateIncidentJSONRequestBody defines body for CreateIncident for application/json ContentType.

type CreateIncidentUpdateJSONRequestBody

type CreateIncidentUpdateJSONRequestBody = IncidentUpdate

CreateIncidentUpdateJSONRequestBody defines body for CreateIncidentUpdate for application/json ContentType.

type CreatePhaseListJSONRequestBody

type CreatePhaseListJSONRequestBody = PhaseList

CreatePhaseListJSONRequestBody defines body for CreatePhaseList for application/json ContentType.

type CreateSeverityJSONRequestBody

type CreateSeverityJSONRequestBody = Severity

CreateSeverityJSONRequestBody defines body for CreateSeverity for application/json ContentType.

type Date

type Date = time.Time

Date Point in time. Nullable for open end timeframes.

type Description

type Description = string

Description A longer text with detailed information.

type DisplayName

type DisplayName = string

DisplayName Short and describing name.

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type Generation

type Generation struct {
	// Generation Positive and incrementing number for ordering and identfication of e.g. sub resources.
	Generation Incremental `json:"generation"`
}

Generation Incremental as generation field for responses.

type GenerationQueryParameter

type GenerationQueryParameter = Incremental

GenerationQueryParameter Positive and incrementing number for ordering and identfication of e.g. sub resources.

type GenerationResponse

type GenerationResponse = Generation

GenerationResponse Incremental as generation field for responses.

type GetIncidentsParams

type GetIncidentsParams struct {
	// Start Start of time frame to query for (RFC3339).
	Start time.Time `form:"start" json:"start"`

	// End End of time frame to query for (RFC3339).
	End time.Time `form:"end" json:"end"`
}

GetIncidentsParams defines parameters for GetIncidents.

type GetPhaseListParams

type GetPhaseListParams struct {
	// Generation Optional generation in query. E.g. ?generation=7
	Generation *GenerationQueryParameter `form:"generation,omitempty" json:"generation,omitempty"`
}

GetPhaseListParams defines parameters for GetPhaseList.

type Id

type Id = string

Id Identification for objects. UUID preferred.

type IdField

type IdField struct {
	// Id Identification for objects. UUID preferred.
	Id Id `json:"id"`
}

IdField Id field for responses.

type IdResponse

type IdResponse = IdField

IdResponse Id field for responses.

type Impact

type Impact struct {
	// Reference Identification for objects. UUID preferred.
	Reference *Id `json:"reference,omitempty"`

	// Severity The severity of an impact affecting a component. Different impact types
	// might have different severities impacting different components.
	Severity *SeverityValue `json:"severity,omitempty"`

	// Type Identification for objects. UUID preferred.
	Type *Id `json:"type,omitempty"`
}

Impact An impact connects a component and an incident with an impact type.

type ImpactComponentList

type ImpactComponentList = []Impact

ImpactComponentList A list of impacts for an incident. Impacts reference components.

type ImpactIncidentList

type ImpactIncidentList = []Impact

ImpactIncidentList A list of impacts for a component. Impacts reference incidents.

type ImpactType

type ImpactType struct {
	// Description A longer text with detailed information.
	Description *Description `json:"description,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`
}

ImpactType defines model for ImpactType.

type ImpactTypeIdPathParameter

type ImpactTypeIdPathParameter = Id

ImpactTypeIdPathParameter Identification for objects. UUID preferred.

type ImpactTypeListResponse

type ImpactTypeListResponse struct {
	Data []ImpactTypeResponseData `json:"data"`
}

ImpactTypeListResponse defines model for ImpactTypeListResponse.

type ImpactTypeRequest

type ImpactTypeRequest = ImpactType

ImpactTypeRequest defines model for ImpactTypeRequest.

type ImpactTypeResponse

type ImpactTypeResponse struct {
	Data ImpactTypeResponseData `json:"data"`
}

ImpactTypeResponse defines model for ImpactTypeResponse.

type ImpactTypeResponseData

type ImpactTypeResponseData struct {
	// Description A longer text with detailed information.
	Description *Description `json:"description,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`

	// Id Identification for objects. UUID preferred.
	Id Id `json:"id"`
}

ImpactTypeResponseData defines model for ImpactTypeResponseData.

type Incident

type Incident struct {
	// Affects A list of impacts for an incident.
	// Impacts reference components.
	Affects *ImpactComponentList `json:"affects,omitempty"`

	// BeganAt Point in time. Nullable for open end timeframes.
	BeganAt *Date `json:"beganAt"`

	// Description A longer text with detailed information.
	Description *Description `json:"description,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`

	// EndedAt Point in time. Nullable for open end timeframes.
	EndedAt *Date `json:"endedAt"`

	// Phase To reference a phase, its generation and order is needed.
	Phase *PhaseReference `json:"phase,omitempty"`

	// Updates List of Incrementals for referencing subresources.
	Updates *IncrementalList `json:"updates,omitempty"`
}

Incident defines model for Incident.

type IncidentIdPathParameter

type IncidentIdPathParameter = Id

IncidentIdPathParameter Identification for objects. UUID preferred.

type IncidentListResponse

type IncidentListResponse struct {
	Data []IncidentResponseData `json:"data"`
}

IncidentListResponse defines model for IncidentListResponse.

type IncidentRequest

type IncidentRequest = Incident

IncidentRequest defines model for IncidentRequest.

type IncidentResponse

type IncidentResponse struct {
	Data IncidentResponseData `json:"data"`
}

IncidentResponse defines model for IncidentResponse.

type IncidentResponseData

type IncidentResponseData struct {
	// Affects A list of impacts for an incident.
	// Impacts reference components.
	Affects *ImpactComponentList `json:"affects,omitempty"`

	// BeganAt Point in time. Nullable for open end timeframes.
	BeganAt *Date `json:"beganAt"`

	// Description A longer text with detailed information.
	Description *Description `json:"description,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`

	// EndedAt Point in time. Nullable for open end timeframes.
	EndedAt *Date `json:"endedAt"`

	// Id Identification for objects. UUID preferred.
	Id Id `json:"id"`

	// Phase To reference a phase, its generation and order is needed.
	Phase *PhaseReference `json:"phase,omitempty"`

	// Updates List of Incrementals for referencing subresources.
	Updates *IncrementalList `json:"updates,omitempty"`
}

IncidentResponseData defines model for IncidentResponseData.

type IncidentUpdate

type IncidentUpdate struct {
	// CreatedAt Point in time. Nullable for open end timeframes.
	CreatedAt *Date `json:"createdAt"`

	// Description A longer text with detailed information.
	Description *Description `json:"description,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`
}

IncidentUpdate An update is a sub resource to an incident. It's identified by the incident ID and its own order. Updates happen in a given order.

type IncidentUpdateListResponse

type IncidentUpdateListResponse struct {
	Data []IncidentUpdateResponseData `json:"data"`
}

IncidentUpdateListResponse defines model for IncidentUpdateListResponse.

type IncidentUpdateOrderPathParameter

type IncidentUpdateOrderPathParameter = Incremental

IncidentUpdateOrderPathParameter Positive and incrementing number for ordering and identfication of e.g. sub resources.

type IncidentUpdateRequest

type IncidentUpdateRequest = IncidentUpdate

IncidentUpdateRequest An update is a sub resource to an incident. It's identified by the incident ID and its own order. Updates happen in a given order.

type IncidentUpdateResponse

type IncidentUpdateResponse struct {
	Data IncidentUpdateResponseData `json:"data"`
}

IncidentUpdateResponse defines model for IncidentUpdateResponse.

type IncidentUpdateResponseData

type IncidentUpdateResponseData struct {
	// CreatedAt Point in time. Nullable for open end timeframes.
	CreatedAt *Date `json:"createdAt"`

	// Description A longer text with detailed information.
	Description *Description `json:"description,omitempty"`

	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`

	// Order Positive and incrementing number for ordering and identfication of e.g. sub resources.
	Order Incremental `json:"order"`
}

IncidentUpdateResponseData defines model for IncidentUpdateResponseData.

type Incremental

type Incremental = int

Incremental Positive and incrementing number for ordering and identfication of e.g. sub resources.

type IncrementalList

type IncrementalList = []Incremental

IncrementalList List of Incrementals for referencing subresources.

type Labels

type Labels map[string]string

Labels Labels are free text key value pairs for components.

type Order

type Order struct {
	// Order Positive and incrementing number for ordering and identfication of e.g. sub resources.
	Order Incremental `json:"order"`
}

Order Incremental as order field for responses.

type OrderResponse

type OrderResponse = Order

OrderResponse Incremental as order field for responses.

type Phase

type Phase = string

Phase A single phase is just its name. It can be referenced by its generation and order. See: #/components/schemas/PhaseReference

type PhaseList

type PhaseList struct {
	Phases []Phase `json:"phases"`
}

PhaseList Phase resources are always handled as a list.

type PhaseListRequest

type PhaseListRequest = PhaseList

PhaseListRequest Phase resources are always handled as a list.

type PhaseListResponse

type PhaseListResponse struct {
	Data PhaseListResponseData `json:"data"`
}

PhaseListResponse defines model for PhaseListResponse.

type PhaseListResponseData

type PhaseListResponseData struct {
	// Generation Positive and incrementing number for ordering and identfication of e.g. sub resources.
	Generation Incremental `json:"generation"`
	Phases     []Phase     `json:"phases"`
}

PhaseListResponseData defines model for PhaseListResponseData.

type PhaseReference

type PhaseReference struct {
	// Generation Positive and incrementing number for ordering and identfication of e.g. sub resources.
	Generation Incremental `json:"generation"`

	// Order Positive and incrementing number for ordering and identfication of e.g. sub resources.
	Order Incremental `json:"order"`
}

PhaseReference defines model for PhaseReference.

type ServerInterface

type ServerInterface interface {
	// Get a list of components.
	// (GET /components)
	GetComponents(ctx echo.Context) error
	// Create a new component.
	// (POST /components)
	CreateComponent(ctx echo.Context) error
	// Delete a component.
	// (DELETE /components/{componentId})
	DeleteComponent(ctx echo.Context, componentId ComponentIdPathParameter) error
	// Get a specific component by id.
	// (GET /components/{componentId})
	GetComponent(ctx echo.Context, componentId ComponentIdPathParameter) error
	// Update a component.
	// (PATCH /components/{componentId})
	UpdateComponent(ctx echo.Context, componentId ComponentIdPathParameter) error
	// Get a list of impact types.
	// (GET /impacttypes)
	GetImpactTypes(ctx echo.Context) error
	// Create a new impact type.
	// (POST /impacttypes)
	CreateImpactType(ctx echo.Context) error
	// Delete an impact type.
	// (DELETE /impacttypes/{impactTypeId})
	DeleteImpactType(ctx echo.Context, impactTypeId ImpactTypeIdPathParameter) error
	// Get a specific impact type by id.
	// (GET /impacttypes/{impactTypeId})
	GetImpactType(ctx echo.Context, impactTypeId ImpactTypeIdPathParameter) error
	// Update a specific impact type.
	// (PATCH /impacttypes/{impactTypeId})
	UpdateImpactType(ctx echo.Context, impactTypeId ImpactTypeIdPathParameter) error
	// Get a list of incidents between two points in time.
	// (GET /incidents)
	GetIncidents(ctx echo.Context, params GetIncidentsParams) error
	// Create a new incident.
	// (POST /incidents)
	CreateIncident(ctx echo.Context) error
	// Delete an incident.
	// (DELETE /incidents/{incidentId})
	DeleteIncident(ctx echo.Context, incidentId IncidentIdPathParameter) error
	// Get a specific incident by id.
	// (GET /incidents/{incidentId})
	GetIncident(ctx echo.Context, incidentId IncidentIdPathParameter) error
	// Update an incident.
	// (PATCH /incidents/{incidentId})
	UpdateIncident(ctx echo.Context, incidentId IncidentIdPathParameter) error
	// Get a list of updates from a specific incident.
	// (GET /incidents/{incidentId}/updates)
	GetIncidentUpdates(ctx echo.Context, incidentId IncidentIdPathParameter) error
	// Create a new update to a specific incident.
	// (POST /incidents/{incidentId}/updates)
	CreateIncidentUpdate(ctx echo.Context, incidentId IncidentIdPathParameter) error
	// Delete a specific update from a specific incident
	// (DELETE /incidents/{incidentId}/updates/{updateOrder})
	DeleteIncidentUpdate(ctx echo.Context, incidentId IncidentIdPathParameter, updateOrder IncidentUpdateOrderPathParameter) error
	// Get a specific update from a specific incident.
	// (GET /incidents/{incidentId}/updates/{updateOrder})
	GetIncidentUpdate(ctx echo.Context, incidentId IncidentIdPathParameter, updateOrder IncidentUpdateOrderPathParameter) error
	// Update a specific update from a specific incident.
	// (PATCH /incidents/{incidentId}/updates/{updateOrder})
	UpdateIncidentUpdate(ctx echo.Context, incidentId IncidentIdPathParameter, updateOrder IncidentUpdateOrderPathParameter) error
	// Get the current generation list of phases.
	// (GET /phases)
	GetPhaseList(ctx echo.Context, params GetPhaseListParams) error
	// Create a new generation of the phase list.
	// (POST /phases)
	CreatePhaseList(ctx echo.Context) error
	// Get the current list of severieties.
	// (GET /severities)
	GetSeverities(ctx echo.Context) error
	// Create a new severity.
	// (POST /severities)
	CreateSeverity(ctx echo.Context) error
	// Delete a specific severity.
	// (DELETE /severities/{severityName})
	DeleteSeverity(ctx echo.Context, severityName SeverityNamePathParameter) error
	// Get a specific severity by its name.
	// (GET /severities/{severityName})
	GetSeverity(ctx echo.Context, severityName SeverityNamePathParameter) error
	// Update a specific severity.
	// (PATCH /severities/{severityName})
	UpdateSeverity(ctx echo.Context, severityName SeverityNamePathParameter) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) CreateComponent

func (w *ServerInterfaceWrapper) CreateComponent(ctx echo.Context) error

CreateComponent converts echo context to params.

func (*ServerInterfaceWrapper) CreateImpactType

func (w *ServerInterfaceWrapper) CreateImpactType(ctx echo.Context) error

CreateImpactType converts echo context to params.

func (*ServerInterfaceWrapper) CreateIncident

func (w *ServerInterfaceWrapper) CreateIncident(ctx echo.Context) error

CreateIncident converts echo context to params.

func (*ServerInterfaceWrapper) CreateIncidentUpdate

func (w *ServerInterfaceWrapper) CreateIncidentUpdate(ctx echo.Context) error

CreateIncidentUpdate converts echo context to params.

func (*ServerInterfaceWrapper) CreatePhaseList

func (w *ServerInterfaceWrapper) CreatePhaseList(ctx echo.Context) error

CreatePhaseList converts echo context to params.

func (*ServerInterfaceWrapper) CreateSeverity

func (w *ServerInterfaceWrapper) CreateSeverity(ctx echo.Context) error

CreateSeverity converts echo context to params.

func (*ServerInterfaceWrapper) DeleteComponent

func (w *ServerInterfaceWrapper) DeleteComponent(ctx echo.Context) error

DeleteComponent converts echo context to params.

func (*ServerInterfaceWrapper) DeleteImpactType

func (w *ServerInterfaceWrapper) DeleteImpactType(ctx echo.Context) error

DeleteImpactType converts echo context to params.

func (*ServerInterfaceWrapper) DeleteIncident

func (w *ServerInterfaceWrapper) DeleteIncident(ctx echo.Context) error

DeleteIncident converts echo context to params.

func (*ServerInterfaceWrapper) DeleteIncidentUpdate

func (w *ServerInterfaceWrapper) DeleteIncidentUpdate(ctx echo.Context) error

DeleteIncidentUpdate converts echo context to params.

func (*ServerInterfaceWrapper) DeleteSeverity

func (w *ServerInterfaceWrapper) DeleteSeverity(ctx echo.Context) error

DeleteSeverity converts echo context to params.

func (*ServerInterfaceWrapper) GetComponent

func (w *ServerInterfaceWrapper) GetComponent(ctx echo.Context) error

GetComponent converts echo context to params.

func (*ServerInterfaceWrapper) GetComponents

func (w *ServerInterfaceWrapper) GetComponents(ctx echo.Context) error

GetComponents converts echo context to params.

func (*ServerInterfaceWrapper) GetImpactType

func (w *ServerInterfaceWrapper) GetImpactType(ctx echo.Context) error

GetImpactType converts echo context to params.

func (*ServerInterfaceWrapper) GetImpactTypes

func (w *ServerInterfaceWrapper) GetImpactTypes(ctx echo.Context) error

GetImpactTypes converts echo context to params.

func (*ServerInterfaceWrapper) GetIncident

func (w *ServerInterfaceWrapper) GetIncident(ctx echo.Context) error

GetIncident converts echo context to params.

func (*ServerInterfaceWrapper) GetIncidentUpdate

func (w *ServerInterfaceWrapper) GetIncidentUpdate(ctx echo.Context) error

GetIncidentUpdate converts echo context to params.

func (*ServerInterfaceWrapper) GetIncidentUpdates

func (w *ServerInterfaceWrapper) GetIncidentUpdates(ctx echo.Context) error

GetIncidentUpdates converts echo context to params.

func (*ServerInterfaceWrapper) GetIncidents

func (w *ServerInterfaceWrapper) GetIncidents(ctx echo.Context) error

GetIncidents converts echo context to params.

func (*ServerInterfaceWrapper) GetPhaseList

func (w *ServerInterfaceWrapper) GetPhaseList(ctx echo.Context) error

GetPhaseList converts echo context to params.

func (*ServerInterfaceWrapper) GetSeverities

func (w *ServerInterfaceWrapper) GetSeverities(ctx echo.Context) error

GetSeverities converts echo context to params.

func (*ServerInterfaceWrapper) GetSeverity

func (w *ServerInterfaceWrapper) GetSeverity(ctx echo.Context) error

GetSeverity converts echo context to params.

func (*ServerInterfaceWrapper) UpdateComponent

func (w *ServerInterfaceWrapper) UpdateComponent(ctx echo.Context) error

UpdateComponent converts echo context to params.

func (*ServerInterfaceWrapper) UpdateImpactType

func (w *ServerInterfaceWrapper) UpdateImpactType(ctx echo.Context) error

UpdateImpactType converts echo context to params.

func (*ServerInterfaceWrapper) UpdateIncident

func (w *ServerInterfaceWrapper) UpdateIncident(ctx echo.Context) error

UpdateIncident converts echo context to params.

func (*ServerInterfaceWrapper) UpdateIncidentUpdate

func (w *ServerInterfaceWrapper) UpdateIncidentUpdate(ctx echo.Context) error

UpdateIncidentUpdate converts echo context to params.

func (*ServerInterfaceWrapper) UpdateSeverity

func (w *ServerInterfaceWrapper) UpdateSeverity(ctx echo.Context) error

UpdateSeverity converts echo context to params.

type Severity

type Severity struct {
	// DisplayName Short and describing name.
	DisplayName *DisplayName `json:"displayName,omitempty"`

	// Value The severity of an impact affecting a component. Different impact types
	// might have different severities impacting different components.
	Value *SeverityValue `json:"value,omitempty"`
}

Severity A severity has an identifying name and a numeric value.

type SeverityListResponse

type SeverityListResponse struct {
	Data []Severity `json:"data"`
}

SeverityListResponse defines model for SeverityListResponse.

type SeverityNamePathParameter

type SeverityNamePathParameter = DisplayName

SeverityNamePathParameter Short and describing name.

type SeverityRequest

type SeverityRequest = Severity

SeverityRequest A severity has an identifying name and a numeric value.

type SeverityResponse

type SeverityResponse struct {
	// Data A severity has an identifying name and a numeric value.
	Data Severity `json:"data"`
}

SeverityResponse defines model for SeverityResponse.

type SeverityValue

type SeverityValue = int

SeverityValue The severity of an impact affecting a component. Different impact types might have different severities impacting different components.

type UpdateComponentJSONRequestBody

type UpdateComponentJSONRequestBody = Component

UpdateComponentJSONRequestBody defines body for UpdateComponent for application/json ContentType.

type UpdateImpactTypeJSONRequestBody

type UpdateImpactTypeJSONRequestBody = ImpactType

UpdateImpactTypeJSONRequestBody defines body for UpdateImpactType for application/json ContentType.

type UpdateIncidentJSONRequestBody

type UpdateIncidentJSONRequestBody = Incident

UpdateIncidentJSONRequestBody defines body for UpdateIncident for application/json ContentType.

type UpdateIncidentUpdateJSONRequestBody

type UpdateIncidentUpdateJSONRequestBody = IncidentUpdate

UpdateIncidentUpdateJSONRequestBody defines body for UpdateIncidentUpdate for application/json ContentType.

type UpdateSeverityJSONRequestBody

type UpdateSeverityJSONRequestBody = Severity

UpdateSeverityJSONRequestBody defines body for UpdateSeverity for application/json ContentType.

Jump to

Keyboard shortcuts

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