Documentation ¶
Index ¶
- Constants
- func AddDocToBulkProcessor(bp *elastic.BulkProcessor, doc interface{}, docType, index, id string) *elastic.BulkProcessor
- func CheckMonthlyReportExists(ctx context.Context, date time.Time, aa taws.AwsAccount, prefix string) (bool, error)
- func FetchRegionsList(ctx context.Context, sess *session.Session) ([]string, error)
- func GetAccountId(ctx context.Context, sess *session.Session) (string, error)
- func GetBulkProcessor(ctx context.Context) (*elastic.BulkProcessor, error)
- func GetCurrentCheckedDay() (start time.Time, end time.Time)
- type CostPerResource
- type ReportBase
- type Tag
Constants ¶
View Source
const (
MaxAggregationSize = 0x7FFFFFFF
)
Variables ¶
This section is empty.
Functions ¶
func AddDocToBulkProcessor ¶
func AddDocToBulkProcessor(bp *elastic.BulkProcessor, doc interface{}, docType, index, id string) *elastic.BulkProcessor
AddDocToBulkProcessor adds a document in a bulk processor to ingest them in ES
func CheckMonthlyReportExists ¶
func CheckMonthlyReportExists(ctx context.Context, date time.Time, aa taws.AwsAccount, prefix string) (bool, error)
CheckMonthlyReportExists checks if there is already a monthly report in ES based on the prefix. If there is already one it returns true, otherwise it returns false.
func FetchRegionsList ¶
FetchRegionsList fetches the regions list from AWS and returns an array of their name.
func GetAccountId ¶
GetAccountId gets the AWS Account ID for the given credentials
func GetBulkProcessor ¶
GetBulkProcessor builds a bulk processor for ElasticSearch.
Types ¶
type CostPerResource ¶
CostPerResource associates a cost to an aws resourceId with a region
Click to show internal directories.
Click to hide internal directories.