get_app_usage_summary
async
¶
get_app_usage_summary(
app_id: AppId,
started_at: Timestamp,
ended_at: Timestamp,
scope: RequestScope,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = None,
group_by: Optional[UsageSummaryDimension] = None,
filter_by: Optional[UsageSummaryFilterBy] = None,
) -> GetAppUsageSummaryResponse
Returns usage for an app, grouped by metric (the default), user, or time.
Parameters:
-
app_id(AppId) –The ID of the app.
-
started_at(Timestamp) –Start of the reporting window.
-
ended_at(Timestamp) –End of the reporting window. Must be after startedAt, at most 720 hours after it, and not in the future.
-
group_by(Optional[UsageSummaryDimension], default:None) –The breakdown dimension. Defaults to METRIC when omitted.
-
filter_by(Optional[UsageSummaryFilterBy], default:None) –Filter constraints keyed by dimension. A filter dimension may differ from groupBy.
-
scope(RequestScope) –Required. The environment: live or sandbox.
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The referenced resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request failed input validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appmonetization/_services/async_app_monetization.py
1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 | |