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 alerting policy.
See: Stackdriver Monitoring API Reference for monitoring.projects.alertPolicies.create
.
Synopsis
- type ProjectsAlertPoliciesCreateResource = "v3" :> (Capture "name" Text :> ("alertPolicies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AlertPolicy :> Post '[JSON] AlertPolicy)))))))))
- projectsAlertPoliciesCreate :: AlertPolicy -> Text -> ProjectsAlertPoliciesCreate
- data ProjectsAlertPoliciesCreate
- papcXgafv :: Lens' ProjectsAlertPoliciesCreate (Maybe Xgafv)
- papcUploadProtocol :: Lens' ProjectsAlertPoliciesCreate (Maybe Text)
- papcAccessToken :: Lens' ProjectsAlertPoliciesCreate (Maybe Text)
- papcUploadType :: Lens' ProjectsAlertPoliciesCreate (Maybe Text)
- papcPayload :: Lens' ProjectsAlertPoliciesCreate AlertPolicy
- papcName :: Lens' ProjectsAlertPoliciesCreate Text
- papcCallback :: Lens' ProjectsAlertPoliciesCreate (Maybe Text)
REST Resource
type ProjectsAlertPoliciesCreateResource = "v3" :> (Capture "name" Text :> ("alertPolicies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AlertPolicy :> Post '[JSON] AlertPolicy))))))))) Source #
A resource alias for monitoring.projects.alertPolicies.create
method which the
ProjectsAlertPoliciesCreate
request conforms to.
Creating a Request
projectsAlertPoliciesCreate Source #
Creates a value of ProjectsAlertPoliciesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAlertPoliciesCreate Source #
Creates a new alerting policy.
See: projectsAlertPoliciesCreate
smart constructor.
Instances
Request Lenses
papcUploadProtocol :: Lens' ProjectsAlertPoliciesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
papcAccessToken :: Lens' ProjectsAlertPoliciesCreate (Maybe Text) Source #
OAuth access token.
papcUploadType :: Lens' ProjectsAlertPoliciesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
papcPayload :: Lens' ProjectsAlertPoliciesCreate AlertPolicy Source #
Multipart request metadata.
papcName :: Lens' ProjectsAlertPoliciesCreate Text Source #
The project in which to create the alerting policy. The format is projects/[PROJECT_ID].Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form /alertPolicies/[POLICY_ID], identifying the policy in the container.
papcCallback :: Lens' ProjectsAlertPoliciesCreate (Maybe Text) Source #
JSONP