frequentcollector

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Overview

Package frequentcollector enable customers to detect changed inventory types and upload the changed inventory data to SSM service between 2 scheduled collections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrequentCollector

type FrequentCollector struct {
	// contains filtered or unexported fields
}

func GetFrequentCollector

func GetFrequentCollector() *FrequentCollector

GetFrequentCollector returns a singleton instance of FrequentCollector

func (*FrequentCollector) ClearTicker

func (collector *FrequentCollector) ClearTicker()

ClearTicker stops the ticker for frequent collector, and sets it to nil

func (*FrequentCollector) GetIntervalInSeconds

func (collector *FrequentCollector) GetIntervalInSeconds(changeDetectionFrequency int, parsedExpression scheduleexpression.ScheduleExpression) (bool, int)

GetIntervalInSeconds return the interval in seconds for frequent collector while the change detection frequency is specified

func (*FrequentCollector) IsFrequentCollectorEnabled

func (collector *FrequentCollector) IsFrequentCollectorEnabled(context context.T, docState *contracts.DocumentState, scheduledAssociation *AssociationModel.InstanceAssociation) bool

IsFrequentCollectorEnabled return a boolean indicating if the frequent collector is enabled per association configuration.

func (*FrequentCollector) IsSoftwareInventoryAssociation

func (collector *FrequentCollector) IsSoftwareInventoryAssociation(docState *contracts.DocumentState) bool

IsSoftwareInventoryAssociation return true if it's a software inventory association.

func (*FrequentCollector) StartFrequentCollector

func (collector *FrequentCollector) StartFrequentCollector(context context.T, docState *contracts.DocumentState, scheduledAssociation *AssociationModel.InstanceAssociation)

StartFrequentCollector starts the frequent collector per association configuration.

Jump to

Keyboard shortcuts

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