{ "info": { "name": "Dynatrace DIY", "_postman_id": "da231371-4e9a-0b79-98b1-390e07c2bb2b", "description": "", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Deployment Event", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "postman.setEnvironmentVariable(\"start-time\", (new Date().getTime())-300000);", "postman.setEnvironmentVariable(\"end-time\", new Date().getTime());", "" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Api-Token {API Token}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"start\": {{start-time}},\n \"end\": {{end-time}},\n \"eventType\": \"CUSTOM_DEPLOYMENT\",\n \"attachRules\": { \n \"tagRule\" : {\n \"meTypes\" : \"HOST\",\n \"tags\" : \"Group A\"\n }\n },\n \"deploymentName\":\"myDeploymentName\",\n \"deploymentVersion\":\"1.0\",\n \"deploymentProject\":\"myProject\",\n \"remediationAction\":\"http://revertMe\",\n \"ciBackLink\":\"http://myBacklink\",\n \"source\":\"CloudFoundry\",\n \"customProperties\":{\n \"CI Tool\": \"Jenkins\",\n \"Jenkins Build Number\": \"12321\",\n \"Git commit\": \"23422323233332\"\n }\n}" }, "url": { "raw": "https://{tenant}.live.dynatrace.com/api/v1/events/", "protocol": "https", "host": [ "{tenant}", "live", "dynatrace", "com" ], "path": [ "api", "v1", "events", "" ] }, "description": "" }, "response": [] } ] }