Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorApiResponse ¶
type ErrorApiResponse struct {
ErrMessage string `json:"errorMessage"`
Data []ErrorDetails `json:"data"`
}
type ErrorDetails ¶
type ErrorDetails struct {
Container string `json:"container"`
Timestamp int64 `json:"timestamp"`
Code string `json:"code"`
Message string `json:"message"`
Details string `json:"details"`
}
ErrorDetails is used to provide information for a container error including timestamp, error code, message and details
type MonoVertexRuntimeCache ¶
type MonoVertexRuntimeCache interface {
// StartCacheRefresher starts the cache refresher to update the local cache with the runtime errors.
StartCacheRefresher(ctx context.Context) error
// GetLocalCache returns the local cache of runtime errors for each monoVertex.
GetLocalCache() map[string][]ReplicaErrors
}
MonoVertexRuntimeCache is an interface for caching and retrieving the runtime information.
func NewRuntime ¶
func NewRuntime(ctx context.Context, mv *v1alpha1.MonoVertex) MonoVertexRuntimeCache
NewRuntime creates a new instance of monoVertexRuntimeCache.
type PodTracker ¶
type PodTracker struct {
// contains filtered or unexported fields
}
PodTracker tracks the active pods for a MonoVertex.
func NewPodTracker ¶
func NewPodTracker(ctx context.Context, mv *v1alpha1.MonoVertex) *PodTracker
NewPodTracker creates a new pod tracker instance.
func (*PodTracker) GetActivePodsCount ¶
func (pt *PodTracker) GetActivePodsCount() int
GetActivePodsCount returns the number of active pods.
type ReplicaErrors ¶
type ReplicaErrors struct {
Replica string `json:"replica"`
ContainerErrors []ErrorDetails `json:"containerErrors"`
}
ReplicaErrors is used to provide all the container errors for a replica
Click to show internal directories.
Click to hide internal directories.