Class: GetStream::Generated::Models::TeamUsageStats

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/team_usage_stats.rb

Overview

Usage statistics for a single team containing all 16 metrics

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ TeamUsageStats

Initialize with attributes



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 65

def initialize(attributes = {})
  super(attributes)
  @team = attributes.fetch(:team) { attributes.fetch('team', nil) }
  @concurrent_connections = attributes.fetch(:concurrent_connections) { attributes.fetch('concurrent_connections', nil) }
  @concurrent_users = attributes.fetch(:concurrent_users) { attributes.fetch('concurrent_users', nil) }
  @image_moderations_daily = attributes.fetch(:image_moderations_daily) { attributes.fetch('image_moderations_daily', nil) }
  @messages_daily = attributes.fetch(:messages_daily) { attributes.fetch('messages_daily', nil) }
  @messages_last_24_hours = attributes.fetch(:messages_last_24_hours) { attributes.fetch('messages_last_24_hours', nil) }
  @messages_last_30_days = attributes.fetch(:messages_last_30_days) { attributes.fetch('messages_last_30_days', nil) }
  @messages_month_to_date = attributes.fetch(:messages_month_to_date) { attributes.fetch('messages_month_to_date', nil) }
  @messages_total = attributes.fetch(:messages_total) { attributes.fetch('messages_total', nil) }
  @translations_daily = attributes.fetch(:translations_daily) { attributes.fetch('translations_daily', nil) }
  @users_daily = attributes.fetch(:users_daily) { attributes.fetch('users_daily', nil) }
  @users_engaged_last_30_days = attributes.fetch(:users_engaged_last_30_days) { attributes.fetch('users_engaged_last_30_days', nil) }
  @users_engaged_month_to_date = attributes.fetch(:users_engaged_month_to_date) { attributes.fetch('users_engaged_month_to_date', nil) }
  @users_last_24_hours = attributes.fetch(:users_last_24_hours) { attributes.fetch('users_last_24_hours', nil) }
  @users_last_30_days = attributes.fetch(:users_last_30_days) { attributes.fetch('users_last_30_days', nil) }
  @users_month_to_date = attributes.fetch(:users_month_to_date) { attributes.fetch('users_month_to_date', nil) }
  @users_total = attributes.fetch(:users_total) { attributes.fetch('users_total', nil) }
end

Instance Attribute Details

#concurrent_connections ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



17
18
19
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 17

def concurrent_connections
  @concurrent_connections
end

#concurrent_users ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



20
21
22
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 20

def concurrent_users
  @concurrent_users
end

#image_moderations_daily ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



23
24
25
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 23

def image_moderations_daily
  @image_moderations_daily
end

#messages_daily ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



26
27
28
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 26

def messages_daily
  @messages_daily
end

#messages_last_24_hours ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



29
30
31
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 29

def messages_last_24_hours
  @messages_last_24_hours
end

#messages_last_30_days ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



32
33
34
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 32

def messages_last_30_days
  @messages_last_30_days
end

#messages_month_to_date ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



35
36
37
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 35

def messages_month_to_date
  @messages_month_to_date
end

#messages_total ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



38
39
40
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 38

def messages_total
  @messages_total
end

#team ⇒ String

Returns Team identifier (empty string for users not assigned to any team).

Returns:

  • (String) —

    Team identifier (empty string for users not assigned to any team)



14
15
16
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 14

def team
  @team
end

#translations_daily ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



41
42
43
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 41

def translations_daily
  @translations_daily
end

#users_daily ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



44
45
46
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 44

def users_daily
  @users_daily
end

#users_engaged_last_30_days ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



47
48
49
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 47

def users_engaged_last_30_days
  @users_engaged_last_30_days
end

#users_engaged_month_to_date ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



50
51
52
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 50

def users_engaged_month_to_date
  @users_engaged_month_to_date
end

#users_last_24_hours ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



53
54
55
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 53

def users_last_24_hours
  @users_last_24_hours
end

#users_last_30_days ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



56
57
58
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 56

def users_last_30_days
  @users_last_30_days
end

#users_month_to_date ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



59
60
61
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 59

def users_month_to_date
  @users_month_to_date
end

#users_total ⇒ MetricStats

Returns Statistics for a single metric with optional daily breakdown.

Returns:

  • (MetricStats) —

    Statistics for a single metric with optional daily breakdown



62
63
64
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 62

def users_total
  @users_total
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/getstream_ruby/generated/models/team_usage_stats.rb', line 87

def self.json_field_mappings
  {
    team: 'team',
    concurrent_connections: 'concurrent_connections',
    concurrent_users: 'concurrent_users',
    image_moderations_daily: 'image_moderations_daily',
    messages_daily: 'messages_daily',
    messages_last_24_hours: 'messages_last_24_hours',
    messages_last_30_days: 'messages_last_30_days',
    messages_month_to_date: 'messages_month_to_date',
    messages_total: 'messages_total',
    translations_daily: 'translations_daily',
    users_daily: 'users_daily',
    users_engaged_last_30_days: 'users_engaged_last_30_days',
    users_engaged_month_to_date: 'users_engaged_month_to_date',
    users_last_24_hours: 'users_last_24_hours',
    users_last_30_days: 'users_last_30_days',
    users_month_to_date: 'users_month_to_date',
    users_total: 'users_total'
  }
end