Destroys all existing events. Populates new usage events, one for each started app. All populated events will have a created_at value of current time. There is the potential race condition if apps are currently being started, stopped, or scaled. The seeded usage events will have the same guid as the app.
POST /v2/app_usage_events/destructively_purge_all_and_reseed_started_apps
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MiIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTJ9.DhvUS40eRoEnFi-fUO_R9AY4fI0br9l3wUnMD13CYEE Host: example.org Content-Type: application/json Cookie:
curl "https://api.[your-domain.com]/v2/app_usage_events/destructively_purge_all_and_reseed_started_apps" -d '' -X POST \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MiIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTJ9.DhvUS40eRoEnFi-fUO_R9AY4fI0br9l3wUnMD13CYEE" \ -H "Host: example.org" \ -H "Content-Type: application/json" \ -H "Cookie: "
204 No Content
X-VCAP-Request-ID: 550ec0ac-410d-4424-ba6c-19f2fbc13c0e X-Content-Type-Options: nosniff