es

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: 17 Imported by: 3

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 Cpu

type Cpu struct {
	Average float64 `json:"average"`
	Peak    float64 `json:"peak"`
}

Cpu contains cpu statistics of a domain

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

type JVMMemoryPressure struct {
	Average float64 `json:"average"`
	Peak    float64 `json:"peak"`
}

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

Jump to

Keyboard shortcuts

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