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 a logs-based metric.
See: Stackdriver Logging API Reference for logging.projects.metrics.create
.
Synopsis
- type ProjectsMetricsCreateResource = "v2" :> (Capture "parent" Text :> ("metrics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogMetric :> Post '[JSON] LogMetric)))))))))
- projectsMetricsCreate :: Text -> LogMetric -> ProjectsMetricsCreate
- data ProjectsMetricsCreate
- pmcParent :: Lens' ProjectsMetricsCreate Text
- pmcXgafv :: Lens' ProjectsMetricsCreate (Maybe Xgafv)
- pmcUploadProtocol :: Lens' ProjectsMetricsCreate (Maybe Text)
- pmcAccessToken :: Lens' ProjectsMetricsCreate (Maybe Text)
- pmcUploadType :: Lens' ProjectsMetricsCreate (Maybe Text)
- pmcPayload :: Lens' ProjectsMetricsCreate LogMetric
- pmcCallback :: Lens' ProjectsMetricsCreate (Maybe Text)
REST Resource
type ProjectsMetricsCreateResource = "v2" :> (Capture "parent" Text :> ("metrics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogMetric :> Post '[JSON] LogMetric))))))))) Source #
A resource alias for logging.projects.metrics.create
method which the
ProjectsMetricsCreate
request conforms to.
Creating a Request
projectsMetricsCreate Source #
Creates a value of ProjectsMetricsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsMetricsCreate Source #
Creates a logs-based metric.
See: projectsMetricsCreate
smart constructor.
Instances
Request Lenses
pmcParent :: Lens' ProjectsMetricsCreate Text Source #
The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.
pmcUploadProtocol :: Lens' ProjectsMetricsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmcAccessToken :: Lens' ProjectsMetricsCreate (Maybe Text) Source #
OAuth access token.
pmcUploadType :: Lens' ProjectsMetricsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmcPayload :: Lens' ProjectsMetricsCreate LogMetric Source #
Multipart request metadata.
pmcCallback :: Lens' ProjectsMetricsCreate (Maybe Text) Source #
JSONP