api/v1/monitoring

Allows you to export monitoring data for system models or performance models to a CSV file, including for use in third-party applications or products.

Prerequisites

  • You must have a SAP Analytics Cloud tenant URL.

  • You must have a SAP Analytics Cloud user.

  • You must configure the OAuth 2.0 SAML Bearer Assertion Workflow (2-legged OAuth) to work with your application. For more information, see Setting Up Authentication.

  • Only users with administrator permissions can use this feature.

Make sure to visit the SAP Business Accelerator Hub to access the API specification and try out the functionality.

GET /v1/monitoring/<Model_ID>

Returns the statistics for the requested system model.

URL Parameters

  • Model_ID: The ID of the model that will be exported. The following models are supported:

    Model ID

    Model Name

    error

    ERROR_LOG

    license

    LICENSE

    licenseConcurrent

    CONCURRENT_LICENSE

    resource

    RESOURCE

    resourceRecentAccess

    RESOURCE_RECENT_ACCESS

    user

    SAC_USERS

    userAdoption

    USER_ADOPTION

    userLive

    LIVE_USERS

    userSession

    SESSION

    backend

    SAC_STATISTICS_MDS_QUERY_PERF

    client

    SAC_PERFORMANCE_E2E

    dataManagement

    DM_SCHEDULE

    planningVersion

    VERSION_STATISTICS_VIEW

    planningDataAction

    PLANNING_DATA_ACTIONS

    For example, https://<TENANT_URL>/api/v1/monitoring/client.

  • (Optional) csvName: The name of the CSV file that will be generated. If left unspecified, the file will be named monitoring.csv

    For example, https://<TENANT_URL>/api/v1/monitoring/client?csvName=MyMonitoringData.csv.

  • (Optional) pageSize: The number of entries on each page. The minimum number is 1, and the maximum is 100,000. By default, the page size is set to 100,000.

    For example, https://<TENANT_URL>/api/v1/monitoring/client?pageSize=100.

  • (Optional) pageIndex: The page number to be retrieved based on the specified page size. The minimum page index is 1. By default, the page index is 1.

    For example, https://<TENANT_URL>/api/v1/monitoring/client?pageIndex=10.

  • (Optional) sortKey: The column key that the log will be sorted by. This can be set to: type, fileName, description, userName, status, activity, or timestamp. By default the sort key is set to timestamp.

    For example, https://<TENANT_URL>/api/v1/monitoring/client?sortKey=status.

  • (Optional) sortDescending: Sets whether the log will be sorted in descending order. Set to FALSE to sort in ascending order.

    For example, https://<TENANT_URL>/api/v1/monitoring/client?sortDescending=TRUE.

  • (Optional) from: The starting date of a range that will be used to filter the log by the sortkey or first matched timestamp.

    For example, https://<TENANT_URL>/api/v1/monitoring/client?from=2024-10-28T10:09:29.879Z.

  • (optional) till: The end date of a range that will be used to filter the log by the sortkey or first matched timestamp.

    For example, https://<TENANT_URL>/api/v1/monitoring/client?till=2024-10-28T12:09:29.879Z.

Successful Response

HTTP Status Code

Returns

200

Successful operation

A CSV file containing monitoring data will be generated.

GET /v1/monitoring/performance/<Model_ID>

Returns the performance statistics for the requested performance model.

URL Parameters

  • Model_ID: The ID of the model that will be exported. The following models are supported:

    Model ID

    Model Name

    error

    ERROR_LOG

    license

    LICENSE

    licenseConcurrent

    CONCURRENT_LICENSE

    resource

    RESOURCE

    resourceRecentAccess

    RESOURCE_RECENT_ACCESS

    user

    SAC_USERS

    userAdoption

    USER_ADOPTION

    userLive

    LIVE_USERS

    userSession

    SESSION

    backend

    SAC_STATISTICS_MDS_QUERY_PERF

    client

    SAC_PERFORMANCE_E2E

    dataManagement

    DM_SCHEDULE

    planningVersion

    VERSION_STATISTICS_VIEW

    planningDataAction

    PLANNING_DATA_ACTIONS

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client.

  • (Optional) csvName: The name of the CSV file that will be generated. If left unspecified, the file will be named monitoring.csv

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client?csvName=MyPerformanceData.csv.

  • (Optional) pageSize: The number of entries on each page. The minimum number is 1, and the maximum is 100,000. By default, the page size is set to 100,000.

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client?pageSize=100.

  • (Optional) pageIndex: The page number to be retrieved based on the specified page size. The minimum page index is 1. By default, the page index is 1.

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client/?pageIndex=10.

  • (Optional) sortKey: The column key that the log will be sorted by. This can be set to: type, fileName, description, userName, status, activity, or timestamp. By default the sort key is set to timestamp.

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client?sortKey=status.

  • (Optional) sortDescending: Sets whether the log will be sorted in descending order. Set to FALSE to sort in ascending order.

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client?sortDescending=TRUE.

  • (Optional) from: The starting date of a range that will be used to filter the log by the sortkey or first matched timestamp.

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client?from=2024-10-28T10:09:29.879Z.

  • (optional) till: The end date of a range that will be used to filter the log by the sortkey or first matched timestamp.

    For example, https://<TENANT_URL>/api/v1/monitoring/performance/client?till=2024-10-28T12:09:29.879Z.

Successful Response

HTTP Status Code

Returns

200

Successful operation

A CSV file containing performance monitoring data will be generated.

Error Responses and Troubleshooting

HTTP Status Code

Reason

400

Bad request; please refer to documentation

There is a typo or mistake in your request. Check that the request syntax is correct.

403

User is not permitted to perform the requested operation

There was an authentication issue with the request. This may occur if the user is authenticated by the IdP but does not have a corresponding user in the SAP Analytics Cloud tenant.

To resolve this issue, ensure that a user exists in SAP Analytics Cloud. For more information, see Create Users.

500

A server error has occurred

The response body will be a JSON object with the following properties defined: status, code, and message. The information included with status, code, and message, may help you determine the cause of the server error.