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 |
Retrieves a report which is a collection of properties / statistics for a set of objects.
See: Admin Reports API Reference for reports.entityUsageReports.get
.
Synopsis
- type EntityUsageReportsGetResource = "admin" :> ("reports" :> ("v1" :> ("usage" :> (Capture "entityType" Text :> (Capture "entityKey" Text :> ("dates" :> (Capture "date" Text :> (QueryParam "filters" Text :> (QueryParam "customerId" Text :> (QueryParam "parameters" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] UsageReports)))))))))))))
- entityUsageReportsGet :: Text -> Text -> Text -> EntityUsageReportsGet
- data EntityUsageReportsGet
- eurgEntityType :: Lens' EntityUsageReportsGet Text
- eurgFilters :: Lens' EntityUsageReportsGet (Maybe Text)
- eurgCustomerId :: Lens' EntityUsageReportsGet (Maybe Text)
- eurgDate :: Lens' EntityUsageReportsGet Text
- eurgEntityKey :: Lens' EntityUsageReportsGet Text
- eurgParameters :: Lens' EntityUsageReportsGet (Maybe Text)
- eurgPageToken :: Lens' EntityUsageReportsGet (Maybe Text)
- eurgMaxResults :: Lens' EntityUsageReportsGet (Maybe Word32)
REST Resource
type EntityUsageReportsGetResource = "admin" :> ("reports" :> ("v1" :> ("usage" :> (Capture "entityType" Text :> (Capture "entityKey" Text :> ("dates" :> (Capture "date" Text :> (QueryParam "filters" Text :> (QueryParam "customerId" Text :> (QueryParam "parameters" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] UsageReports))))))))))))) Source #
A resource alias for reports.entityUsageReports.get
method which the
EntityUsageReportsGet
request conforms to.
Creating a Request
entityUsageReportsGet Source #
Creates a value of EntityUsageReportsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EntityUsageReportsGet Source #
Retrieves a report which is a collection of properties / statistics for a set of objects.
See: entityUsageReportsGet
smart constructor.
Instances
Request Lenses
eurgEntityType :: Lens' EntityUsageReportsGet Text Source #
Type of object. Should be one of - gplus_communities.
eurgFilters :: Lens' EntityUsageReportsGet (Maybe Text) Source #
Represents the set of filters including parameter operator value.
eurgCustomerId :: Lens' EntityUsageReportsGet (Maybe Text) Source #
Represents the customer for which the data is to be fetched.
eurgDate :: Lens' EntityUsageReportsGet Text Source #
Represents the date in yyyy-mm-dd format for which the data is to be fetched.
eurgEntityKey :: Lens' EntityUsageReportsGet Text Source #
Represents the key of object for which the data should be filtered.
eurgParameters :: Lens' EntityUsageReportsGet (Maybe Text) Source #
Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
eurgPageToken :: Lens' EntityUsageReportsGet (Maybe Text) Source #
Token to specify next page.
eurgMaxResults :: Lens' EntityUsageReportsGet (Maybe Word32) Source #
Maximum number of results to return. Maximum allowed is 1000