17 Oct 2023 04:47 PM
In our most recent Dynatrace App Developer Office Hours we got a question where I am following up now:
Is it possible to ingest business events via ActiveGate?
Solved! Go to Solution.
17 Oct 2023 04:54 PM
Yes, it is possible to ingest business events via an active gate. I have just verified it in one of my environments.
Steps:
Here just a business example I copy and pasted from help
Please note to adjust the URL from the snippet. Also I am ignoring the SSL check with --insecure parameter
curl --insecure --location --request POST 'https://activeGateIP or URL>:9999/e/<environment id>/api/v2/bizevents/ingest' \
--header 'Authorization: Bearer <bearer token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id":"2",
"paymentType":"paypal",
"plannedDeliveryDate":"01.01.2024",
"event.type":"com.bizevent.single",
"event.provider":"custom.curl",
"total":234,
"customer":{
"firstName":"John",
"lastName":"Doe"
},
"orderItemsProductIDs":[
"PR-102002002",
"QZ-123232"
]
}'
FYI @Nick-Montana
Best,
Sini
23 Oct 2023 02:26 AM
Thanks for the confirmation!