Reputation: 2929
I want to measure how long does it take us to upload a file to GCS bucket. In order to do so, we want to get the object creation time.
My first screenshot shows the object info we got from GCS bucket API. the time-stamp shows "2018-01-19T14:58:14.626Z". The second screenshot shows timestamp "14:58:14.574"(different in milliseconds). According to the documentation, in the audit log entry,
timeStamp contains the time of the audited operation
So I'm assuming that the timestamp I see in the logging entry is the time when storage.objects.create happened. If I'm not wrong, then what happened in the extra 52 (626-574) milliseconds?
Is it the time that GCS bucket spent from receiving the object creation request to actually get the object written in a disk?
Which timestamp should I use as the time when the object is available for "get" and "download"?
Upvotes: 1
Views: 650
Reputation: 67063
The timestamps are currently assigned separately, so they won't match up exactly. I've filed a feature request internally to make these match and I'll update this answer if/when this change is made.
Upvotes: 1