Documentation ¶
Index ¶
- type ConfigDB
- func (configDb *ConfigDB) GetApplicationConfig(name string) (*models.ApplicationConfig, error)
- func (configDb *ConfigDB) GetBenchmarks() ([]models.Benchmark, error)
- func (configDb *ConfigDB) GetDeploymentConfig(name string) (*deployer.Deployment, error)
- func (configDb *ConfigDB) GetNodeTypeConfig(region string) (*models.AWSRegionNodeTypeConfig, error)
- func (configDb *ConfigDB) GetPreviousGenerationConfig(region string) (*models.AWSRegionNodeTypeConfig, error)
- type MetricsDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigDB ¶
type ConfigDB struct { Url string User string Password string Database string ApplicationsCollection string BenchmarksCollection string DeploymentCollection string NodeTypeCollection string PreviousGenerationCollection string }
func NewConfigDB ¶
func (*ConfigDB) GetApplicationConfig ¶
func (configDb *ConfigDB) GetApplicationConfig(name string) (*models.ApplicationConfig, error)
func (*ConfigDB) GetBenchmarks ¶
func (*ConfigDB) GetDeploymentConfig ¶
func (configDb *ConfigDB) GetDeploymentConfig(name string) (*deployer.Deployment, error)
func (*ConfigDB) GetNodeTypeConfig ¶
func (configDb *ConfigDB) GetNodeTypeConfig(region string) (*models.AWSRegionNodeTypeConfig, error)
func (*ConfigDB) GetPreviousGenerationConfig ¶
func (configDb *ConfigDB) GetPreviousGenerationConfig(region string) (*models.AWSRegionNodeTypeConfig, error)
type MetricsDB ¶
type MetricsDB struct { Url string User string Password string Database string CalibrationCollection string ProfilingCollection string SizingCollection string AllInstanceCollection string }
func NewMetricsDB ¶
func (*MetricsDB) GetMetric ¶
func (metricsDb *MetricsDB) GetMetric(dataType string, appName string, metric interface{}) (interface{}, error)
TODO: Need to support use of filter when one collection contains multiple documents
func (*MetricsDB) UpsertMetrics ¶
func (*MetricsDB) WriteMetrics ¶
Click to show internal directories.
Click to hide internal directories.