get_script_metrics
Retrieve performance and usage metrics for Google Apps Script projects to monitor execution patterns and identify optimization opportunities.
Instructions
Get metrics data for Google Apps Script projects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptId | Yes | The ID of the script project. | |
| deploymentId | Yes | The ID of the deployment to filter metrics. | |
| metricsGranularity | Yes | The granularity of the metrics data. | |
| fields | Yes | Selector specifying which fields to include in a partial response. | |
| key | Yes | API key for the request. | |
| access_token | Yes | OAuth access token for authorization. | |
| oauth_token | Yes | OAuth 2.0 token for the current user. | |
| prettyPrint | No | Whether to return the response with indentations and line breaks. |