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 |
Creates or updates a logs-based metric.
See: Stackdriver Logging API Reference for logging.projects.metrics.update
.
Synopsis
- type ProjectsMetricsUpdateResource = "v2" :> (Capture "metricName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogMetric :> Put '[JSON] LogMetric))))))))
- projectsMetricsUpdate :: Text -> LogMetric -> ProjectsMetricsUpdate
- data ProjectsMetricsUpdate
- pmuXgafv :: Lens' ProjectsMetricsUpdate (Maybe Xgafv)
- pmuUploadProtocol :: Lens' ProjectsMetricsUpdate (Maybe Text)
- pmuAccessToken :: Lens' ProjectsMetricsUpdate (Maybe Text)
- pmuMetricName :: Lens' ProjectsMetricsUpdate Text
- pmuUploadType :: Lens' ProjectsMetricsUpdate (Maybe Text)
- pmuPayload :: Lens' ProjectsMetricsUpdate LogMetric
- pmuCallback :: Lens' ProjectsMetricsUpdate (Maybe Text)
REST Resource
type ProjectsMetricsUpdateResource = "v2" :> (Capture "metricName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogMetric :> Put '[JSON] LogMetric)))))))) Source #
A resource alias for logging.projects.metrics.update
method which the
ProjectsMetricsUpdate
request conforms to.
Creating a Request
projectsMetricsUpdate Source #
Creates a value of ProjectsMetricsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsMetricsUpdate Source #
Creates or updates a logs-based metric.
See: projectsMetricsUpdate
smart constructor.
Instances
Request Lenses
pmuUploadProtocol :: Lens' ProjectsMetricsUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmuAccessToken :: Lens' ProjectsMetricsUpdate (Maybe Text) Source #
OAuth access token.
pmuMetricName :: Lens' ProjectsMetricsUpdate Text Source #
The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.
pmuUploadType :: Lens' ProjectsMetricsUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmuPayload :: Lens' ProjectsMetricsUpdate LogMetric Source #
Multipart request metadata.
pmuCallback :: Lens' ProjectsMetricsUpdate (Maybe Text) Source #
JSONP