Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb

Overview

The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1AnalysisRule

Returns a new instance of GoogleCloudContactcenterinsightsV1AnalysisRule.



211
212
213
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 211

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#activeBoolean Also known as: active?

If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft. Corresponds to the JSON property active

Returns:

  • (Boolean)


168
169
170
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 168

def active
  @active
end

#analysis_percentageFloat

Percentage of conversations that we should apply this analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The original runtime_percentage & upload percentage will be replaced by defining filters on the conversation. Corresponds to the JSON property analysisPercentage

Returns:

  • (Float)


177
178
179
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 177

def analysis_percentage
  @analysis_percentage
end

#annotator_selectorGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnnotatorSelector

Selector of all available annotators and phrase matchers to run. Corresponds to the JSON property annotatorSelector



182
183
184
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 182

def annotator_selector
  @annotator_selector
end

#conversation_filterString

Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations. Corresponds to the JSON property conversationFilter

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 188

def conversation_filter
  @conversation_filter
end

#create_timeString

Output only. The time at which this analysis rule was created. Corresponds to the JSON property createTime

Returns:

  • (String)


193
194
195
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 193

def create_time
  @create_time
end

#display_nameString

Display Name of the analysis rule. Corresponds to the JSON property displayName

Returns:

  • (String)


198
199
200
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 198

def display_name
  @display_name
end

#nameString

Identifier. The resource name of the analysis rule. Format: projects/project/ locations/location/analysisRules/analysis_rule Corresponds to the JSON property name

Returns:

  • (String)


204
205
206
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 204

def name
  @name
end

#update_timeString

Output only. The most recent time at which this analysis rule was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


209
210
211
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 209

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



216
217
218
219
220
221
222
223
224
225
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 216

def update!(**args)
  @active = args[:active] if args.key?(:active)
  @analysis_percentage = args[:analysis_percentage] if args.key?(:analysis_percentage)
  @annotator_selector = args[:annotator_selector] if args.key?(:annotator_selector)
  @conversation_filter = args[:conversation_filter] if args.key?(:conversation_filter)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end