get_script_metrics
Retrieve detailed metrics for Google Apps Script projects, including data granularity and deployment-specific insights, to monitor and optimize script performance effectively.
Instructions
Get metrics data for Google Apps Script projects.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
access_token | Yes | OAuth access token for authorization. | |
deploymentId | Yes | The ID of the deployment to filter metrics. | |
fields | Yes | Selector specifying which fields to include in a partial response. | |
key | Yes | API key for the request. | |
metricsGranularity | Yes | The granularity of the metrics data. | |
oauth_token | Yes | OAuth 2.0 token for the current user. | |
prettyPrint | No | Whether to return the response with indentations and line breaks. | |
scriptId | Yes | The ID of the script project. |
Input Schema (JSON Schema)
{
"properties": {
"access_token": {
"description": "OAuth access token for authorization.",
"type": "string"
},
"deploymentId": {
"description": "The ID of the deployment to filter metrics.",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"key": {
"description": "API key for the request.",
"type": "string"
},
"metricsGranularity": {
"description": "The granularity of the metrics data.",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"prettyPrint": {
"description": "Whether to return the response with indentations and line breaks.",
"type": "boolean"
},
"scriptId": {
"description": "The ID of the script project.",
"type": "string"
}
},
"required": [
"scriptId",
"deploymentId",
"metricsGranularity",
"fields",
"key",
"access_token",
"oauth_token"
],
"type": "object"
}