dashboard

package
v0.5.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 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"`
	WithResourceRevision  bool `query:"withResourceRevision,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 revision number.
	ResourceRevision int `json:"resourceRevision,omitempty"`
}

type CollectionRouteGetLatestResourceRevisionsRequest added in v0.4.0

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

func (*CollectionRouteGetLatestResourceRevisionsRequest) SetGinContext added in v0.4.0

type CollectionRouteGetLatestResourceRevisionsResponse added in v0.4.0

type CollectionRouteGetLatestResourceRevisionsResponse = []*model.ResourceRevisionOutput

type CollectionRouteGetResourceRevisionStatisticsRequest added in v0.4.0

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

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

func (*CollectionRouteGetResourceRevisionStatisticsRequest) SetGinContext added in v0.4.0

func (*CollectionRouteGetResourceRevisionStatisticsRequest) Validate added in v0.4.0

type CollectionRouteGetResourceRevisionStatisticsResponse added in v0.4.0

type CollectionRouteGetResourceRevisionStatisticsResponse struct {
	StatusCount *RevisionStatusCount   `json:"statusCount"`
	StatusStats []*RevisionStatusStats `json:"statusStats"`
}

type Handler

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

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionRouteGetLatestResourceRevisions added in v0.4.0

CollectionRouteGetLatestResourceRevisions returns the latest 10 revisions of resources.

func (Handler) CollectionRouteGetResourceRevisionStatistics added in v0.4.0

CollectionRouteGetResourceRevisionStatistics returns statistics of resource revisions.

func (Handler) Kind

func (Handler) Kind() string

type RevisionStatusCount

type RevisionStatusCount struct {
	Running   int `json:"running"`
	Failed    int `json:"failed"`
	Succeeded int `json:"succeeded"`
}

type RevisionStatusStats

type RevisionStatusStats struct {
	RevisionStatusCount

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

RevisionStatusStats is the statistics of resource revision status.

Jump to

Keyboard shortcuts

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