Publish CICD or SDK usage metrics
POST/usage-metrics
Publishes a usage payload to the usage SNS topic for CICD or SDK traffic. Requires header X-Source of cicd or sdk; other values are treated as invalid. usageMetricsFor must be cicd or sdk (exact case). There is no extra permission check. role_id is recorded in audit logs. This handler catches validation errors inside send_custom_app_usage_sns and returns HTTP 500 with GE-1008, not 400.
Request
Responses
- 200
- 400
- 500
SNS publish succeeded. Body is Message only.
Response Headers
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers
This POST path does not return 400 for IPV-1052. Invalid X-Source or usageMetricsFor is caught as Exception and mapped to 500 GE-1008.
Response Headers
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers
GE-1008 via EMF-1001. Body includes Details with the original exception text (including wrapped IPV-1052). Lambda handler catch uses the GET response builder.
Response Headers
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers