Add metric to measure successful policy YAML annotations

We have implemented policy YAML annotation in this issue: #497774 (closed)

To understand the usage and measure adoption, we should add an internal event metric to track successful policy YAML annotations.

Following the internal event instrumentation guide, we should:

  1. Define an internal event for successful policy YAML annotations
  2. Track the event when annotations are successfully applied
  3. Include relevant context such as:
    • security_orchestration_policy_configuration_id
    • security_policy_management_project_id
    • operation type
    • user_id

This will provide better analytics and insights into policy YAML annotation usage compared to simple JSON logging.

Edited by Alan (Maciej) Paruszewski