/AWS1/IF_SHI=>GETFINDINGMETRICS()¶
About GetFindingMetrics¶
Returns finding-lifecycle metrics for a membership over a date range.
Method Signature¶
METHODS /AWS1/IF_SHI~GETFINDINGMETRICS
IMPORTING
!IV_MEMBERSHIPID TYPE /AWS1/SHIMEMBERSHIPID OPTIONAL
!IV_STARTDATE TYPE /AWS1/SHITIMESTAMP OPTIONAL
!IV_ENDDATE TYPE /AWS1/SHITIMESTAMP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shigetfndgmetricsrsp
RAISING
/AWS1/CX_SHIACCESSDENIEDEX
/AWS1/CX_SHICONFLICTEXCEPTION
/AWS1/CX_SHIINTERNALSERVEREX
/AWS1/CX_SHIINVALIDTOKENEX
/AWS1/CX_SHIRESOURCENOTFOUNDEX
/AWS1/CX_SHISECINCIDENTRSPNO00
/AWS1/CX_SHISERVICEQUOTAEXCDEX
/AWS1/CX_SHITHROTTLINGEX
/AWS1/CX_SHIVALIDATIONEX
/AWS1/CX_SHICLIENTEXC
/AWS1/CX_SHISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_membershipid TYPE /AWS1/SHIMEMBERSHIPID /AWS1/SHIMEMBERSHIPID¶
The membership ID to retrieve metrics for.
iv_startdate TYPE /AWS1/SHITIMESTAMP /AWS1/SHITIMESTAMP¶
The start of the day-aligned UTC window, inclusive.
iv_enddate TYPE /AWS1/SHITIMESTAMP /AWS1/SHITIMESTAMP¶
The end of the day-aligned UTC window, inclusive.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_shigetfndgmetricsrsp /AWS1/CL_SHIGETFNDGMETRICSRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getfindingmetrics(
iv_enddate = '20150101000000.0000000'
iv_membershipid = |string|
iv_startdate = '20150101000000.0000000'
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_long = lo_result->get_fndgsingestedsecurityhub( ).
lv_long = lo_result->get_fndgsingestedguardduty( ).
lv_long = lo_result->get_findingstriaged( ).
lv_long = lo_result->get_fndgstriagedfalsepos( ).
lv_long = lo_result->get_findingsinvestigated( ).
lv_long = lo_result->get_fndgsinvestfalsepositive( ).
lv_long = lo_result->get_findingsescalated( ).
lv_long = lo_result->get_fndgsescalatedfalsepos( ).
lv_long = lo_result->get_findingstruepositive( ).
lv_long = lo_result->get_findingsinvestinprogress( ).
lv_long = lo_result->get_fndgsescalatedinprogress( ).
ENDIF.
Retrieve finding-lifecycle metrics for a membership¶
Retrieve finding-lifecycle metrics for a membership
DATA(lo_result) = lo_client->getfindingmetrics(
iv_enddate = '20260818000000.0000000'
iv_membershipid = |m-a1b2c3d4e5f|
iv_startdate = '20260801000000.0000000'
).