I’m sending a JSON payload to the Datadog DORA metrics API, which requires the timestamp to be in nanoseconds. What is the best way to format or convert time value to nanoseconds within this JSON structure (started_at & finished_at)?
{
"data": {
"attributes": {
"team": "retails",
"service": "portal",
"env": "production",
"started_at": {{issue.customfield_12138.epochMilli}},
"finished_at": {{issue.customfield_12140.epochMilli}},
"severity": "{{issue.priority.name}}",
"name": "{{issue.key}} : {{issue.summary}}"
}
}
}
Required format: 1693491974000000000
(Human-readable date: Thursday, August 31, 2023 2:26:14 PM (UTC))