List Loss Events Monitored by a KRI

Returns a paginated list of the loss events monitored by a KRI in the ERM solution.

 

URL

{RMUrl}/api/enterpriseriskmanagement/kris/<IDofKri>/events/[?[[&]$filter=<Filter>][[&]page=<Page>][[&]page_size=<PageSize>][[&]$orderby=<field1[desc],field2[desc]…fieldN[desc]>]]

 

REQUEST METHOD

GET

 

URL PARAMETERS

page: Number of the page to be displayed. Valid values: 1 to the maximum number of pages. If omitted, the value 1 is used. If the value is greater than the maximum number of pages, a blank list will be returned.

page_size: Number of items displayed per page. Valid values: 1 to 1,000. If omitted, the default value of 10 is used.

filter: Query based on the OData protocol syntax for configuring filters. The fields supported are listed below. See the examples to view the operations allowed.

orderby: Orders the instances listed on the page by field. To order by more than one field, use a comma between the field names. For descending order, add the word "desc" to each field. The supported fields are listed below.

 

FIELDS SUPPORTED BY FILTER

byte Id;

string Name;

double Value;

DateTime AccountingDate;

Guid LossEventResponsible/Id;

 

Note: For detailed information on filters as supported operators, which filters apply to which data types, and more examples, see Appendix 3: Filters.

 

REQUEST EXAMPLES

List loss events monitored by a KRI (by default, ten loss events are listed at a time):

{RMUrl}/api/enterpriseriskmanagement/kris/31/events

                                                          

Loss events monitored by a KRI 11 through 20 (second page):

{RMUrl}/api/enterpriseriskmanagement/kris/31/events?page=2

 

SUCCESS RESPONSE EXAMPLE

List of objects with infrmation on the loss events monitored by a KRI.

[

{

"Id":11259,"Deleted":false,"DateCreated":"\/Date(1482846315203-0200)\/","DateUpdated":"\/Date(1483537670653-0200)\/","Name":"Petrobras Bond","LossEventResponsible":{"Id":"c52fcf67-c07c-11e6-80ef-00155d000602","Caption":"[ERM] User 01"},"Value":567.0,"AccountingDate":"\/Date(1482192000000)\/","formula_ datetime":{"Status":"Ok","Value":"\/Date(1482199200000-0200)\/"},"formula_number":{"Status":"Ok","Value":567.0},"text_formula":{"Status":"Ok","Value":""},"formula_for_loss_event_co":{"Status":"Ok","Value":10.0},"Type":"Bonds","type_1__formula_datatime":{"Status":"Ok","Value":"\/Date(1482199200000-0200)\/"},"type_1__formula_number":{"Status":"Ok","Value":567.0},"type_1__formula_text":{"Status":"Ok","Value":"Petrobras Bond"}

},

{

"Id":11256,"Deleted":false,"DateCreated":"\/Date(1482409198657-0200)\/","DateUpdated":"\/Date(1483537670640-0200)\/","Name":"BRAS Court Decision","LossEventResponsible":{"Id":"385c1be5-831a-11e5-80d9-00155d000602","Caption":"[CG] ERM Manager"},"Value":567.0,"AccountingDate":"\/Date(1482364800000)\/","formula_datatime":{"Status":"Ok","Value":"\/Date(1482372000000-0200)\/"},"formula_number":{"Status":"Ok","Value":567.0},"formula_text":{"Status":"Ok","Value":""},"formula_for_loss_event_co":{"Status":"Ok","Value":10.0},"Type":"Court Loss","type_1__formula_datatime":{"Status":"Ok","Value":"\/Date(1482372000000-0200)\/"},"type_1__formula_number":{"Status":"Ok","Value":567.0},"type_1__formula_text":{"Status":"Ok","Value":"Court Decision"}

}

]