Documentation ¶
Index ¶
Constants ¶
View Source
const ESStsSessionName = "fetch-es"
View Source
const IndexPrefixESReport = "es-reports"
View Source
const MonitorDomainStsSessionName = "monitor-domain"
View Source
const TemplateEsReport = `` /* 1574-byte string literal not displayed */
View Source
const TemplateNameESReport = "es-reports"
View Source
const TypeESReport = "es-report"
Variables ¶
This section is empty.
Functions ¶
func FetchDomainsStats ¶
func FetchDomainsStats(ctx context.Context, awsAccount taws.AwsAccount) error
FetchDomainsStats retrieces ES information from the AWS API and generate a report
func PutEsMonthlyReport ¶
func PutEsMonthlyReport(ctx context.Context, esCost []utils.CostPerResource, aa taws.AwsAccount, startDate, endDate time.Time) (bool, error)
PutEsMonthlyReport puts a monthly report of ES in ES
Types ¶
type Domain ¶
type Domain struct { DomainBase Tags []utils.Tag `json:"tags"` Costs map[string]float64 `json:"costs"` Stats Stats `json:"stats"` }
Domain contains all information of an ES domain that will be save in ES
type DomainBase ¶
type DomainBase struct { Arn string `json:"arn"` Region string `json:"region"` DomainID string `json:"domainId"` DomainName string `json:"domainName"` InstanceType string `json:"instanceType"` InstanceCount int64 `json:"instanceCount"` TotalStorageSpace int64 `json:"totalStorageSpace"` }
DomainBase contains basics information of an ES domain
type DomainReport ¶
type DomainReport struct { utils.ReportBase Domain Domain `json:"domain"` }
DomainReport represents the report with all the information for ES domains.
type JVMMemoryPressure ¶
JVMMemoryPressure contains JVMMemoryPressure statistics of a domain
type Stats ¶
type Stats struct { Cpu Cpu `json:"cpu"` FreeSpace float64 `json:"freeSpace"` JVMMemoryPressure JVMMemoryPressure `json:"JVMMemoryPressure"` }
Stats contains statistics of a domain get on CloudWatch
Click to show internal directories.
Click to hide internal directories.