Class: GetStream::Generated::Models::QueryTeamUsageStatsRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::QueryTeamUsageStatsRequest
- Defined in:
- lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb
Overview
Request payload for querying team-level usage statistics from the warehouse database
Instance Attribute Summary collapse
-
#end_date ⇒ String
End date in YYYY-MM-DD format.
-
#limit ⇒ Integer
Maximum number of teams to return per page (default: 30, max: 30).
-
#month ⇒ String
Month in YYYY-MM format (e.g., ‘2026-01’).
-
#next ⇒ String
Cursor for pagination to fetch next page of teams.
-
#start_date ⇒ String
Start date in YYYY-MM-DD format.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ QueryTeamUsageStatsRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ QueryTeamUsageStatsRequest
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb', line 29 def initialize(attributes = {}) super(attributes) @end_date = attributes[:end_date] || attributes['end_date'] || nil @limit = attributes[:limit] || attributes['limit'] || nil @month = attributes[:month] || attributes['month'] || nil @next = attributes[:next] || attributes['next'] || nil @start_date = attributes[:start_date] || attributes['start_date'] || nil end |
Instance Attribute Details
#end_date ⇒ String
Returns End date in YYYY-MM-DD format. Used with start_date for custom date range. Returns daily breakdown.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb', line 14 def end_date @end_date end |
#limit ⇒ Integer
Returns Maximum number of teams to return per page (default: 30, max: 30).
17 18 19 |
# File 'lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb', line 17 def limit @limit end |
#month ⇒ String
Returns Month in YYYY-MM format (e.g., ‘2026-01’). Mutually exclusive with start_date/end_date. Returns aggregated monthly values.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb', line 20 def month @month end |
#next ⇒ String
Returns Cursor for pagination to fetch next page of teams.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb', line 23 def next @next end |
#start_date ⇒ String
Returns Start date in YYYY-MM-DD format. Used with end_date for custom date range. Returns daily breakdown.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb', line 26 def start_date @start_date end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb', line 39 def self.json_field_mappings { end_date: 'end_date', limit: 'limit', month: 'month', next: 'next', start_date: 'start_date' } end |