Documentation
¶
Index ¶
- func NewUnsupportedCFDeploymentError(appName string) error
- type AppReporter
- type AppReporterCloudFoundryClient
- type ApplicationReport
- type CloudFoundryClient
- type CumulativeUsage
- type CurrentUsage
- type InstanceDataFetcher
- type InstanceReport
- type LastSpike
- type MetricsFetcher
- type OEIReport
- type OverEntitlementInstances
- type SpaceReport
- type UnsupportedCFDeploymentError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppReporter ¶
type AppReporter struct {
// contains filtered or unexported fields
}
func NewAppReporter ¶
func NewAppReporter(cfClient AppReporterCloudFoundryClient, currentUsageFetcher, lastSpikeFetcher, cumulativeUsageFetcher InstanceDataFetcher) AppReporter
func (AppReporter) CreateApplicationReport ¶
func (r AppReporter) CreateApplicationReport(logger lager.Logger, appName string) (ApplicationReport, error)
type ApplicationReport ¶
type ApplicationReport struct { Org string Username string Space string ApplicationName string InstanceReports []InstanceReport }
type CloudFoundryClient ¶
type CumulativeUsage ¶
type CumulativeUsage struct {
Value float64
}
type CurrentUsage ¶
type CurrentUsage struct {
Value float64
}
type InstanceDataFetcher ¶
type InstanceReport ¶
type InstanceReport struct { InstanceID int CumulativeUsage CumulativeUsage CurrentUsage CurrentUsage LastSpike LastSpike }
type MetricsFetcher ¶
type OEIReport ¶
type OEIReport struct { Org string Username string SpaceReports []SpaceReport }
type OverEntitlementInstances ¶
type OverEntitlementInstances struct {
// contains filtered or unexported fields
}
func NewOverEntitlementInstances ¶
func NewOverEntitlementInstances(cf CloudFoundryClient, metricsFetcher MetricsFetcher) OverEntitlementInstances
func (OverEntitlementInstances) OverEntitlementInstances ¶
func (r OverEntitlementInstances) OverEntitlementInstances(logger lager.Logger) (OEIReport, error)
type SpaceReport ¶
type UnsupportedCFDeploymentError ¶
type UnsupportedCFDeploymentError struct {
// contains filtered or unexported fields
}
func (UnsupportedCFDeploymentError) Error ¶
func (e UnsupportedCFDeploymentError) Error() string
Click to show internal directories.
Click to hide internal directories.