Date
1 - 4 of 4
Better way to know CF push events.
rohit vyavahare
We want to listen to app push events from cloud foundry.
Right now we are listening to app create and update events, and on each update event we call CF for the app summary to get the version guid. If the version guid has changed from the previous time, then the app has been pushed. However, this process is expensive. Does anyone know of a better way to know an app push event? From version 238 I can see audit.app.package.upload, does that mean it is a push event ? |
|
Nicholas Calugar
Hi Rohit,
I'd like to understand more about your use-case. Maybe I can help clarify a few things and determine if there is a solution we can offer. 1. There actually isn't a concept of "push" on the server-side. It's purely a client-side concept that the CLI uses to wrap a number of API requests needed to run your application. This makes a push event difficult to pin down. 2. The version guid can change for a number of reasons besides the app being pushed, e.g. memory being change, ssh being enabled, etc. Can you tell us more about what you are looking for in terms of push events given those don't exactly line up with what happens on the platform? Thanks, Nick On Wed, Jul 20, 2016 at 3:24 PM, rohit vyavahare <rohit.vyavahare(a)gmail.com> wrote: We want to listen to app push events from cloud foundry. -- Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. |
|
rohit vyavahare
Hello Nicholas
Thank you for a reply. So our use case is : We are trying to determine when the user is updating his application again, it is not relevant for us if the code is changing or not, we just want to know that app code was pushed up Thanks Rohit |
|
Nicholas Calugar
Hi Rohit,
We don't currently have this, but we will have it for the V3 API. In V3, app bits are uploaded to a newly created app package, so we will have an event *audit.app.package.upload*, which you pointed out in your original email. The V3 is still experimental, but it is currently the number one priority for the CAPI team. You can try the V3 API in your version of Cloud Foundry, but we will eventually remove all apps pushed with the V3 API so we can properly migrate from V2 to V3. http://v3-apidocs.cloudfoundry.org/ Thanks, Nick On Thu, Jul 21, 2016 at 3:09 PM, rohit vyavahare <rohit.vyavahare(a)gmail.com> wrote: Hello Nicholas -- Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. |
|