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 |
Gets a logs-based metric.
See: Stackdriver Logging API Reference for logging.projects.metrics.get
.
Synopsis
- type ProjectsMetricsGetResource = "v2" :> (Capture "metricName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] LogMetric)))))))
- projectsMetricsGet :: Text -> ProjectsMetricsGet
- data ProjectsMetricsGet
- pmgXgafv :: Lens' ProjectsMetricsGet (Maybe Xgafv)
- pmgUploadProtocol :: Lens' ProjectsMetricsGet (Maybe Text)
- pmgAccessToken :: Lens' ProjectsMetricsGet (Maybe Text)
- pmgMetricName :: Lens' ProjectsMetricsGet Text
- pmgUploadType :: Lens' ProjectsMetricsGet (Maybe Text)
- pmgCallback :: Lens' ProjectsMetricsGet (Maybe Text)
REST Resource
type ProjectsMetricsGetResource = "v2" :> (Capture "metricName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] LogMetric))))))) Source #
A resource alias for logging.projects.metrics.get
method which the
ProjectsMetricsGet
request conforms to.
Creating a Request
Creates a value of ProjectsMetricsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsMetricsGet Source #
Gets a logs-based metric.
See: projectsMetricsGet
smart constructor.
Instances
Request Lenses
pmgUploadProtocol :: Lens' ProjectsMetricsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmgAccessToken :: Lens' ProjectsMetricsGet (Maybe Text) Source #
OAuth access token.
pmgMetricName :: Lens' ProjectsMetricsGet Text Source #
The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
pmgUploadType :: Lens' ProjectsMetricsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmgCallback :: Lens' ProjectsMetricsGet (Maybe Text) Source #
JSONP