Resource: AssessmentRule
The CCAI Insights project wide assessment rule. This assessment rule will be applied to all conversations from the previous sampling cycle that match the sample rule defined in the assessment rule. One project can have multiple assessment rules.
| JSON representation |
|---|
{ "name": string, "createTime": string, "updateTime": string, "active": boolean, "sampleRule": { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the assessment rule. Format: projects/{project}/locations/{location}/assessmentRules/{assessmentRule} |
createTime |
Output only. The time at which this assessment rule was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The most recent time at which this assessment rule was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
active |
If true, apply this rule to conversations. Otherwise, this rule is inactive. |
sampleRule |
The sample rule for the assessment rule. |
scheduleInfo |
Schedule info for the assessment rule. |
satisfiesPzi |
Output only. Whether this resource is zone isolated. |
satisfiesPzs |
Output only. Whether this resource is zone separated. |
displayName |
Display Name of the assessment rule. |
SampleRule
Message for sampling conversations.
| JSON representation |
|---|
{ "dimension": string, "conversationFilter": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "samplePercentage": number, "sampleRow": string // End of mutually exclusive fields. } |
| Fields | |
|---|---|
dimension |
Optional. Group by dimension to sample the conversation. If no dimension is provided, the sampling will be applied to the project level. Current supported dimensions is 'qualityMetadata.agent_info.agent_id'. |
conversationFilter |
To specify the filter for the conversions that should apply this sample rule. An empty filter means this sample rule applies to all conversations. |
| Determines how the conversations are selected. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
samplePercentage |
Percentage of conversations that we should sample based on the dimension between [0, 100]. |
sampleRow |
Number of the conversations that we should sample based on the dimension. |
| End of mutually exclusive fields. | |
ScheduleInfo
Message for schedule info.
| JSON representation |
|---|
{ "startTime": string, "endTime": string, "schedule": string, "timeZone": string } |
| Fields | |
|---|---|
startTime |
Start time of the schedule. If not specified, will start as soon as the schedule is created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime |
End time of the schedule. If not specified, will keep scheduling new pipelines for execution util the schedule is no longer active or deleted. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
schedule |
The groc expression. Format: |
timeZone |
The timezone to use for the groc expression. If not specified, defaults to UTC. |
Methods |
|
|---|---|
|
Creates an assessment rule. |
|
Deletes an assessment rule. |
|
Get an assessment rule. |
|
Lists assessment rules. |
|
Updates an assessment rule. |