monitor: resource: Add timestamp support 53/273653/4
authorDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 8 Apr 2022 03:04:08 +0000 (12:04 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 13 Apr 2022 03:41:03 +0000 (03:41 +0000)
commita193fd0fb47a37e666c38f8eec46ebad594f5143
tree89fd21dcc1fa7b9b5c38fdbbb5de6f6469935432
parent71da9223e76231608dc614f0a46eeb56d0d7ef3d
monitor: resource: Add timestamp support

To provide timeline information of resource update, now provides
timestamp as start and end time of update. It is included in resource
json as "res_ts" with "start" and "end" object, and it also can be
retrieved with following new libpass function:
 - pass_resource_monitor_get_resource_timestamp()

Change-Id: Iad2cf8bb1d1100f4ded44ce5e19aeb119c65575e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
include/util/request.h
include/util/resource.h
lib/resource-monitor/resource-monitor.c
lib/resource-monitor/resource-monitor.h
src/monitor/request-handler.c
src/util/resource.c