class PlatformAPI::TeamUsageMonthly

Usage for an enterprise team at a monthly resolution.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 3426
def initialize(client)
  @client = client
end

Public Instance Methods

info(team_id) click to toggle source

Retrieves usage for an enterprise team for a range of months. Start and end dates can be specified as query parameters using the date format, YYYY-MM format. For example, '/teams/example-team/usage/monthly?start=2019-01&end=2019-02' specifies usage in January and February for 2019. If no end date is specified, one month of usage is returned.

@param team_id: unique identifier of team

# File lib/platform-api/client.rb, line 3433
def info(team_id)
  @client.team_usage_monthly.info(team_id)
end