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 new metric descriptor. User-created metric descriptors define custom metrics.
See: Stackdriver Monitoring API Reference for monitoring.projects.metricDescriptors.create
.
Synopsis
- type ProjectsMetricDescriptorsCreateResource = "v3" :> (Capture "name" Text :> ("metricDescriptors" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MetricDescriptor :> Post '[JSON] MetricDescriptor)))))))))
- projectsMetricDescriptorsCreate :: MetricDescriptor -> Text -> ProjectsMetricDescriptorsCreate
- data ProjectsMetricDescriptorsCreate
- pmdcXgafv :: Lens' ProjectsMetricDescriptorsCreate (Maybe Xgafv)
- pmdcUploadProtocol :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text)
- pmdcAccessToken :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text)
- pmdcUploadType :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text)
- pmdcPayload :: Lens' ProjectsMetricDescriptorsCreate MetricDescriptor
- pmdcName :: Lens' ProjectsMetricDescriptorsCreate Text
- pmdcCallback :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text)
REST Resource
type ProjectsMetricDescriptorsCreateResource = "v3" :> (Capture "name" Text :> ("metricDescriptors" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MetricDescriptor :> Post '[JSON] MetricDescriptor))))))))) Source #
A resource alias for monitoring.projects.metricDescriptors.create
method which the
ProjectsMetricDescriptorsCreate
request conforms to.
Creating a Request
projectsMetricDescriptorsCreate Source #
Creates a value of ProjectsMetricDescriptorsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsMetricDescriptorsCreate Source #
Creates a new metric descriptor. User-created metric descriptors define custom metrics.
See: projectsMetricDescriptorsCreate
smart constructor.
Instances
Request Lenses
pmdcUploadProtocol :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmdcAccessToken :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text) Source #
OAuth access token.
pmdcUploadType :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmdcPayload :: Lens' ProjectsMetricDescriptorsCreate MetricDescriptor Source #
Multipart request metadata.
pmdcName :: Lens' ProjectsMetricDescriptorsCreate Text Source #
The project on which to execute the request. The format is "projects/{project_id_or_number}".
pmdcCallback :: Lens' ProjectsMetricDescriptorsCreate (Maybe Text) Source #
JSONP