models

package
v0.0.0-...-6cfc1b2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ApprovedReviewOasVersionOASv2Dot0 captures enum value "OASv2.0"
	ApprovedReviewOasVersionOASv2Dot0 string = "OASv2.0"

	// ApprovedReviewOasVersionOASv3Dot0 captures enum value "OASv3.0"
	ApprovedReviewOasVersionOASv3Dot0 string = "OASv3.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClarityFeature

type APIClarityFeature struct {

	// Short human readable description of the feature
	FeatureDescription string `json:"featureDescription,omitempty"`

	// feature name
	// Required: true
	FeatureName *APIClarityFeatureEnum `json:"featureName"`

	// hosts to trace
	HostsToTrace *HostsToTraceForComponent `json:"hostsToTrace,omitempty"`
}

APIClarityFeature Description of APIClarity feature and the list of API hosts (Group by trace sources, in the form 'host:port') the feature requires to get trace for

swagger:model APIClarityFeature

func (*APIClarityFeature) ContextValidate

func (m *APIClarityFeature) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this API clarity feature based on the context it is used

func (*APIClarityFeature) MarshalBinary

func (m *APIClarityFeature) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIClarityFeature) UnmarshalBinary

func (m *APIClarityFeature) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIClarityFeature) Validate

func (m *APIClarityFeature) Validate(formats strfmt.Registry) error

Validate validates this API clarity feature

type APIClarityFeatureEnum

type APIClarityFeatureEnum string

APIClarityFeatureEnum APIClarity Feature Name

swagger:model APIClarityFeatureEnum

const (

	// APIClarityFeatureEnumSpecreconstructor captures enum value "specreconstructor"
	APIClarityFeatureEnumSpecreconstructor APIClarityFeatureEnum = "specreconstructor"

	// APIClarityFeatureEnumSpecdiffs captures enum value "specdiffs"
	APIClarityFeatureEnumSpecdiffs APIClarityFeatureEnum = "specdiffs"

	// APIClarityFeatureEnumTraceanalyzer captures enum value "traceanalyzer"
	APIClarityFeatureEnumTraceanalyzer APIClarityFeatureEnum = "traceanalyzer"

	// APIClarityFeatureEnumBfla captures enum value "bfla"
	APIClarityFeatureEnumBfla APIClarityFeatureEnum = "bfla"

	// APIClarityFeatureEnumSpecDiffer captures enum value "spec_differ"
	APIClarityFeatureEnumSpecDiffer APIClarityFeatureEnum = "spec_differ"

	// APIClarityFeatureEnumFuzzer captures enum value "fuzzer"
	APIClarityFeatureEnumFuzzer APIClarityFeatureEnum = "fuzzer"
)

func NewAPIClarityFeatureEnum

func NewAPIClarityFeatureEnum(value APIClarityFeatureEnum) *APIClarityFeatureEnum

func (APIClarityFeatureEnum) ContextValidate

func (m APIClarityFeatureEnum) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this API clarity feature enum based on context it is used

func (APIClarityFeatureEnum) Validate

func (m APIClarityFeatureEnum) Validate(formats strfmt.Registry) error

Validate validates this API clarity feature enum

type APIClarityFeatureList

type APIClarityFeatureList struct {

	// features
	Features []*APIClarityFeature `json:"features"`
}

APIClarityFeatureList List of APIClarity features and for each feature the list of API hosts (Group by trace sources, in the form 'host:port') the feature requires to get trace for

swagger:model APIClarityFeatureList

func (*APIClarityFeatureList) ContextValidate

func (m *APIClarityFeatureList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this API clarity feature list based on the context it is used

func (*APIClarityFeatureList) MarshalBinary

func (m *APIClarityFeatureList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIClarityFeatureList) UnmarshalBinary

func (m *APIClarityFeatureList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIClarityFeatureList) Validate

func (m *APIClarityFeatureList) Validate(formats strfmt.Registry) error

Validate validates this API clarity feature list

type APICount

type APICount struct {

	// api host name
	APIHostName string `json:"apiHostName,omitempty"`

	// hold the relevant api info id
	APIInfoID uint32 `json:"apiInfoId,omitempty"`

	// api port
	APIPort int64 `json:"apiPort,omitempty"`

	// api type
	APIType APIType `json:"apiType,omitempty"`

	// num calls
	NumCalls int64 `json:"numCalls,omitempty"`
}

APICount Api count

swagger:model ApiCount

func (*APICount) ContextValidate

func (m *APICount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Api count based on the context it is used

func (*APICount) MarshalBinary

func (m *APICount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APICount) UnmarshalBinary

func (m *APICount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APICount) Validate

func (m *APICount) Validate(formats strfmt.Registry) error

Validate validates this Api count

type APIEvent

type APIEvent struct {

	// alerts
	Alerts []*ModuleAlert `json:"alerts"`

	// hold the relevant api spec info id
	APIInfoID uint32 `json:"apiInfoId,omitempty"`

	// api type
	APIType APIType `json:"apiType,omitempty"`

	// destination IP
	DestinationIP string `json:"destinationIP,omitempty"`

	// destination port
	DestinationPort int64 `json:"destinationPort,omitempty"`

	// has provided spec diff
	HasProvidedSpecDiff *bool `json:"hasProvidedSpecDiff,omitempty"`

	// has reconstructed spec diff
	HasReconstructedSpecDiff *bool `json:"hasReconstructedSpecDiff,omitempty"`

	// host spec name
	HostSpecName string `json:"hostSpecName,omitempty"`

	// id
	ID uint32 `json:"id,omitempty"`

	// method
	Method HTTPMethod `json:"method,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// query
	Query string `json:"query,omitempty"`

	// request time
	// Format: date-time
	RequestTime strfmt.DateTime `json:"requestTime,omitempty"`

	// source IP
	SourceIP string `json:"sourceIP,omitempty"`

	// spec diff type
	SpecDiffType *DiffType `json:"specDiffType,omitempty"`

	// status code
	StatusCode int64 `json:"statusCode,omitempty"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`
}

APIEvent Api event

swagger:model ApiEvent

func (*APIEvent) ContextValidate

func (m *APIEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Api event based on the context it is used

func (*APIEvent) MarshalBinary

func (m *APIEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIEvent) UnmarshalBinary

func (m *APIEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIEvent) Validate

func (m *APIEvent) Validate(formats strfmt.Registry) error

Validate validates this Api event

type APIEventPathAndMethods

type APIEventPathAndMethods struct {

	// methods
	Methods []HTTPMethod `json:"methods"`

	// path
	Path string `json:"path,omitempty"`
}

APIEventPathAndMethods Api event path and methods

swagger:model ApiEventPathAndMethods

func (*APIEventPathAndMethods) ContextValidate

func (m *APIEventPathAndMethods) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Api event path and methods based on the context it is used

func (*APIEventPathAndMethods) MarshalBinary

func (m *APIEventPathAndMethods) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIEventPathAndMethods) UnmarshalBinary

func (m *APIEventPathAndMethods) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIEventPathAndMethods) Validate

func (m *APIEventPathAndMethods) Validate(formats strfmt.Registry) error

Validate validates this Api event path and methods

type APIEventSortKey

type APIEventSortKey string

APIEventSortKey Api event sort key

swagger:model ApiEventSortKey

const (

	// APIEventSortKeyTime captures enum value "time"
	APIEventSortKeyTime APIEventSortKey = "time"

	// APIEventSortKeyMethod captures enum value "method"
	APIEventSortKeyMethod APIEventSortKey = "method"

	// APIEventSortKeyPath captures enum value "path"
	APIEventSortKeyPath APIEventSortKey = "path"

	// APIEventSortKeyStatusCode captures enum value "statusCode"
	APIEventSortKeyStatusCode APIEventSortKey = "statusCode"

	// APIEventSortKeySourceIP captures enum value "sourceIP"
	APIEventSortKeySourceIP APIEventSortKey = "sourceIP"

	// APIEventSortKeyDestinationIP captures enum value "destinationIP"
	APIEventSortKeyDestinationIP APIEventSortKey = "destinationIP"

	// APIEventSortKeyDestinationPort captures enum value "destinationPort"
	APIEventSortKeyDestinationPort APIEventSortKey = "destinationPort"

	// APIEventSortKeySpecDiffType captures enum value "specDiffType"
	APIEventSortKeySpecDiffType APIEventSortKey = "specDiffType"

	// APIEventSortKeyHostSpecName captures enum value "hostSpecName"
	APIEventSortKeyHostSpecName APIEventSortKey = "hostSpecName"

	// APIEventSortKeyAPIType captures enum value "apiType"
	APIEventSortKeyAPIType APIEventSortKey = "apiType"
)

func NewAPIEventSortKey

func NewAPIEventSortKey(value APIEventSortKey) *APIEventSortKey

func (APIEventSortKey) ContextValidate

func (m APIEventSortKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api event sort key based on context it is used

func (APIEventSortKey) Validate

func (m APIEventSortKey) Validate(formats strfmt.Registry) error

Validate validates this Api event sort key

type APIEventSpecDiff

type APIEventSpecDiff struct {

	// diff type
	DiffType *DiffType `json:"diffType,omitempty"`

	// New spec json string
	// Required: true
	NewSpec *string `json:"newSpec"`

	// Old spec json string
	// Required: true
	OldSpec *string `json:"oldSpec"`
}

APIEventSpecDiff Api event spec diff

swagger:model ApiEventSpecDiff

func (*APIEventSpecDiff) ContextValidate

func (m *APIEventSpecDiff) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Api event spec diff based on the context it is used

func (*APIEventSpecDiff) MarshalBinary

func (m *APIEventSpecDiff) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIEventSpecDiff) UnmarshalBinary

func (m *APIEventSpecDiff) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIEventSpecDiff) Validate

func (m *APIEventSpecDiff) Validate(formats strfmt.Registry) error

Validate validates this Api event spec diff

type APIInfo

type APIInfo struct {

	// destination namespace
	DestinationNamespace string `json:"destinationNamespace,omitempty"`

	// has provided spec
	HasProvidedSpec *bool `json:"hasProvidedSpec,omitempty"`

	// has reconstructed spec
	HasReconstructedSpec *bool `json:"hasReconstructedSpec,omitempty"`

	// id
	ID uint32 `json:"id,omitempty"`

	// API name
	Name string `json:"name,omitempty"`

	// port
	Port int64 `json:"port,omitempty"`

	// Trace Source ID which created this API. Null UUID 0 means it has been created by APIClarity (from the UI for example)
	// Format: uuid
	TraceSourceID strfmt.UUID `json:"traceSourceId,omitempty"`
}

APIInfo Api info

swagger:model ApiInfo

func (*APIInfo) ContextValidate

func (m *APIInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api info based on context it is used

func (*APIInfo) MarshalBinary

func (m *APIInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIInfo) UnmarshalBinary

func (m *APIInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIInfo) Validate

func (m *APIInfo) Validate(formats strfmt.Registry) error

Validate validates this Api info

type APIInfoWithType

type APIInfoWithType struct {
	APIInfo

	// api type
	APIType APIType `json:"apiType,omitempty"`
}

APIInfoWithType Api info with type

swagger:model ApiInfoWithType

func (*APIInfoWithType) ContextValidate

func (m *APIInfoWithType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Api info with type based on the context it is used

func (*APIInfoWithType) MarshalBinary

func (m *APIInfoWithType) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (APIInfoWithType) MarshalJSON

func (m APIInfoWithType) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*APIInfoWithType) UnmarshalBinary

func (m *APIInfoWithType) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIInfoWithType) UnmarshalJSON

func (m *APIInfoWithType) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*APIInfoWithType) Validate

func (m *APIInfoWithType) Validate(formats strfmt.Registry) error

Validate validates this Api info with type

type APIInventorySortKey

type APIInventorySortKey string

APIInventorySortKey Api inventory sort key

swagger:model ApiInventorySortKey

const (

	// APIInventorySortKeyName captures enum value "name"
	APIInventorySortKeyName APIInventorySortKey = "name"

	// APIInventorySortKeyPort captures enum value "port"
	APIInventorySortKeyPort APIInventorySortKey = "port"

	// APIInventorySortKeyHasReconstructedSpec captures enum value "hasReconstructedSpec"
	APIInventorySortKeyHasReconstructedSpec APIInventorySortKey = "hasReconstructedSpec"

	// APIInventorySortKeyHasProvidedSpec captures enum value "hasProvidedSpec"
	APIInventorySortKeyHasProvidedSpec APIInventorySortKey = "hasProvidedSpec"
)

func NewAPIInventorySortKey

func NewAPIInventorySortKey(value APIInventorySortKey) *APIInventorySortKey

func (APIInventorySortKey) ContextValidate

func (m APIInventorySortKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api inventory sort key based on context it is used

func (APIInventorySortKey) Validate

func (m APIInventorySortKey) Validate(formats strfmt.Registry) error

Validate validates this Api inventory sort key

type APIResponse

type APIResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

APIResponse An object that is return in all cases of failures.

swagger:model ApiResponse

func (*APIResponse) ContextValidate

func (m *APIResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api response based on context it is used

func (*APIResponse) MarshalBinary

func (m *APIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIResponse) UnmarshalBinary

func (m *APIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIResponse) Validate

func (m *APIResponse) Validate(formats strfmt.Registry) error

Validate validates this Api response

type APIType

type APIType string

APIType Api type

swagger:model ApiType

const (

	// APITypeINTERNAL captures enum value "INTERNAL"
	APITypeINTERNAL APIType = "INTERNAL"

	// APITypeEXTERNAL captures enum value "EXTERNAL"
	APITypeEXTERNAL APIType = "EXTERNAL"
)

func NewAPIType

func NewAPIType(value APIType) *APIType

func (APIType) ContextValidate

func (m APIType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api type based on context it is used

func (APIType) Validate

func (m APIType) Validate(formats strfmt.Registry) error

Validate validates this Api type

type APIUsage

type APIUsage struct {

	// num of calls
	NumOfCalls int64 `json:"numOfCalls"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`
}

APIUsage Api usage

swagger:model ApiUsage

func (*APIUsage) ContextValidate

func (m *APIUsage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api usage based on context it is used

func (*APIUsage) MarshalBinary

func (m *APIUsage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIUsage) UnmarshalBinary

func (m *APIUsage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIUsage) Validate

func (m *APIUsage) Validate(formats strfmt.Registry) error

Validate validates this Api usage

type APIUsages

type APIUsages struct {

	// apis with diff
	ApisWithDiff []*APIUsage `json:"apisWithDiff"`

	// existing apis
	ExistingApis []*APIUsage `json:"existingApis"`

	// new apis
	NewApis []*APIUsage `json:"newApis"`
}

APIUsages Api usages

swagger:model ApiUsages

func (*APIUsages) ContextValidate

func (m *APIUsages) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Api usages based on the context it is used

func (*APIUsages) MarshalBinary

func (m *APIUsages) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIUsages) UnmarshalBinary

func (m *APIUsages) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIUsages) Validate

func (m *APIUsages) Validate(formats strfmt.Registry) error

Validate validates this Api usages

type AlertSeverityEnum

type AlertSeverityEnum string

AlertSeverityEnum Level of alert

swagger:model AlertSeverityEnum

const (

	// AlertSeverityEnumALERTINFO captures enum value "ALERT_INFO"
	AlertSeverityEnumALERTINFO AlertSeverityEnum = "ALERT_INFO"

	// AlertSeverityEnumALERTWARN captures enum value "ALERT_WARN"
	AlertSeverityEnumALERTWARN AlertSeverityEnum = "ALERT_WARN"

	// AlertSeverityEnumALERTCRITICAL captures enum value "ALERT_CRITICAL"
	AlertSeverityEnumALERTCRITICAL AlertSeverityEnum = "ALERT_CRITICAL"
)

func NewAlertSeverityEnum

func NewAlertSeverityEnum(value AlertSeverityEnum) *AlertSeverityEnum

func (AlertSeverityEnum) ContextValidate

func (m AlertSeverityEnum) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert severity enum based on context it is used

func (AlertSeverityEnum) Validate

func (m AlertSeverityEnum) Validate(formats strfmt.Registry) error

Validate validates this alert severity enum

type ApprovedReview

type ApprovedReview struct {

	// OpenAPI specification version to use when saving the approved spec
	// Enum: [OASv2.0 OASv3.0]
	OasVersion string `json:"oasVersion,omitempty"`

	// review path items
	ReviewPathItems []*ReviewPathItem `json:"reviewPathItems"`
}

ApprovedReview approved review

swagger:model ApprovedReview

func (*ApprovedReview) ContextValidate

func (m *ApprovedReview) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this approved review based on the context it is used

func (*ApprovedReview) MarshalBinary

func (m *ApprovedReview) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ApprovedReview) UnmarshalBinary

func (m *ApprovedReview) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ApprovedReview) Validate

func (m *ApprovedReview) Validate(formats strfmt.Registry) error

Validate validates this approved review

type DiffType

type DiffType string

DiffType diff type

swagger:model DiffType

const (

	// DiffTypeZOMBIEDIFF captures enum value "ZOMBIE_DIFF"
	DiffTypeZOMBIEDIFF DiffType = "ZOMBIE_DIFF"

	// DiffTypeSHADOWDIFF captures enum value "SHADOW_DIFF"
	DiffTypeSHADOWDIFF DiffType = "SHADOW_DIFF"

	// DiffTypeGENERALDIFF captures enum value "GENERAL_DIFF"
	DiffTypeGENERALDIFF DiffType = "GENERAL_DIFF"

	// DiffTypeNODIFF captures enum value "NO_DIFF"
	DiffTypeNODIFF DiffType = "NO_DIFF"
)

func NewDiffType

func NewDiffType(value DiffType) *DiffType

func (DiffType) ContextValidate

func (m DiffType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this diff type based on context it is used

func (DiffType) Validate

func (m DiffType) Validate(formats strfmt.Registry) error

Validate validates this diff type

type HTTPMethod

type HTTPMethod string

HTTPMethod Http method

swagger:model HttpMethod

const (

	// HTTPMethodGET captures enum value "GET"
	HTTPMethodGET HTTPMethod = "GET"

	// HTTPMethodHEAD captures enum value "HEAD"
	HTTPMethodHEAD HTTPMethod = "HEAD"

	// HTTPMethodPOST captures enum value "POST"
	HTTPMethodPOST HTTPMethod = "POST"

	// HTTPMethodPUT captures enum value "PUT"
	HTTPMethodPUT HTTPMethod = "PUT"

	// HTTPMethodDELETE captures enum value "DELETE"
	HTTPMethodDELETE HTTPMethod = "DELETE"

	// HTTPMethodCONNECT captures enum value "CONNECT"
	HTTPMethodCONNECT HTTPMethod = "CONNECT"

	// HTTPMethodOPTIONS captures enum value "OPTIONS"
	HTTPMethodOPTIONS HTTPMethod = "OPTIONS"

	// HTTPMethodTRACE captures enum value "TRACE"
	HTTPMethodTRACE HTTPMethod = "TRACE"

	// HTTPMethodPATCH captures enum value "PATCH"
	HTTPMethodPATCH HTTPMethod = "PATCH"
)

func NewHTTPMethod

func NewHTTPMethod(value HTTPMethod) *HTTPMethod

func (HTTPMethod) ContextValidate

func (m HTTPMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Http method based on context it is used

func (HTTPMethod) Validate

func (m HTTPMethod) Validate(formats strfmt.Registry) error

Validate validates this Http method

type HitCount

type HitCount struct {

	// count
	Count int64 `json:"count"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`
}

HitCount hit count

swagger:model HitCount

func (*HitCount) ContextValidate

func (m *HitCount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hit count based on context it is used

func (*HitCount) MarshalBinary

func (m *HitCount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HitCount) UnmarshalBinary

func (m *HitCount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HitCount) Validate

func (m *HitCount) Validate(formats strfmt.Registry) error

Validate validates this hit count

type HostsToTraceForComponent

type HostsToTraceForComponent struct {

	// Component name
	Component string `json:"component,omitempty"`

	// trace sources hosts
	TraceSourcesHosts []*HostsToTraceForTraceSource `json:"traceSourcesHosts"`
}

HostsToTraceForComponent List of trace sources for a component, with theirs list of API hosts to get trace for

swagger:model HostsToTraceForComponent

func (*HostsToTraceForComponent) ContextValidate

func (m *HostsToTraceForComponent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hosts to trace for component based on the context it is used

func (*HostsToTraceForComponent) MarshalBinary

func (m *HostsToTraceForComponent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HostsToTraceForComponent) UnmarshalBinary

func (m *HostsToTraceForComponent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostsToTraceForComponent) Validate

func (m *HostsToTraceForComponent) Validate(formats strfmt.Registry) error

Validate validates this hosts to trace for component

type HostsToTraceForTraceSource

type HostsToTraceForTraceSource struct {

	// List of hosts (in the form 'host:port')
	HostsToTrace []string `json:"hostsToTrace"`

	// ID of the trace source
	TraceSourceID uint32 `json:"traceSourceID,omitempty"`
}

HostsToTraceForTraceSource list of API hosts (in the form 'host:port') managed by a traceSource

swagger:model HostsToTraceForTraceSource

func (*HostsToTraceForTraceSource) ContextValidate

func (m *HostsToTraceForTraceSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hosts to trace for trace source based on context it is used

func (*HostsToTraceForTraceSource) MarshalBinary

func (m *HostsToTraceForTraceSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HostsToTraceForTraceSource) UnmarshalBinary

func (m *HostsToTraceForTraceSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostsToTraceForTraceSource) Validate

func (m *HostsToTraceForTraceSource) Validate(formats strfmt.Registry) error

Validate validates this hosts to trace for trace source

type MethodAndPath

type MethodAndPath struct {

	// method
	Method HTTPMethod `json:"method,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// path Id
	// Format: uuid
	PathID strfmt.UUID `json:"pathId,omitempty"`
}

MethodAndPath method and path

swagger:model MethodAndPath

func (*MethodAndPath) ContextValidate

func (m *MethodAndPath) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this method and path based on the context it is used

func (*MethodAndPath) MarshalBinary

func (m *MethodAndPath) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MethodAndPath) UnmarshalBinary

func (m *MethodAndPath) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MethodAndPath) Validate

func (m *MethodAndPath) Validate(formats strfmt.Registry) error

Validate validates this method and path

type ModuleAlert

type ModuleAlert struct {

	// alert
	Alert AlertSeverityEnum `json:"alert,omitempty"`

	// Name of the module which created this alert
	ModuleName string `json:"moduleName,omitempty"`

	// Optional description of reason of the alert
	Reason string `json:"reason,omitempty"`
}

ModuleAlert module alert

swagger:model ModuleAlert

func (*ModuleAlert) ContextValidate

func (m *ModuleAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this module alert based on the context it is used

func (*ModuleAlert) MarshalBinary

func (m *ModuleAlert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModuleAlert) UnmarshalBinary

func (m *ModuleAlert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModuleAlert) Validate

func (m *ModuleAlert) Validate(formats strfmt.Registry) error

Validate validates this module alert

type OASVersion

type OASVersion string

OASVersion OpenAPI specification version

swagger:model OASVersion

const (

	// OASVersionOASv2Dot0 captures enum value "OASv2.0"
	OASVersionOASv2Dot0 OASVersion = "OASv2.0"

	// OASVersionOASv3Dot0 captures enum value "OASv3.0"
	OASVersionOASv3Dot0 OASVersion = "OASv3.0"
)

func NewOASVersion

func NewOASVersion(value OASVersion) *OASVersion

func (OASVersion) ContextValidate

func (m OASVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this o a s version based on context it is used

func (OASVersion) Validate

func (m OASVersion) Validate(formats strfmt.Registry) error

Validate validates this o a s version

type OpenAPISpecs

type OpenAPISpecs struct {

	// provided spec
	ProvidedSpec *SpecInfo `json:"providedSpec,omitempty"`

	// reconstructed spec
	ReconstructedSpec *SpecInfo `json:"reconstructedSpec,omitempty"`
}

OpenAPISpecs An object representing the provided and reconstructed API specs

swagger:model OpenApiSpecs

func (*OpenAPISpecs) ContextValidate

func (m *OpenAPISpecs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this open Api specs based on the context it is used

func (*OpenAPISpecs) MarshalBinary

func (m *OpenAPISpecs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenAPISpecs) UnmarshalBinary

func (m *OpenAPISpecs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenAPISpecs) Validate

func (m *OpenAPISpecs) Validate(formats strfmt.Registry) error

Validate validates this open Api specs

type RawSpec

type RawSpec struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// spec in json or yaml format
	RawSpec string `json:"rawSpec,omitempty"`
}

RawSpec spec in json or yaml format

swagger:model rawSpec

func (*RawSpec) ContextValidate

func (m *RawSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this raw spec based on context it is used

func (*RawSpec) MarshalBinary

func (m *RawSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RawSpec) UnmarshalBinary

func (m *RawSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RawSpec) Validate

func (m *RawSpec) Validate(formats strfmt.Registry) error

Validate validates this raw spec

type ReviewPathItem

type ReviewPathItem struct {

	// Group of api event paths (original) that suggestedPath is representing
	APIEventsPaths []*APIEventPathAndMethods `json:"apiEventsPaths"`

	// Represents the parameterized path suggested by the engine
	SuggestedPath string `json:"suggestedPath,omitempty"`
}

ReviewPathItem review path item

swagger:model ReviewPathItem

func (*ReviewPathItem) ContextValidate

func (m *ReviewPathItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this review path item based on the context it is used

func (*ReviewPathItem) MarshalBinary

func (m *ReviewPathItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ReviewPathItem) UnmarshalBinary

func (m *ReviewPathItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ReviewPathItem) Validate

func (m *ReviewPathItem) Validate(formats strfmt.Registry) error

Validate validates this review path item

type SpecDiffTime

type SpecDiffTime struct {

	// api event Id
	APIEventID uint32 `json:"apiEventId,omitempty"`

	// api host name
	APIHostName string `json:"apiHostName,omitempty"`

	// diff type
	DiffType *DiffType `json:"diffType,omitempty"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`
}

SpecDiffTime spec diff time

swagger:model SpecDiffTime

func (*SpecDiffTime) ContextValidate

func (m *SpecDiffTime) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this spec diff time based on the context it is used

func (*SpecDiffTime) MarshalBinary

func (m *SpecDiffTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SpecDiffTime) UnmarshalBinary

func (m *SpecDiffTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SpecDiffTime) Validate

func (m *SpecDiffTime) Validate(formats strfmt.Registry) error

Validate validates this spec diff time

type SpecInfo

type SpecInfo struct {

	// tags
	Tags []*SpecTag `json:"tags"`
}

SpecInfo An object containing info about a spec

swagger:model SpecInfo

func (*SpecInfo) ContextValidate

func (m *SpecInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this spec info based on the context it is used

func (*SpecInfo) MarshalBinary

func (m *SpecInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SpecInfo) UnmarshalBinary

func (m *SpecInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SpecInfo) Validate

func (m *SpecInfo) Validate(formats strfmt.Registry) error

Validate validates this spec info

type SpecTag

type SpecTag struct {

	// description
	Description string `json:"description,omitempty"`

	// method and path list
	MethodAndPathList []*MethodAndPath `json:"methodAndPathList"`

	// name
	Name string `json:"name,omitempty"`
}

SpecTag spec tag

swagger:model SpecTag

func (*SpecTag) ContextValidate

func (m *SpecTag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this spec tag based on the context it is used

func (*SpecTag) MarshalBinary

func (m *SpecTag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SpecTag) UnmarshalBinary

func (m *SpecTag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SpecTag) Validate

func (m *SpecTag) Validate(formats strfmt.Registry) error

Validate validates this spec tag

type SuccessResponse

type SuccessResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

SuccessResponse An object that is return in cases of success that return nothing.

swagger:model SuccessResponse

func (*SuccessResponse) ContextValidate

func (m *SuccessResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this success response based on context it is used

func (*SuccessResponse) MarshalBinary

func (m *SuccessResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SuccessResponse) UnmarshalBinary

func (m *SuccessResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SuccessResponse) Validate

func (m *SuccessResponse) Validate(formats strfmt.Registry) error

Validate validates this success response

type SuggestedReview

type SuggestedReview struct {

	// id
	ID uint32 `json:"id,omitempty"`

	// review path items
	ReviewPathItems []*ReviewPathItem `json:"reviewPathItems"`
}

SuggestedReview suggested review

swagger:model SuggestedReview

func (*SuggestedReview) ContextValidate

func (m *SuggestedReview) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this suggested review based on the context it is used

func (*SuggestedReview) MarshalBinary

func (m *SuggestedReview) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SuggestedReview) UnmarshalBinary

func (m *SuggestedReview) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SuggestedReview) Validate

func (m *SuggestedReview) Validate(formats strfmt.Registry) error

Validate validates this suggested review

type TraceSource

type TraceSource struct {

	// description
	Description string `json:"description,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// Unique name identifying a Trace Source
	// Required: true
	Name *string `json:"name"`

	// token
	Token string `json:"token,omitempty"`

	// type
	// Required: true
	Type *TraceSourceType `json:"type"`

	// uid
	// Format: uuid
	UID strfmt.UUID `json:"uid,omitempty"`
}

TraceSource A Source which is sending traces to APIClarity

swagger:model TraceSource

func (*TraceSource) ContextValidate

func (m *TraceSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this trace source based on the context it is used

func (*TraceSource) MarshalBinary

func (m *TraceSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TraceSource) UnmarshalBinary

func (m *TraceSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TraceSource) Validate

func (m *TraceSource) Validate(formats strfmt.Registry) error

Validate validates this trace source

type TraceSourceType

type TraceSourceType string

TraceSourceType trace source type

swagger:model TraceSourceType

const (

	// TraceSourceTypeAPIGEEX captures enum value "APIGEE_X"
	TraceSourceTypeAPIGEEX TraceSourceType = "APIGEE_X"

	// TraceSourceTypeF5BIGIP captures enum value "F5_BIG_IP"
	TraceSourceTypeF5BIGIP TraceSourceType = "F5_BIG_IP"

	// TraceSourceTypeKONGINTERNAL captures enum value "KONG_INTERNAL"
	TraceSourceTypeKONGINTERNAL TraceSourceType = "KONG_INTERNAL"

	// TraceSourceTypeTYKINTERNAL captures enum value "TYK_INTERNAL"
	TraceSourceTypeTYKINTERNAL TraceSourceType = "TYK_INTERNAL"
)

func NewTraceSourceType

func NewTraceSourceType(value TraceSourceType) *TraceSourceType

func (TraceSourceType) ContextValidate

func (m TraceSourceType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this trace source type based on context it is used

func (TraceSourceType) Validate

func (m TraceSourceType) Validate(formats strfmt.Registry) error

Validate validates this trace source type

Jump to

Keyboard shortcuts

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