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 ¶
- type FrequentCollector
- func (collector *FrequentCollector) ClearTicker()
- func (collector *FrequentCollector) GetIntervalInSeconds(changeDetectionFrequency int, ...) (bool, int)
- func (collector *FrequentCollector) IsFrequentCollectorEnabled(context context.T, docState *contracts.DocumentState, ...) bool
- func (collector *FrequentCollector) IsSoftwareInventoryAssociation(docState *contracts.DocumentState) bool
- func (collector *FrequentCollector) StartFrequentCollector(context context.T, docState *contracts.DocumentState, ...)
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.