flink

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlinkHandler

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

func NewHandler

func NewHandler(doer doer) FlinkHandler

func (*FlinkHandler) ServiceFlinkOverview

func (h *FlinkHandler) ServiceFlinkOverview(ctx context.Context, project string, serviceName string) (*ServiceFlinkOverviewOut, error)

type Handler

type Handler interface {
	// ServiceFlinkOverview get a cluster overview
	// GET /v1/project/{project}/service/{service_name}/flink/overview
	// https://api.aiven.io/doc/#tag/Service:_Flink/operation/ServiceFlinkOverview
	ServiceFlinkOverview(ctx context.Context, project string, serviceName string) (*ServiceFlinkOverviewOut, error)
}

type ServiceFlinkOverviewOut

type ServiceFlinkOverviewOut struct {
	FlinkCommit    *string `json:"flink-commit,omitempty"`    // Commit of Flink version
	FlinkVersion   *string `json:"flink-version,omitempty"`   // Flink version
	JobsCancelled  *int    `json:"jobs-cancelled,omitempty"`  // Number of cancelled jobs
	JobsFailed     *int    `json:"jobs-failed,omitempty"`     // Number of failed jobs
	JobsFinished   *int    `json:"jobs-finished,omitempty"`   // Number of finished jobs
	JobsRunning    *int    `json:"jobs-running,omitempty"`    // Number of running jobs
	SlotsAvailable *int    `json:"slots-available,omitempty"` // Number of slots available
	SlotsTotal     *int    `json:"slots-total,omitempty"`     // Number of slots
	Taskmanagers   *int    `json:"taskmanagers,omitempty"`    // Number of TaskManagers
}

ServiceFlinkOverviewOut ServiceFlinkOverviewResponse

Jump to

Keyboard shortcuts

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