Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
guid | The guid of the event. |
|
|
|
type | The type of the event. |
|
|
|
actor | The GUID of the actor. |
|
|
|
actor_type | The actor type. |
|
|
|
actor_name | The name of the actor. |
|
|
|
actee | The GUID of the actee. |
|
|
|
actee_type | The actee type. |
|
|
|
actee_name | The name of the actee. |
|
|
|
timestamp | The event creation time. |
|
|
|
metadata | The additional information about event. | {} |
|
|
space_guid | The guid of the associated space. |
|
|
|
organization_guid | The guid of the associated organization. |
|
|
Name | Description | Valid Values | Example Values |
---|---|---|---|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: timestamp, type, actee |
|
|
page | Page of results to fetch |
|
|
results-per-page | Number of results per page |
|
|
order-direction | Order of the results: asc (default) or desc |
|
|
inline-relations-depth | 0 - don't inline any relations and return URLs. Otherwise, inline to depth N. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNTc1NDEzNX0.OqRnJkpGpKVW4y8yqYP8MDzNdMEDuBGJhkGvHUkaFUs Host: example.org Cookie:
GET /v2/events?q=type:app.crash
q: type:app.crash
curl "https://api.[your-domain.com]/v2/events?q=type:app.crash" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNTc1NDEzNX0.OqRnJkpGpKVW4y8yqYP8MDzNdMEDuBGJhkGvHUkaFUs" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: f32a43ef-ae0b-478e-9810-e87643157334 Content-Length: 1009 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "80545923-c62f-4115-a33a-ac3d6e51b8f6", "url": "/v2/events/80545923-c62f-4115-a33a-ac3d6e51b8f6", "created_at": "2014-11-05T01:02:15+00:00", "updated_at": null }, "entity": { "type": "app.crash", "actor": "0eb858cb-cab9-41ec-90d8-c39eaebd0061", "actor_type": "app", "actor_name": "name-455", "actee": "0eb858cb-cab9-41ec-90d8-c39eaebd0061", "actee_type": "app", "actee_name": "name-455", "timestamp": "2014-11-05T01:02:15+00:00", "metadata": { "instance": 0, "index": 1, "exit_status": "1", "exit_description": "out of memory", "reason": "crashed" }, "space_guid": "7f735119-1e43-4788-b3ef-2f338d51d50f", "organization_guid": "4bd17163-be7a-4d35-a00d-f63b3f87cbf8" } } ] }