/
CPS-2637 Realistic Public & Private Properties in K6 tests

CPS-2637 Realistic Public & Private Properties in K6 tests

References

 

Assumptions

Assumption

Notes

Sign-off

Assumption

Notes

Sign-off

1

Each instance will individually report the number of invocations.

 

 

2

Using the Counter metrics to report back.

 

 

3

Search conditions are concatenated with _ ( underscore )

 

 

4

If no condition is provided then the search condition is taken to be “NONE”

 

 

 

Issues & Decisions

Issue

Notes 

Decision

Issue

Notes 

Decision

1

Using the @Timed annotation directly on the controller layer methods.

NetworkCmProxyController

  • searchCmHandles

  • searchCmHandleIds

 This will just provide the number of invocations of the methods and no formal arguments are analyzed.

 

2

Using the @Timed annotation on individual service layer methods.

ParameterizedCmHandleQueryServiceImpl

  • queryCmHandleReferenceIds

  • queryCmHandleIdsForInventory

  • queryCmHandles

  • getAllCmHandles

  • queryCmHandlesByPrivateProperties

  • queryCmHandlesByPublicProperties

  • queryCmHandlesByTrustLevel

  • queryCmHandlesByDmiPlugin

 We will have metrics for method execution in the service method. But the information about the controller layer method will be lost.

 

3

Add custom code to the controller / service layer methods to add the counter dynamically.

Works. But custom code has to be part of the controller method logic.

 

4

Use AOP and Annotation based approach and write a separate logic that takes care of the metrics.

Works.

  • No extra code with the controller logic.

  • Annotation to just pass in the method name and AOP to see the method arguments to find out the search condition and report back.

 

Analysis

 

  • Output for #1


    image-20250224-145852.png



  • Output for #2


    image-20250224-151625.png



  • Output for #3 and #4