Home
New Relic
New Relic Sendevents Example
New Relic Sendevents Example
Analysis Analytics APM DevOps Infrastructure Monitoring Observability Performance Platform
New Relic Sendevents Example is an example object payload from New Relic, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
operationId method path summary requestExamples responseExamples
Example Payload
{
"operationId": "sendEvents",
"method": "POST",
"path": "/v1/accounts/{accountId}/events",
"summary": "New Relic Send Custom Events",
"requestExamples": [
{
"contentType": "application/json",
"example": [
{
"eventType": "PurchaseEvent",
"account": 3,
"amount": 259.54,
"success": true,
"userEmail": "test@example.com"
},
{
"eventType": "PageView",
"uri": "/some/page",
"referrer": "https://example.com",
"duration": 0.42
}
]
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"name": "Sendevents200Example",
"example": {
"success": true,
"uuid": "500123"
}
},
{
"status": "400",
"contentType": "application/json",
"name": "Sendevents400Example",
"example": {
"success": false,
"error": "example_string",
"errors": [
{
"error": "example_string",
"timestamp": "example_string"
}
]
}
},
{
"status": "403",
"contentType": "application/json",
"name": "Sendevents403Example",
"example": {
"success": false,
"error": "example_string",
"errors": [
{
"error": "example_string",
"timestamp": "example_string"
}
]
}
},
{
"status": "413",
"contentType": "application/json",
"name": "Sendevents413Example",
"example": {
"success": false,
"error": "example_string",
"errors": [
{
"error": "example_string",
"timestamp": "example_string"
}
]
}
},
{
"status": "429",
"contentType": "application/json",
"name": "Sendevents429Example",
"example": {
"success": false,
"error": "example_string",
"errors": [
{
"error": "example_string",
"timestamp": "example_string"
}
]
}
}
]
}