fetch_assets_summary
Retrieve a summary of assets for a given compliance assessment, including integration run ID, status, resource count, and check count, to track compliance status.
Instructions
Get assets summary for given assessment id
Args: - id (str): Assessment id
Returns: - integrationRunId (str): Asset id. - assessmentName (str): Name of the asset. - status (str): Name of the asset. - numberOfResources (str): Name of the asset. - numberOfChecks (str): Name of the asset. - dataStatus (str): Name of the asset. - createdAt (str): Name of the asset. - error (Optional[str]): An error message if any issues occurred during retrieval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planRunID | No | ||
| assessmentName | No | ||
| status | No | ||
| numberOfResources | No | ||
| numberOfChecks | No | ||
| dataStatus | No | ||
| createdAt | No | ||
| error | No |
Implementation Reference
- constants/constants.py:75-81 (helper)Constant URL_FETCH_ASSETS_SUMMARY = '/v1/plan-instances/integration-summary' used by fetch_assets_summary as the API endpoint.
# ASSETS URL_ASSETS = URL_PLANS + "?fields=basic&type=integration" URL_FETCH_RESOURCES = "/v1/plan-instances/fetch-resources" URL_FETCH_RESOURCE_TYPES = "/v1/plan-instances/fetch-resource-types" URL_FETCH_ASSETS_DETAIL_SUMMARY = "/v1/plan-instances/fetch-integration-detail-summary" URL_FETCH_ASSETS_SUMMARY = "/v1/plan-instances/integration-summary" URL_FETCH_CHECKS = "/v1/plan-instances/fetch-checks"