DevOpsAgentService / Client / get_account_usage

get_account_usage

DevOpsAgentService.Client.get_account_usage()

Retrieves monthly account usage metrics and limits for the AWS account.

See also: AWS API Documentation

Request Syntax

response = client.get_account_usage()
Return type:

dict

Returns:

Response Syntax

{
    'monthlyAccountInvestigationHours': {
        'limit': 123,
        'usage': 123.0
    },
    'monthlyAccountEvaluationHours': {
        'limit': 123,
        'usage': 123.0
    },
    'monthlyAccountSystemLearningHours': {
        'limit': 123,
        'usage': 123.0
    },
    'monthlyAccountOnDemandHours': {
        'limit': 123,
        'usage': 123.0
    },
    'usagePeriodStartTime': datetime(2015, 1, 1),
    'usagePeriodEndTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • monthlyAccountInvestigationHours (dict) –

      Monthly investigation hours usage and limit for an account

      • limit (integer) –

        Configured limit for this metric.

      • usage (float) –

        Current usage for this metric

    • monthlyAccountEvaluationHours (dict) –

      Monthly evaluation hours usage and limit for an account

      • limit (integer) –

        Configured limit for this metric.

      • usage (float) –

        Current usage for this metric

    • monthlyAccountSystemLearningHours (dict) –

      Monthly system learning hours usage and limit for an account

      • limit (integer) –

        Configured limit for this metric.

      • usage (float) –

        Current usage for this metric

    • monthlyAccountOnDemandHours (dict) –

      Monthly on-demand hours usage and limit for an account

      • limit (integer) –

        Configured limit for this metric.

      • usage (float) –

        Current usage for this metric

    • usagePeriodStartTime (datetime) –

      The start time of the usage tracking period

    • usagePeriodEndTime (datetime) –

      The end time of the usage tracking period

Exceptions

  • DevOpsAgentService.Client.exceptions.ValidationException

  • DevOpsAgentService.Client.exceptions.ContentSizeExceededException

  • DevOpsAgentService.Client.exceptions.ServiceQuotaExceededException

  • DevOpsAgentService.Client.exceptions.ConflictException

  • DevOpsAgentService.Client.exceptions.InternalServerException

  • DevOpsAgentService.Client.exceptions.AccessDeniedException

  • DevOpsAgentService.Client.exceptions.ResourceNotFoundException

  • DevOpsAgentService.Client.exceptions.ThrottlingException

  • DevOpsAgentService.Client.exceptions.InvalidParameterException