api/outlier_report.go
func (a *API) FetchOutlierReports() (*[]OutlierReport, error) {
	result, err := a.Get(config.OutlierReportPrefix)
	if err != nil {
		return nil, err
	}

	var reports []OutlierReport
	if err := json.Unmarshal(result, &reports); err != nil {
		return nil, err
	}

	return &reports, nil
}
func (a *API) FetchOutlierReports() (*[]OutlierReport, error) {
	result, err := a.Get(config.OutlierReportPrefix)
	if err != nil {
		return nil, err
	}

	var reports []OutlierReport
	if err := json.Unmarshal(result, &reports); err != nil {
		return nil, err
	}

	return &reports, nil
}
func ( a * API ) FetchOutlierReports ( ) ( * [ ] OutlierReport , error ) { result , err := a . Get ( config . OutlierReportPrefix ) if err != nil { return nil , err } var reports [ ] OutlierReport if err := json . Unmarshal ( result , & reports ) ; err != nil { return nil , err } return & reports , nil }
// FetchOutlierReports retrieves all outlier reports available to API Token.
FetchOutlierReports retrieves all outlier reports available to API Token .