Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
initialisation of metrics added (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKonings committed Jan 29, 2021
1 parent ca98677 commit 2c86c9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/zamp_collector/zcl_amp_c_transactional_rfcs.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ CLASS zcl_amp_c_transactional_rfcs IMPLEMENTATION.

DATA status TYPE string.

metrics_current_run = zcl_amp_collector_utils=>initialize_metrics( metrics_last_run = metrics_last_run ).

SELECT
COUNT(*) AS count,
arfcstate AS status
Expand All @@ -30,7 +32,8 @@ CLASS zcl_amp_c_transactional_rfcs IMPLEMENTATION.

status = <rfc>-status.

metrics_current_run = VALUE #( BASE metrics_current_run ( metric_key = status metric_value = <rfc>-count ) ).
DATA(metric) = VALUE zif_amp_collector=>metric( metric_key = status metric_value = <rfc>-count ).
COLLECT metric INTO metrics_current_run.

ENDLOOP.

Expand Down

0 comments on commit 2c86c9e

Please sign in to comment.