Documentation
¶
Index ¶
Constants ¶
View Source
const Metrics = "metrics"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonResultValue ¶
type CommonResultValue struct {
Operation string `json:"operation"`
Service string `json:"service"`
Executor string `json:"executor"`
Success bool `json:"Success"`
}
CommonResultValue contains the fields common to all request results (regardless of whether the result indicates success or failure).
type FailureResult ¶
type FailureResult struct {
CommonResultValue
ErrorMessage string `json:"errorMessage"`
}
FailureResult contains the fields to e returned for a failed request.
type MetricsSuccessResult ¶
type MetricsSuccessResult struct {
CommonResultValue
MetricsResultValue metricsResultValue `json:"result"`
}
MetricsSuccessResult contains the fields to be returned for a successful metrics request.
type Result ¶
type Result interface {
// contains filtered or unexported methods
}
Result provides a generic interface implemented by receivers intended to return their struct as a request result.
type SuccessResult ¶
type SuccessResult struct {
CommonResultValue
}
SuccessResult contains the fields to be returned for a successful start/stop/restart operation request.
Click to show internal directories.
Click to hide internal directories.