Class: GetStream::Generated::Models::RuleBuilderCondition
- Defined in:
- lib/getstream_ruby/generated/models/rule_builder_condition.rb
Instance Attribute Summary collapse
-
#app_channel_count_params ⇒ AppChannelCountParameters
App_channel_count params: fires when the app creates at least threshold distinct channels within time_window.
-
#app_message_count_params ⇒ AppMessageCountParameters
App_message_count params: fires when the app sends at least threshold chat messages within time_window.
- #call_custom_property_params ⇒ CallCustomPropertyParameters
- #call_type_rule_params ⇒ CallTypeRuleParameters
- #call_violation_count_params ⇒ CallViolationCountParameters
- #channel_message_count_rule_params ⇒ ChannelMessageCountRuleParameters
- #closed_caption_rule_params ⇒ ClosedCaptionRuleParameters
- #confidence ⇒ Float
- #content_count_rule_params ⇒ ContentCountRuleParameters
- #content_country_code_params ⇒ ContentCountryCodeParameters
- #content_custom_property_count_params ⇒ ContentCustomPropertyCountParameters
- #content_custom_property_params ⇒ ContentCustomPropertyParameters
- #content_flag_count_rule_params ⇒ FlagCountRuleParameters
- #flood_identical_params ⇒ FloodIdenticalRuleParameters
- #flood_similar_params ⇒ FloodSimilarRuleParameters
- #image_content_params ⇒ ImageContentParameters
- #image_rule_params ⇒ ImageRuleParameters
-
#intent_rule_params ⇒ IntentRuleParameters
Intent_rule params: policy intent topic label and the minimum final score (1-100) that fires the condition.
- #ip_content_count_rule_params ⇒ IPContentCountRuleParameters
- #ip_flag_count_rule_params ⇒ IPFlagCountRuleParameters
- #keyframe_ocr_rule_params ⇒ KeyframeOCRRuleParameters
- #keyframe_rule_params ⇒ KeyframeRuleParameters
- #ocr_content_params ⇒ OCRContentParameters
- #text_content_params ⇒ TextContentParameters
- #text_rule_params ⇒ TextRuleParameters
- #type ⇒ String
- #user_channel_ban_count_params ⇒ UserChannelBanCountRuleParameters
- #user_channel_count_params ⇒ UserChannelCountRuleParameters
- #user_created_within_params ⇒ UserCreatedWithinParameters
- #user_custom_property_params ⇒ UserCustomPropertyParameters
- #user_flag_count_rule_params ⇒ FlagCountRuleParameters
- #user_identical_content_count_params ⇒ UserIdenticalContentCountParameters
- #user_identical_image_count_params ⇒ UserIdenticalImageCountParameters
- #user_reaction_count_params ⇒ UserReactionCountRuleParameters
- #user_role_params ⇒ UserRoleParameters
- #user_rule_params ⇒ UserRuleParameters
- #video_content_params ⇒ VideoContentParameters
- #video_rule_params ⇒ VideoRuleParameters
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ RuleBuilderCondition
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ RuleBuilderCondition
Initialize with attributes
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 128 def initialize(attributes = {}) super(attributes) @confidence = attributes.fetch(:confidence) { attributes.fetch('confidence', nil) } @type = attributes.fetch(:type) { attributes.fetch('type', nil) } @app_channel_count_params = attributes.fetch(:app_channel_count_params) { attributes.fetch('app_channel_count_params', nil) } @app_message_count_params = attributes.fetch(:app_message_count_params) { attributes.fetch('app_message_count_params', nil) } @call_custom_property_params = attributes.fetch(:call_custom_property_params) { attributes.fetch('call_custom_property_params', nil) } @call_type_rule_params = attributes.fetch(:call_type_rule_params) { attributes.fetch('call_type_rule_params', nil) } @call_violation_count_params = attributes.fetch(:call_violation_count_params) { attributes.fetch('call_violation_count_params', nil) } @channel_message_count_rule_params = attributes.fetch(:channel_message_count_rule_params) { attributes.fetch('channel_message_count_rule_params', nil) } @closed_caption_rule_params = attributes.fetch(:closed_caption_rule_params) { attributes.fetch('closed_caption_rule_params', nil) } @content_count_rule_params = attributes.fetch(:content_count_rule_params) { attributes.fetch('content_count_rule_params', nil) } @content_country_code_params = attributes.fetch(:content_country_code_params) { attributes.fetch('content_country_code_params', nil) } @content_custom_property_count_params = attributes.fetch(:content_custom_property_count_params) { attributes.fetch('content_custom_property_count_params', nil) } @content_custom_property_params = attributes.fetch(:content_custom_property_params) { attributes.fetch('content_custom_property_params', nil) } @content_flag_count_rule_params = attributes.fetch(:content_flag_count_rule_params) { attributes.fetch('content_flag_count_rule_params', nil) } @flood_identical_params = attributes.fetch(:flood_identical_params) { attributes.fetch('flood_identical_params', nil) } @flood_similar_params = attributes.fetch(:flood_similar_params) { attributes.fetch('flood_similar_params', nil) } @image_content_params = attributes.fetch(:image_content_params) { attributes.fetch('image_content_params', nil) } @image_rule_params = attributes.fetch(:image_rule_params) { attributes.fetch('image_rule_params', nil) } @intent_rule_params = attributes.fetch(:intent_rule_params) { attributes.fetch('intent_rule_params', nil) } @ip_content_count_rule_params = attributes.fetch(:ip_content_count_rule_params) { attributes.fetch('ip_content_count_rule_params', nil) } @ip_flag_count_rule_params = attributes.fetch(:ip_flag_count_rule_params) { attributes.fetch('ip_flag_count_rule_params', nil) } @keyframe_ocr_rule_params = attributes.fetch(:keyframe_ocr_rule_params) { attributes.fetch('keyframe_ocr_rule_params', nil) } @keyframe_rule_params = attributes.fetch(:keyframe_rule_params) { attributes.fetch('keyframe_rule_params', nil) } @ocr_content_params = attributes.fetch(:ocr_content_params) { attributes.fetch('ocr_content_params', nil) } @text_content_params = attributes.fetch(:text_content_params) { attributes.fetch('text_content_params', nil) } @text_rule_params = attributes.fetch(:text_rule_params) { attributes.fetch('text_rule_params', nil) } @user_channel_ban_count_params = attributes.fetch(:user_channel_ban_count_params) { attributes.fetch('user_channel_ban_count_params', nil) } @user_channel_count_params = attributes.fetch(:user_channel_count_params) { attributes.fetch('user_channel_count_params', nil) } @user_created_within_params = attributes.fetch(:user_created_within_params) { attributes.fetch('user_created_within_params', nil) } @user_custom_property_params = attributes.fetch(:user_custom_property_params) { attributes.fetch('user_custom_property_params', nil) } @user_flag_count_rule_params = attributes.fetch(:user_flag_count_rule_params) { attributes.fetch('user_flag_count_rule_params', nil) } @user_identical_content_count_params = attributes.fetch(:user_identical_content_count_params) { attributes.fetch('user_identical_content_count_params', nil) } @user_identical_image_count_params = attributes.fetch(:user_identical_image_count_params) { attributes.fetch('user_identical_image_count_params', nil) } @user_reaction_count_params = attributes.fetch(:user_reaction_count_params) { attributes.fetch('user_reaction_count_params', nil) } @user_role_params = attributes.fetch(:user_role_params) { attributes.fetch('user_role_params', nil) } @user_rule_params = attributes.fetch(:user_rule_params) { attributes.fetch('user_rule_params', nil) } @video_content_params = attributes.fetch(:video_content_params) { attributes.fetch('video_content_params', nil) } @video_rule_params = attributes.fetch(:video_rule_params) { attributes.fetch('video_rule_params', nil) } end |
Instance Attribute Details
#app_channel_count_params ⇒ AppChannelCountParameters
Returns app_channel_count params: fires when the app creates at least threshold distinct channels within time_window.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 20 def app_channel_count_params @app_channel_count_params end |
#app_message_count_params ⇒ AppMessageCountParameters
Returns app_message_count params: fires when the app sends at least threshold chat messages within time_window.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 23 def @app_message_count_params end |
#call_custom_property_params ⇒ CallCustomPropertyParameters
26 27 28 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 26 def call_custom_property_params @call_custom_property_params end |
#call_type_rule_params ⇒ CallTypeRuleParameters
29 30 31 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 29 def call_type_rule_params @call_type_rule_params end |
#call_violation_count_params ⇒ CallViolationCountParameters
32 33 34 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 32 def call_violation_count_params @call_violation_count_params end |
#channel_message_count_rule_params ⇒ ChannelMessageCountRuleParameters
35 36 37 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 35 def @channel_message_count_rule_params end |
#closed_caption_rule_params ⇒ ClosedCaptionRuleParameters
38 39 40 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 38 def closed_caption_rule_params @closed_caption_rule_params end |
#confidence ⇒ Float
14 15 16 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 14 def confidence @confidence end |
#content_count_rule_params ⇒ ContentCountRuleParameters
41 42 43 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 41 def content_count_rule_params @content_count_rule_params end |
#content_country_code_params ⇒ ContentCountryCodeParameters
44 45 46 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 44 def content_country_code_params @content_country_code_params end |
#content_custom_property_count_params ⇒ ContentCustomPropertyCountParameters
47 48 49 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 47 def content_custom_property_count_params @content_custom_property_count_params end |
#content_custom_property_params ⇒ ContentCustomPropertyParameters
50 51 52 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 50 def content_custom_property_params @content_custom_property_params end |
#content_flag_count_rule_params ⇒ FlagCountRuleParameters
53 54 55 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 53 def content_flag_count_rule_params @content_flag_count_rule_params end |
#flood_identical_params ⇒ FloodIdenticalRuleParameters
56 57 58 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 56 def flood_identical_params @flood_identical_params end |
#flood_similar_params ⇒ FloodSimilarRuleParameters
59 60 61 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 59 def flood_similar_params @flood_similar_params end |
#image_content_params ⇒ ImageContentParameters
62 63 64 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 62 def image_content_params @image_content_params end |
#image_rule_params ⇒ ImageRuleParameters
65 66 67 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 65 def image_rule_params @image_rule_params end |
#intent_rule_params ⇒ IntentRuleParameters
Returns intent_rule params: policy intent topic label and the minimum final score (1-100) that fires the condition.
68 69 70 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 68 def intent_rule_params @intent_rule_params end |
#ip_content_count_rule_params ⇒ IPContentCountRuleParameters
71 72 73 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 71 def ip_content_count_rule_params @ip_content_count_rule_params end |
#ip_flag_count_rule_params ⇒ IPFlagCountRuleParameters
74 75 76 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 74 def ip_flag_count_rule_params @ip_flag_count_rule_params end |
#keyframe_ocr_rule_params ⇒ KeyframeOCRRuleParameters
77 78 79 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 77 def keyframe_ocr_rule_params @keyframe_ocr_rule_params end |
#keyframe_rule_params ⇒ KeyframeRuleParameters
80 81 82 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 80 def keyframe_rule_params @keyframe_rule_params end |
#ocr_content_params ⇒ OCRContentParameters
83 84 85 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 83 def ocr_content_params @ocr_content_params end |
#text_content_params ⇒ TextContentParameters
86 87 88 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 86 def text_content_params @text_content_params end |
#text_rule_params ⇒ TextRuleParameters
89 90 91 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 89 def text_rule_params @text_rule_params end |
#type ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 17 def type @type end |
#user_channel_ban_count_params ⇒ UserChannelBanCountRuleParameters
92 93 94 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 92 def user_channel_ban_count_params @user_channel_ban_count_params end |
#user_channel_count_params ⇒ UserChannelCountRuleParameters
95 96 97 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 95 def user_channel_count_params @user_channel_count_params end |
#user_created_within_params ⇒ UserCreatedWithinParameters
98 99 100 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 98 def user_created_within_params @user_created_within_params end |
#user_custom_property_params ⇒ UserCustomPropertyParameters
101 102 103 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 101 def user_custom_property_params @user_custom_property_params end |
#user_flag_count_rule_params ⇒ FlagCountRuleParameters
104 105 106 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 104 def user_flag_count_rule_params @user_flag_count_rule_params end |
#user_identical_content_count_params ⇒ UserIdenticalContentCountParameters
107 108 109 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 107 def user_identical_content_count_params @user_identical_content_count_params end |
#user_identical_image_count_params ⇒ UserIdenticalImageCountParameters
110 111 112 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 110 def user_identical_image_count_params @user_identical_image_count_params end |
#user_reaction_count_params ⇒ UserReactionCountRuleParameters
113 114 115 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 113 def user_reaction_count_params @user_reaction_count_params end |
#user_role_params ⇒ UserRoleParameters
116 117 118 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 116 def user_role_params @user_role_params end |
#user_rule_params ⇒ UserRuleParameters
119 120 121 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 119 def user_rule_params @user_rule_params end |
#video_content_params ⇒ VideoContentParameters
122 123 124 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 122 def video_content_params @video_content_params end |
#video_rule_params ⇒ VideoRuleParameters
125 126 127 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 125 def video_rule_params @video_rule_params end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/getstream_ruby/generated/models/rule_builder_condition.rb', line 171 def self.json_field_mappings { confidence: 'confidence', type: 'type', app_channel_count_params: 'app_channel_count_params', app_message_count_params: 'app_message_count_params', call_custom_property_params: 'call_custom_property_params', call_type_rule_params: 'call_type_rule_params', call_violation_count_params: 'call_violation_count_params', channel_message_count_rule_params: 'channel_message_count_rule_params', closed_caption_rule_params: 'closed_caption_rule_params', content_count_rule_params: 'content_count_rule_params', content_country_code_params: 'content_country_code_params', content_custom_property_count_params: 'content_custom_property_count_params', content_custom_property_params: 'content_custom_property_params', content_flag_count_rule_params: 'content_flag_count_rule_params', flood_identical_params: 'flood_identical_params', flood_similar_params: 'flood_similar_params', image_content_params: 'image_content_params', image_rule_params: 'image_rule_params', intent_rule_params: 'intent_rule_params', ip_content_count_rule_params: 'ip_content_count_rule_params', ip_flag_count_rule_params: 'ip_flag_count_rule_params', keyframe_ocr_rule_params: 'keyframe_ocr_rule_params', keyframe_rule_params: 'keyframe_rule_params', ocr_content_params: 'ocr_content_params', text_content_params: 'text_content_params', text_rule_params: 'text_rule_params', user_channel_ban_count_params: 'user_channel_ban_count_params', user_channel_count_params: 'user_channel_count_params', user_created_within_params: 'user_created_within_params', user_custom_property_params: 'user_custom_property_params', user_flag_count_rule_params: 'user_flag_count_rule_params', user_identical_content_count_params: 'user_identical_content_count_params', user_identical_image_count_params: 'user_identical_image_count_params', user_reaction_count_params: 'user_reaction_count_params', user_role_params: 'user_role_params', user_rule_params: 'user_rule_params', video_content_params: 'video_content_params', video_rule_params: 'video_rule_params' } end |