Documentation
¶
Index ¶
- func ComputeSloFromQueryMetrics(points []float64, agg string) (slo float64, err error)
- type AddHeaderTransport
- type Dynatrace
- func (dt *Dynatrace) CanHandleSelector(labels entities.Selector) bool
- func (dt *Dynatrace) ComputeObjective(o *entities.Objective, from, to time.Time) (i *entities.Indicator, err error)
- func (dt *Dynatrace) GetSLO(id string) (*SLO, error)
- func (dt *Dynatrace) ListSLOs() (slos []SLO, err error)
- func (dt *Dynatrace) MetricQuery(selector entities.Selector, from, to time.Time) (*MetricResult, error)
- type ErrorBudgetBurnRate
- type GetSLOResponseBody
- type MetricQueryResponse
- type MetricResult
- type Points
- type SLO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddHeaderTransport ¶
type AddHeaderTransport struct {
T http.RoundTripper
}
func NewAddHeaderTransport ¶
func NewAddHeaderTransport(T http.RoundTripper) *AddHeaderTransport
type Dynatrace ¶
func (*Dynatrace) CanHandleSelector ¶
CanHandleSelector returns true only if both datadog queries are defined
func (*Dynatrace) ComputeObjective ¶
func (*Dynatrace) MetricQuery ¶
type ErrorBudgetBurnRate ¶
type GetSLOResponseBody ¶
type MetricQueryResponse ¶
type MetricQueryResponse struct { TotalCount int `json:"totalCount"` NextPageKey string `json:"nextPageKey"` Resolution string `json:"resolution"` Result []MetricResult `json:"result"` }
type MetricResult ¶
type SLO ¶
type SLO struct { MetricExpression string `json:"metricExpression"` UseRateMetric bool `json:"useRateMetric"` MetricRate string `json:"metricRate"` MetricNumerator string `json:"metricNumerator"` MetricDenominator string `json:"metricDenominator"` EvaluationType string `json:"evaluationType"` EvaluatedPercentage float64 `json:"evaluatedPercentage"` ErrorBudget float64 `json:"errorBudget"` BurnRateMetricKey string `json:"burnRateMetricKey"` NumeratorValue float64 `json:"numeratorValue"` DenominatorValue float64 `json:"denominatorValue"` ProblemFilter string `json:"problemFilter"` RelatedOpenProblems int `json:"relatedOpenProblems"` RelatedTotalProblems int `json:"relatedTotalProblems"` HasAccess bool `json:"hasAccess"` MetricKey string `json:"metricKey"` Timeframe string `json:"timeframe"` Filter string `json:"filter"` Name string `json:"name"` ID string `json:"id"` Target float64 `json:"target"` Description string `json:"description"` Enabled bool `json:"enabled"` Status string `json:"status"` Warning float64 `json:"warning"` Error string `json:"error"` ErrorBudgetBurnRate `json:"errorBudgetBurnRate"` }
Click to show internal directories.
Click to hide internal directories.