dashboard

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionRouteGetBasicInformationRequest

type CollectionRouteGetBasicInformationRequest struct {
	WithResourceComponent bool `query:"withResourceComponent,omitempty"`
	WithResourceRun       bool `query:"withResourceRun,omitempty"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetBasicInformationRequest) SetGinContext

func (r *CollectionRouteGetBasicInformationRequest) SetGinContext(ctx *gin.Context)

type CollectionRouteGetBasicInformationResponse

type CollectionRouteGetBasicInformationResponse struct {
	// Project number.
	Project int `json:"project"`
	// Environment number.
	Environment int `json:"environment"`
	// Connector number.
	Connector int `json:"connector"`
	// Resource number.
	Resource int `json:"resource"`
	// Resource component number.
	ResourceComponent int `json:"resourceComponent,omitempty"`
	// Resource run number.
	ResourceRun int `json:"resourceRun,omitempty"`
}

type CollectionRouteGetLatestResourceRunsRequest added in v0.6.0

type CollectionRouteGetLatestResourceRunsRequest struct {
	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetLatestResourceRunsRequest) SetGinContext added in v0.6.0

type CollectionRouteGetLatestResourceRunsResponse added in v0.6.0

type CollectionRouteGetLatestResourceRunsResponse = []*model.ResourceRunOutput

type CollectionRouteGetResourceRunStatisticsRequest added in v0.6.0

type CollectionRouteGetResourceRunStatisticsRequest struct {
	Step      string    `json:"step"`
	StartTime time.Time `json:"startTime"`
	EndTime   time.Time `json:"endTime"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetResourceRunStatisticsRequest) SetGinContext added in v0.6.0

func (*CollectionRouteGetResourceRunStatisticsRequest) Validate added in v0.6.0

type CollectionRouteGetResourceRunStatisticsResponse added in v0.6.0

type CollectionRouteGetResourceRunStatisticsResponse struct {
	StatusCount *RunStatusCount   `json:"statusCount"`
	StatusStats []*RunStatusStats `json:"statusStats"`
}

type Handler

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

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionRouteGetLatestResourceRuns added in v0.6.0

CollectionRouteGetLatestResourceRuns returns the latest 10 runs of resources.

func (Handler) CollectionRouteGetResourceRunStatistics added in v0.6.0

CollectionRouteGetResourceRunStatistics returns statistics of resource runs.

func (Handler) Kind

func (Handler) Kind() string

type RunStatusCount added in v0.6.0

type RunStatusCount struct {
	Planned   int `json:"planned"`
	Canceled  int `json:"canceled"`
	Running   int `json:"running"`
	Failed    int `json:"failed"`
	Succeeded int `json:"succeeded"`
}

type RunStatusStats added in v0.6.0

type RunStatusStats struct {
	RunStatusCount

	StartTime string `json:"startTime,omitempty"`
}

RunStatusStats is the statistics of resource run status.

Jump to

Keyboard shortcuts

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