Skip to content

Commit 68955a1

Browse files
authored
Merge pull request #28 from cbiglioli/27-Use_hostdata_period_for_FreshnessCheckJob
Use hostdata period for FreshnessCheckJob
2 parents 0ce52aa + c66f345 commit 68955a1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func doBuildAndSend(configuration config.Configuration, log logger.Logger) {
8484

8585
hostData.AgentVersion = version
8686
hostData.SchemaVersion = hostDataSchemaVersion
87+
hostData.Period = configuration.Period
8788
hostData.Tags = []string{}
8889

8990
sendData(hostData, configuration, log)

model/hostdata.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type HostData struct {
2626
Tags []string `json:"tags"`
2727
AgentVersion string `json:"agentVersion"`
2828
SchemaVersion int `json:"schemaVersion"`
29+
Period uint `json:"period"`
2930
Info Host `json:"info"`
3031
ClusterMembershipStatus ClusterMembershipStatus `json:"clusterMembershipStatus"`
3132
Features Features `json:"features"`

0 commit comments

Comments
 (0)