Documentation ¶
Index ¶
- type CollectionRouteGetBasicInformationRequest
- type CollectionRouteGetBasicInformationResponse
- type CollectionRouteGetLatestResourceRunsRequest
- type CollectionRouteGetLatestResourceRunsResponse
- type CollectionRouteGetResourceRunStatisticsRequest
- type CollectionRouteGetResourceRunStatisticsResponse
- type Handler
- func (h Handler) CollectionRouteGetBasicInformation(req CollectionRouteGetBasicInformationRequest) (*CollectionRouteGetBasicInformationResponse, error)
- func (h Handler) CollectionRouteGetLatestResourceRuns(req CollectionRouteGetLatestResourceRunsRequest) (CollectionRouteGetLatestResourceRunsResponse, int, error)
- func (h Handler) CollectionRouteGetResourceRunStatistics(req CollectionRouteGetResourceRunStatisticsRequest) (*CollectionRouteGetResourceRunStatisticsResponse, error)
- func (Handler) Kind() string
- type RunStatusCount
- type RunStatusStats
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
func (r *CollectionRouteGetLatestResourceRunsRequest) SetGinContext(ctx *gin.Context)
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 (r *CollectionRouteGetResourceRunStatisticsRequest) SetGinContext(ctx *gin.Context)
func (*CollectionRouteGetResourceRunStatisticsRequest) Validate ¶ added in v0.6.0
func (r *CollectionRouteGetResourceRunStatisticsRequest) Validate() error
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 (Handler) CollectionRouteGetBasicInformation ¶
func (h Handler) CollectionRouteGetBasicInformation( req CollectionRouteGetBasicInformationRequest, ) (*CollectionRouteGetBasicInformationResponse, error)
func (Handler) CollectionRouteGetLatestResourceRuns ¶ added in v0.6.0
func (h Handler) CollectionRouteGetLatestResourceRuns( req CollectionRouteGetLatestResourceRunsRequest, ) (CollectionRouteGetLatestResourceRunsResponse, int, error)
CollectionRouteGetLatestResourceRuns returns the latest 10 runs of resources.
func (Handler) CollectionRouteGetResourceRunStatistics ¶ added in v0.6.0
func (h Handler) CollectionRouteGetResourceRunStatistics( req CollectionRouteGetResourceRunStatisticsRequest, ) (*CollectionRouteGetResourceRunStatisticsResponse, error)
CollectionRouteGetResourceRunStatistics returns statistics of resource runs.
type RunStatusCount ¶ added in v0.6.0
type RunStatusStats ¶ added in v0.6.0
type RunStatusStats struct { RunStatusCount StartTime string `json:"startTime,omitempty"` }
RunStatusStats is the statistics of resource run status.
Click to show internal directories.
Click to hide internal directories.