{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Monitoring.Projects.TimeSeries.List
(
ProjectsTimeSeriesListResource
, projectsTimeSeriesList
, ProjectsTimeSeriesList
, ptslIntervalStartTime
, ptslXgafv
, ptslUploadProtocol
, ptslOrderBy
, ptslAccessToken
, ptslUploadType
, ptslAggregationPerSeriesAligner
, ptslName
, ptslAggregationGroupByFields
, ptslView
, ptslAggregationCrossSeriesReducer
, ptslFilter
, ptslAggregationAlignmentPeriod
, ptslPageToken
, ptslIntervalEndTime
, ptslPageSize
, ptslCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsTimeSeriesListResource =
"v3" :>
Capture "name" Text :>
"timeSeries" :>
QueryParam "interval.startTime" DateTime' :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "aggregation.perSeriesAligner" Text :>
QueryParams "aggregation.groupByFields" Text :>
QueryParam "view" Text :>
QueryParam "aggregation.crossSeriesReducer" Text :>
QueryParam "filter" Text :>
QueryParam "aggregation.alignmentPeriod"
GDuration
:>
QueryParam "pageToken" Text :>
QueryParam "interval.endTime" DateTime' :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListTimeSeriesResponse
data ProjectsTimeSeriesList = ProjectsTimeSeriesList'
{ _ptslIntervalStartTime :: !(Maybe DateTime')
, _ptslXgafv :: !(Maybe Xgafv)
, _ptslUploadProtocol :: !(Maybe Text)
, _ptslOrderBy :: !(Maybe Text)
, _ptslAccessToken :: !(Maybe Text)
, _ptslUploadType :: !(Maybe Text)
, _ptslAggregationPerSeriesAligner :: !(Maybe Text)
, _ptslName :: !Text
, _ptslAggregationGroupByFields :: !(Maybe [Text])
, _ptslView :: !(Maybe Text)
, _ptslAggregationCrossSeriesReducer :: !(Maybe Text)
, _ptslFilter :: !(Maybe Text)
, _ptslAggregationAlignmentPeriod :: !(Maybe GDuration)
, _ptslPageToken :: !(Maybe Text)
, _ptslIntervalEndTime :: !(Maybe DateTime')
, _ptslPageSize :: !(Maybe (Textual Int32))
, _ptslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTimeSeriesList
:: Text
-> ProjectsTimeSeriesList
projectsTimeSeriesList pPtslName_ =
ProjectsTimeSeriesList'
{ _ptslIntervalStartTime = Nothing
, _ptslXgafv = Nothing
, _ptslUploadProtocol = Nothing
, _ptslOrderBy = Nothing
, _ptslAccessToken = Nothing
, _ptslUploadType = Nothing
, _ptslAggregationPerSeriesAligner = Nothing
, _ptslName = pPtslName_
, _ptslAggregationGroupByFields = Nothing
, _ptslView = Nothing
, _ptslAggregationCrossSeriesReducer = Nothing
, _ptslFilter = Nothing
, _ptslAggregationAlignmentPeriod = Nothing
, _ptslPageToken = Nothing
, _ptslIntervalEndTime = Nothing
, _ptslPageSize = Nothing
, _ptslCallback = Nothing
}
ptslIntervalStartTime :: Lens' ProjectsTimeSeriesList (Maybe UTCTime)
ptslIntervalStartTime
= lens _ptslIntervalStartTime
(\ s a -> s{_ptslIntervalStartTime = a})
. mapping _DateTime
ptslXgafv :: Lens' ProjectsTimeSeriesList (Maybe Xgafv)
ptslXgafv
= lens _ptslXgafv (\ s a -> s{_ptslXgafv = a})
ptslUploadProtocol :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslUploadProtocol
= lens _ptslUploadProtocol
(\ s a -> s{_ptslUploadProtocol = a})
ptslOrderBy :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslOrderBy
= lens _ptslOrderBy (\ s a -> s{_ptslOrderBy = a})
ptslAccessToken :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslAccessToken
= lens _ptslAccessToken
(\ s a -> s{_ptslAccessToken = a})
ptslUploadType :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslUploadType
= lens _ptslUploadType
(\ s a -> s{_ptslUploadType = a})
ptslAggregationPerSeriesAligner :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslAggregationPerSeriesAligner
= lens _ptslAggregationPerSeriesAligner
(\ s a -> s{_ptslAggregationPerSeriesAligner = a})
ptslName :: Lens' ProjectsTimeSeriesList Text
ptslName = lens _ptslName (\ s a -> s{_ptslName = a})
ptslAggregationGroupByFields :: Lens' ProjectsTimeSeriesList [Text]
ptslAggregationGroupByFields
= lens _ptslAggregationGroupByFields
(\ s a -> s{_ptslAggregationGroupByFields = a})
. _Default
. _Coerce
ptslView :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslView = lens _ptslView (\ s a -> s{_ptslView = a})
ptslAggregationCrossSeriesReducer :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslAggregationCrossSeriesReducer
= lens _ptslAggregationCrossSeriesReducer
(\ s a -> s{_ptslAggregationCrossSeriesReducer = a})
ptslFilter :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslFilter
= lens _ptslFilter (\ s a -> s{_ptslFilter = a})
ptslAggregationAlignmentPeriod :: Lens' ProjectsTimeSeriesList (Maybe Scientific)
ptslAggregationAlignmentPeriod
= lens _ptslAggregationAlignmentPeriod
(\ s a -> s{_ptslAggregationAlignmentPeriod = a})
. mapping _GDuration
ptslPageToken :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslPageToken
= lens _ptslPageToken
(\ s a -> s{_ptslPageToken = a})
ptslIntervalEndTime :: Lens' ProjectsTimeSeriesList (Maybe UTCTime)
ptslIntervalEndTime
= lens _ptslIntervalEndTime
(\ s a -> s{_ptslIntervalEndTime = a})
. mapping _DateTime
ptslPageSize :: Lens' ProjectsTimeSeriesList (Maybe Int32)
ptslPageSize
= lens _ptslPageSize (\ s a -> s{_ptslPageSize = a})
. mapping _Coerce
ptslCallback :: Lens' ProjectsTimeSeriesList (Maybe Text)
ptslCallback
= lens _ptslCallback (\ s a -> s{_ptslCallback = a})
instance GoogleRequest ProjectsTimeSeriesList where
type Rs ProjectsTimeSeriesList =
ListTimeSeriesResponse
type Scopes ProjectsTimeSeriesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"]
requestClient ProjectsTimeSeriesList'{..}
= go _ptslName _ptslIntervalStartTime _ptslXgafv
_ptslUploadProtocol
_ptslOrderBy
_ptslAccessToken
_ptslUploadType
_ptslAggregationPerSeriesAligner
(_ptslAggregationGroupByFields ^. _Default)
_ptslView
_ptslAggregationCrossSeriesReducer
_ptslFilter
_ptslAggregationAlignmentPeriod
_ptslPageToken
_ptslIntervalEndTime
_ptslPageSize
_ptslCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy :: Proxy ProjectsTimeSeriesListResource)
mempty