config

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HttpAddress is the address and port the server shall bind to.
	HttpAddress string
	// SqlProtocol is the name of the Sql database, as used in the protocol in the URL.
	SqlProtocol string
	// SqlAddress is the string passed to the Sql driver to connect to the database.
	SqlAddress string
	// AuthIssuer is the issuer included in JWT tokens.
	AuthIssuer string
	// AuthSecret is the secret used to sign and verify JWT tokens.
	AuthSecret string
	// AwsRegion is the AWS region the product operates in.
	AwsRegion string
	// BackendId is an identifier for the current instance of the server.
	BackendId string
	// ReportsBucket is the bucket name where the reports are stored.
	ReportsBucket string
	// DefaultRole is the role added by default to new user accounts
	DefaultRole string
	// DefaultRoleName is the pretty name for the role added by default
	DefaultRoleName string
	// DefaultRoleExternal is the external ID for the role added by default
	DefaultRoleExternal string
	// DefaultRoleBucket is the billing bucket name for the role added by default
	DefaultRoleBucket string
	// DefaultRoleBucketPrefix is the billing prefix for the role added by default
	DefaultRoleBucketPrefix string
	// PrettyJsonResponses, if set, indicates JSON HTTP responses should be pretty.
	PrettyJsonResponses bool
	// EsAuth is the authentication used to connect to the ElasticSearch database.
	// It can be 'basic:user:password' for basic authentication.
	EsAuthentication string
	// EsAddress is the address where the ElasticSearch database resides.
	EsAddress stringArray
	// SmtpAddress is the SMTP address where to send mails.
	SmtpAddress string
	// SmtpPort is the SMTP port where to send mails.
	SmtpPort string
	// SmtpUser is the user used to connect to the SMTP server.
	SmtpUser string
	// SmtpPassword is the password used to connect to the SMTP server.
	SmtpPassword string
	// SmtpSender is the mail address used to send mails.
	SmtpSender string
	// UrlEc2Pricing is the URL used by downloadJson to fetch the EC2 pricing.
	UrlEc2Pricing string
	// Task is the task to be run. "server", by default.
	Task string
	// Periodics, if true, indicates periodic tasks should be run in goroutines within the process.
	Periodics bool
	// Aws Market place product code
	MarketPlaceProductCode string
	// AnomalyDetectionBollingerBandPeriod is the period in day used to generate the upper band.
	AnomalyDetectionBollingerBandPeriod int
	// AnomalyDetectionBollingerBandStandardDeviationCoefficient is the coefficient applied to the standard deviation used to generate the upper band.
	AnomalyDetectionBollingerBandStandardDeviationCoefficient float64
	// AnomalyDetectionBollingerBandUpperBandCoefficient is the coefficient applied to the upper band.
	AnomalyDetectionBollingerBandUpperBandCoefficient float64
	// AnomalyDetectionDisturbanceCleaningMinPercentOfDailyBill is the percentage of the daily bill an anomaly has to exceed. Otherwise, it's considered as a disturbance.
	AnomalyDetectionDisturbanceCleaningMinPercentOfDailyBill float64
	// AnomalyDetectionDisturbanceCleaningMinAbsoluteCost is the cost an anomaly has to exceed. Otherwise, it's considered as a disturbance.
	AnomalyDetectionDisturbanceCleaningMinAbsoluteCost float64
	// AnomalyDetectionDisturbanceCleaningHighestSpendingMinRank is the minimum rank of the service. Below, all anomalies detected in this service are considered as a disturbance.
	AnomalyDetectionDisturbanceCleaningHighestSpendingMinRank int
	// AnomalyDetectionDisturbanceCleaningHighestSpendingPeriod is the period in day used to calculate the ranks of the highest spending services.
	AnomalyDetectionDisturbanceCleaningHighestSpendingPeriod int
	// AnomalyDetectionRecurrenceCleaningThreshold is the percentage in which an expense is considered recurrent with another.
	AnomalyDetectionRecurrenceCleaningThreshold float64
	// AnomalyDetectionLevels are the rules to generate the levels. Example: "0,120,150" would say there is three levels (pretty names are set below). An anomaly is classed level one if its cost is between 120 and 150% of the higher anticipated cost.
	AnomalyDetectionLevels string
	// AnomalyDetectionPrettyLevels are the pretty names of the levels above. Example: "low,medium,high".
	AnomalyDetectionPrettyLevels string
	// AnomalyEmailingMinLevel is the minimum level required for the mail to be sent.
	AnomalyEmailingMinLevel int
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL