buildReport builds the report to be sent to the stats server, this report includes the cluster seed data.
(seed *ClusterSeed, interval time.Time)
| 73 | // buildReport builds the report to be sent to the stats server, |
| 74 | // this report includes the cluster seed data. |
| 75 | func buildReport(seed *ClusterSeed, interval time.Time) Report { |
| 76 | report := BuildStats() |
| 77 | report.ClusterID = seed.UID |
| 78 | report.CreatedAt = seed.CreatedAt |
| 79 | report.Interval = interval |
| 80 | |
| 81 | return report |
| 82 | } |
| 83 | |
| 84 | // BuildStats builds the report without cluster seed data |
| 85 | func BuildStats() Report { |