Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Get metrics data for scripts, such as number of executions and active users.
See: Apps Script API Reference for script.projects.getMetrics
.
Synopsis
- type ProjectsGetMetricsResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("metrics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "metricsGranularity" Text :> (QueryParam "metricsFilter.deploymentId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Metrics)))))))))))
- projectsGetMetrics :: Text -> ProjectsGetMetrics
- data ProjectsGetMetrics
- pgmXgafv :: Lens' ProjectsGetMetrics (Maybe Xgafv)
- pgmUploadProtocol :: Lens' ProjectsGetMetrics (Maybe Text)
- pgmAccessToken :: Lens' ProjectsGetMetrics (Maybe Text)
- pgmUploadType :: Lens' ProjectsGetMetrics (Maybe Text)
- pgmMetricsGranularity :: Lens' ProjectsGetMetrics (Maybe Text)
- pgmScriptId :: Lens' ProjectsGetMetrics Text
- pgmMetricsFilterDeploymentId :: Lens' ProjectsGetMetrics (Maybe Text)
- pgmCallback :: Lens' ProjectsGetMetrics (Maybe Text)
REST Resource
type ProjectsGetMetricsResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("metrics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "metricsGranularity" Text :> (QueryParam "metricsFilter.deploymentId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Metrics))))))))))) Source #
A resource alias for script.projects.getMetrics
method which the
ProjectsGetMetrics
request conforms to.
Creating a Request
Creates a value of ProjectsGetMetrics
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsGetMetrics Source #
Get metrics data for scripts, such as number of executions and active users.
See: projectsGetMetrics
smart constructor.
Instances
Request Lenses
pgmUploadProtocol :: Lens' ProjectsGetMetrics (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgmAccessToken :: Lens' ProjectsGetMetrics (Maybe Text) Source #
OAuth access token.
pgmUploadType :: Lens' ProjectsGetMetrics (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pgmMetricsGranularity :: Lens' ProjectsGetMetrics (Maybe Text) Source #
Required field indicating what granularity of metrics are returned.
pgmScriptId :: Lens' ProjectsGetMetrics Text Source #
Required field indicating the script to get metrics for.
pgmMetricsFilterDeploymentId :: Lens' ProjectsGetMetrics (Maybe Text) Source #
Optional field indicating a specific deployment to retrieve metrics from.
pgmCallback :: Lens' ProjectsGetMetrics (Maybe Text) Source #
JSONP