25 Nov 2022 09:41 AM - last edited on 28 Nov 2022 09:18 AM by MaciejNeumann
I am using events API v2 (https://www.dynatrace.com/support/help/dynatrace-api/environment-api/events-v2/post-event) and trying to post an CUSTOM_DEPLOYMENT event but don't know how to give startTime and endTime as per documentation it should be integer value.
I have also tried passing current timestamp but it's giving an error.
Solved! Go to Solution.
25 Nov 2022 12:00 PM
Both parameters are in the epoch time format. You need to convert your timestamp into epoch format.
Keep in mind both parameters are optional. If you do not specify startTime, current time is used.
25 Nov 2022 01:52 PM
Hey @Julius_Loman is it in seconds or milliseconds?
25 Nov 2022 02:32 PM
In UTC milliseconds.
27 Nov 2022 10:36 PM
The timestamps are too old in your case. You cannot push non-problem opening events older than 30 days.