gogol-monitoring-0.4.0: Google Stackdriver Monitoring SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

Contents

Description

Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via updateMask. Returns the updated alerting policy.

See: Stackdriver Monitoring API Reference for monitoring.projects.alertPolicies.patch.

Synopsis

REST Resource

type ProjectsAlertPoliciesPatchResource = "v3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AlertPolicy :> Patch '[JSON] AlertPolicy))))))))) Source #

A resource alias for monitoring.projects.alertPolicies.patch method which the ProjectsAlertPoliciesPatch request conforms to.

Creating a Request

projectsAlertPoliciesPatch Source #

Creates a value of ProjectsAlertPoliciesPatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsAlertPoliciesPatch Source #

Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via updateMask. Returns the updated alerting policy.

See: projectsAlertPoliciesPatch smart constructor.

Instances
Eq ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

Data ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsAlertPoliciesPatch -> c ProjectsAlertPoliciesPatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsAlertPoliciesPatch #

toConstr :: ProjectsAlertPoliciesPatch -> Constr #

dataTypeOf :: ProjectsAlertPoliciesPatch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsAlertPoliciesPatch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsAlertPoliciesPatch) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsAlertPoliciesPatch -> ProjectsAlertPoliciesPatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAlertPoliciesPatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAlertPoliciesPatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsAlertPoliciesPatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsAlertPoliciesPatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsAlertPoliciesPatch -> m ProjectsAlertPoliciesPatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAlertPoliciesPatch -> m ProjectsAlertPoliciesPatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAlertPoliciesPatch -> m ProjectsAlertPoliciesPatch #

Show ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

Generic ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

Associated Types

type Rep ProjectsAlertPoliciesPatch :: Type -> Type #

GoogleRequest ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

type Rep ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

type Rep ProjectsAlertPoliciesPatch = D1 (MetaData "ProjectsAlertPoliciesPatch" "Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch" "gogol-monitoring-0.4.0-2c26UZAXxP5IDqve62RFQh" False) (C1 (MetaCons "ProjectsAlertPoliciesPatch'" PrefixI True) (((S1 (MetaSel (Just "_pAppXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pAppUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pAppUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_pAppAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pAppUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pAppPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AlertPolicy)) :*: (S1 (MetaSel (Just "_pAppName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pAppCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

type Scopes ProjectsAlertPoliciesPatch = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/monitoring" ': ([] :: [Symbol]))
type Rs ProjectsAlertPoliciesPatch Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Patch

Request Lenses

pAppUploadProtocol :: Lens' ProjectsAlertPoliciesPatch (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pAppUpdateMask :: Lens' ProjectsAlertPoliciesPatch (Maybe GFieldMask) Source #

Optional. A list of alerting policy field names. If this field is not empty, each listed field in the existing alerting policy is set to the value of the corresponding field in the supplied policy (alert_policy), or to the field's default value if the field is not in the supplied alerting policy. Fields not listed retain their previous value.Examples of valid field masks include display_name, documentation, documentation.content, documentation.mime_type, user_labels, user_label.nameofkey, enabled, conditions, combiner, etc.If this field is empty, then the supplied alerting policy replaces the existing policy. It is the same as deleting the existing policy and adding the supplied policy, except for the following: The new policy will have the same [ALERT_POLICY_ID] as the former policy. This gives you continuity with the former policy in your notifications and incidents. Conditions in the new policy will keep their former [CONDITION_ID] if the supplied condition includes the name field with that [CONDITION_ID]. If the supplied condition omits the name field, then a new [CONDITION_ID] is created.

pAppUploadType :: Lens' ProjectsAlertPoliciesPatch (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pAppName :: Lens' ProjectsAlertPoliciesPatch Text Source #

Required if the policy exists. The resource name for this policy. The syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is created. When calling the alertPolicies.create method, do not include the name field in the alerting policy passed as part of the request.