Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentEvent ¶
type DeploymentEvent struct { // EntityID contains ID of ModelDeployment for ModelDeploymentDeleted and ModelDeploymentDeletionMarkIsSet // event types // Does not make sense in case of ModelDeploymentUpdate, ModelDeploymentCreate, ModelDeploymentStatusUpdated events EntityID string `json:"entityID"` // Payload contains ModelDeployment for ModelDeploymentUpdate, ModelDeploymentCreate, // ModelDeploymentStatusUpdated events. // Does not make sense in case of ModelDeploymentDelete, ModelDeploymentDeletionMarkIsSet events Payload deployment.ModelDeployment `json:"payload"` // Possible values: ModelDeploymentCreate, ModelDeploymentUpdate, ModelRouteDeleted, // ModelDeploymentDeletionMarkIsSet, ModelDeploymentStatusUpdated EventType Type `json:"type"` // When event is raised Datetime time.Time `json:"datetime"` }
type Event ¶
type Event struct { EntityID string EventType Type EventGroup Group Datetime time.Time Payload interface{} }
This event is used for publishing
type Group ¶
type Group string
const ModelDeploymentEventGroup Group = "ModelDeployment"
const ModelRouteEventGroup Group = "ModelRoute"
type LatestDeploymentEvents ¶
type LatestDeploymentEvents struct { Events []DeploymentEvent `json:"events"` Cursor int `json:"cursor"` }
type LatestRouteEvents ¶
type LatestRouteEvents struct { Events []RouteEvent `json:"events"` Cursor int `json:"cursor"` }
type RouteEvent ¶
type RouteEvent struct { // EntityID contains ID of ModelRoute for ModelRouteDeleted and ModelRouteDeletionMarkIsSet // event types // Does not make sense in case of ModelRouteUpdate, ModelRouteCreate, ModelRouteStatusUpdated events EntityID string `json:"entityID"` // Payload contains ModelRoute for ModelRouteUpdate, ModelRouteCreate, // ModelRouteStatusUpdated events. // Does not make sense in case of ModelRouteDelete, ModelRouteDeletionMarkIsSet events Payload deployment.ModelRoute `json:"payload"` // Possible values: ModelRouteCreate, ModelRouteUpdate, ModelRouteDeleted, // ModelRouteDeletionMarkIsSet, ModelRouteStatusUpdated EventType Type `json:"type"` // When event is raised Datetime time.Time `json:"datetime"` }
type Type ¶
type Type string
const ModelDeploymentCreatedEventType Type = "ModelDeploymentCreated"
const ModelDeploymentDeletedEventType Type = "ModelDeploymentDeleted"
const ModelDeploymentDeletionMarkIsSetEventType Type = "ModelDeploymentDeletionMarkIsSet"
const ModelDeploymentStatusUpdatedEventType Type = "ModelDeploymentStatusUpdated"
const ModelDeploymentUpdatedEventType Type = "ModelDeploymentUpdated"
const ModelRouteCreatedEventType Type = "ModelRouteCreated"
const ModelRouteDeletedEventType Type = "ModelRouteDeleted"
const ModelRouteDeletionMarkIsSetEventType Type = "ModelRouteDeletionMarkIsSet"
const ModelRouteStatusUpdatedEventType Type = "ModelRouteStatusUpdated"
const ModelRouteUpdatedEventType Type = "ModelRouteUpdate"
Click to show internal directories.
Click to hide internal directories.