swagger-doc.go 1021 字节
Newer Older
J
Jeff 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
package v1alpha2

import (
	"github.com/kiali/kiali/graph/cytoscape"
	"github.com/kiali/kiali/models"
	"github.com/kiali/kiali/prometheus"
)

/////////////////////
// SWAGGER RESPONSES
/////////////////////

// NoContent: the response is empty
type NoContent struct {
	Status int32 `json:"status"`
	Reason error `json:"reason"`
}

// BadRequestError: the client request is incorrect
type BadRequestError struct {
	Status int32 `json:"status"`
	Reason error `json:"reason"`
}

// NotFoundError is the error message that is generated when server could not find
// what was requested
type NotFoundError struct {
	Status int32 `json:"status"`
	Reason error `json:"reason"`
}

type GraphResponse struct {
	cytoscape.Config
}

type serviceHealthResponse struct {
	models.ServiceHealth
}

type namespaceAppHealthResponse struct {
	models.NamespaceAppHealth
}

type workloadHealthResponse struct {
	models.WorkloadHealth
}

type appHealthResponse struct {
	models.AppHealth
}

type MetricsResponse struct {
	prometheus.Metrics
}