Class: PlatformAPI::TeamUsageDaily

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Usage for an enterprise team at a daily resolution.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ TeamUsageDaily

Returns a new instance of TeamUsageDaily.



3412
3413
3414
# File 'lib/platform-api/client.rb', line 3412

def initialize(client)
  @client = client
end

Instance Method Details

#info(team_id) ⇒ Object

Retrieves usage for an enterprise team for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/teams/example-team/usage/daily?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.

Parameters:

  • team_id:

    unique identifier of team



3419
3420
3421
# File 'lib/platform-api/client.rb', line 3419

def info(team_id)
  @client.team_usage_daily.info(team_id)
end