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 |
Create a MetricAssociation.
See: Stackdriver Monitoring API Reference for monitoring.projects.categories.metricAssociations.create
.
- type ProjectsCategoriesMetricAssociationsCreateResource = "v3" :> (Capture "parent" Text :> ("metricAssociations" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MetricAssociation :> Post '[JSON] MetricAssociation)))))))))))
- projectsCategoriesMetricAssociationsCreate :: Text -> MetricAssociation -> ProjectsCategoriesMetricAssociationsCreate
- data ProjectsCategoriesMetricAssociationsCreate
- pcmacParent :: Lens' ProjectsCategoriesMetricAssociationsCreate Text
- pcmacXgafv :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Xgafv)
- pcmacUploadProtocol :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
- pcmacPp :: Lens' ProjectsCategoriesMetricAssociationsCreate Bool
- pcmacAccessToken :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
- pcmacUploadType :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
- pcmacPayload :: Lens' ProjectsCategoriesMetricAssociationsCreate MetricAssociation
- pcmacBearerToken :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
- pcmacCallback :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text)
REST Resource
type ProjectsCategoriesMetricAssociationsCreateResource = "v3" :> (Capture "parent" Text :> ("metricAssociations" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MetricAssociation :> Post '[JSON] MetricAssociation))))))))))) Source #
A resource alias for monitoring.projects.categories.metricAssociations.create
method which the
ProjectsCategoriesMetricAssociationsCreate
request conforms to.
Creating a Request
projectsCategoriesMetricAssociationsCreate Source #
Creates a value of ProjectsCategoriesMetricAssociationsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsCategoriesMetricAssociationsCreate Source #
Create a MetricAssociation.
See: projectsCategoriesMetricAssociationsCreate
smart constructor.
Request Lenses
pcmacParent :: Lens' ProjectsCategoriesMetricAssociationsCreate Text Source #
Resource parent of the category to get. Resource parent form is projects/{project_id_or_number}/categories/{short_name}.
pcmacXgafv :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Xgafv) Source #
V1 error format.
pcmacUploadProtocol :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pcmacAccessToken :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text) Source #
OAuth access token.
pcmacUploadType :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pcmacPayload :: Lens' ProjectsCategoriesMetricAssociationsCreate MetricAssociation Source #
Multipart request metadata.
pcmacBearerToken :: Lens' ProjectsCategoriesMetricAssociationsCreate (Maybe Text) Source #
OAuth bearer token.