Skip to content

Commit 9fc4b53

Browse files
committed
"timestamp" key value update
In the payload examples, the values for the timestamp attributes were "CURRENT_TIME". As per the description for timestamp key in "Required key-value pairs" section, I have updated it to sample epoch time in milliseconds.
1 parent 1c02b73 commit 9fc4b53

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/docs/data-apis/ingest-apis/metric-api/report-metrics-metric-api.mdx

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Follow this example to send your first metric data points to New Relic:
4040
"name":"memory.heap",
4141
"type":"gauge",
4242
"value":2.3,
43-
"timestamp":CURRENT_TIME,
43+
"timestamp":1704431659000,
4444
"attributes":{"host.name":"dev.server.com"}
4545
}]
4646
}]'
@@ -194,7 +194,7 @@ The JSON payload uses this structure:
194194
"name": "service.errors.all",
195195
"type": "count",
196196
"value": 15,
197-
"timestamp": CURRENT_TIME,
197+
"timestamp": 1707110059000,
198198
"interval.ms": 10000,
199199
"attributes": {
200200
"service.response.statuscode": "400",
@@ -206,7 +206,7 @@ The JSON payload uses this structure:
206206
"name": "service.memory",
207207
"type": "gauge",
208208
"value": 2.7,
209-
"timestamp": CURRENT_TIME,
209+
"timestamp": 1707110059000,
210210
"attributes": {
211211
"host.name": "dev.server.com",
212212
"app.name": "foo"
@@ -324,7 +324,7 @@ Each metric data point map in the `metrics` array uses the following key-value s
324324
"name": "cache.misses",
325325
"type": "count",
326326
"value": 15,
327-
"timestamp": CURRENT_TIME,
327+
"timestamp": 1709615659000,
328328
"interval.ms": 10000,
329329
"attributes": {
330330
"cache.name": "myCache",
@@ -335,7 +335,7 @@ Each metric data point map in the `metrics` array uses the following key-value s
335335
"name": "temperature",
336336
"type": "gauge",
337337
"value": 15,
338-
"timestamp": CURRENT_TIME,
338+
"timestamp": 1709615659000,
339339
"attributes": {
340340
"city": "Portland",
341341
"state": "Oregon"
@@ -351,7 +351,7 @@ Each metric data point map in the `metrics` array uses the following key-value s
351351
"max": 0.001708826
352352
},
353353
"interval.ms": 10000,
354-
"timestamp": CURRENT_TIME,
354+
"timestamp": 1709615659000,
355355
"attributes": {
356356
"host.name": "dev.server.com",
357357
"app.name": "foo"

0 commit comments

Comments
 (0)