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 single metric descriptor. This method does not require a Stackdriver account.
See: Stackdriver Monitoring API Reference for monitoring.projects.metricDescriptors.get
.
Synopsis
- type ProjectsMetricDescriptorsGetResource = "v3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MetricDescriptor)))))))
- projectsMetricDescriptorsGet :: Text -> ProjectsMetricDescriptorsGet
- data ProjectsMetricDescriptorsGet
- pmdgXgafv :: Lens' ProjectsMetricDescriptorsGet (Maybe Xgafv)
- pmdgUploadProtocol :: Lens' ProjectsMetricDescriptorsGet (Maybe Text)
- pmdgAccessToken :: Lens' ProjectsMetricDescriptorsGet (Maybe Text)
- pmdgUploadType :: Lens' ProjectsMetricDescriptorsGet (Maybe Text)
- pmdgName :: Lens' ProjectsMetricDescriptorsGet Text
- pmdgCallback :: Lens' ProjectsMetricDescriptorsGet (Maybe Text)
REST Resource
type ProjectsMetricDescriptorsGetResource = "v3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MetricDescriptor))))))) Source #
A resource alias for monitoring.projects.metricDescriptors.get
method which the
ProjectsMetricDescriptorsGet
request conforms to.
Creating a Request
projectsMetricDescriptorsGet Source #
Creates a value of ProjectsMetricDescriptorsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsMetricDescriptorsGet Source #
Gets a single metric descriptor. This method does not require a Stackdriver account.
See: projectsMetricDescriptorsGet
smart constructor.
Instances
Request Lenses
pmdgUploadProtocol :: Lens' ProjectsMetricDescriptorsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmdgAccessToken :: Lens' ProjectsMetricDescriptorsGet (Maybe Text) Source #
OAuth access token.
pmdgUploadType :: Lens' ProjectsMetricDescriptorsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmdgName :: Lens' ProjectsMetricDescriptorsGet Text Source #
The metric descriptor on which to execute the request. The format is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example value of {metric_id} is "compute.googleapis.com/instance/disk/read_bytes_count".
pmdgCallback :: Lens' ProjectsMetricDescriptorsGet (Maybe Text) Source #
JSONP