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.MetricDescriptors.Delete

Contents

Description

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

See: Stackdriver Monitoring API Reference for monitoring.projects.metricDescriptors.delete.

Synopsis

REST Resource

type ProjectsMetricDescriptorsDeleteResource = "v3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))) Source #

A resource alias for monitoring.projects.metricDescriptors.delete method which the ProjectsMetricDescriptorsDelete request conforms to.

Creating a Request

projectsMetricDescriptorsDelete Source #

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

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

data ProjectsMetricDescriptorsDelete Source #

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

See: projectsMetricDescriptorsDelete smart constructor.

Instances
Eq ProjectsMetricDescriptorsDelete Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

Data ProjectsMetricDescriptorsDelete Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

Methods

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

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

toConstr :: ProjectsMetricDescriptorsDelete -> Constr #

dataTypeOf :: ProjectsMetricDescriptorsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsMetricDescriptorsDelete Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

Generic ProjectsMetricDescriptorsDelete Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

Associated Types

type Rep ProjectsMetricDescriptorsDelete :: Type -> Type #

GoogleRequest ProjectsMetricDescriptorsDelete Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

type Rep ProjectsMetricDescriptorsDelete Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

type Rep ProjectsMetricDescriptorsDelete = D1 (MetaData "ProjectsMetricDescriptorsDelete" "Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete" "gogol-monitoring-0.4.0-2c26UZAXxP5IDqve62RFQh" False) (C1 (MetaCons "ProjectsMetricDescriptorsDelete'" PrefixI True) ((S1 (MetaSel (Just "_pmddXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pmddUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pmddAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_pmddUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pmddName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pmddCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsMetricDescriptorsDelete Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

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

Defined in Network.Google.Resource.Monitoring.Projects.MetricDescriptors.Delete

Request Lenses

pmddUploadProtocol :: Lens' ProjectsMetricDescriptorsDelete (Maybe Text) Source #

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

pmddUploadType :: Lens' ProjectsMetricDescriptorsDelete (Maybe Text) Source #

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

pmddName :: Lens' ProjectsMetricDescriptorsDelete Text Source #

The metric descriptor on which to execute the request. The format is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example of {metric_id} is: "custom.googleapis.com/my_test_metric".