Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Add timestamp to all reports #13

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

squat
Copy link
Contributor

@squat squat commented Nov 23, 2016

Currently, the timestamp field is only added to reports that are
processed with a Spartakus collector. If you run the volunteer with
--database=stdout or even --database=bigquery://... your records
will have no timestamp. This commit adds the timestamp field to reports
at the time of creation in the volunteer.

@k8s-ci-robot
Copy link

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA.

Once you've signed, please reply here (e.g. "I signed it!") and we'll verify. Thanks.


If you have questions or suggestions related to this bot's behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Nov 23, 2016
@squat
Copy link
Contributor Author

squat commented Nov 23, 2016

fixes: #12

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 23, 2016
Currently, the `timestamp` field is only added to reports that are
processed with a Spartakus collector. If you run the volunteer with
`--database=stdout` or even `--database=bigquery://...` your records
will have no timestamp. This commit adds the timestamp field to reports
at the time of creation in the volunteer.
@philips
Copy link
Contributor

philips commented Dec 1, 2016

LGTM

@squat squat merged commit 2d65b0a into kubernetes-retired:master Dec 1, 2016
@squat squat deleted the add_timestamp branch December 1, 2016 03:11
@squat squat mentioned this pull request Dec 1, 2016
@@ -89,7 +88,6 @@ func (s *APIServer) storeRecordHandler() httprouter.Handle {
writeError(w, http.StatusBadRequest, fmt.Errorf("failed to decode record: %v", err))
return
}
rec.Timestamp = strconv.FormatInt(time.Now().Unix(), 10)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this on purpose, to add some modicum of sanity to the data, but I guess it doesn't matter much.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean by sanity?

@thockin
Copy link
Contributor

thockin commented Dec 1, 2016 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants