REST Resource: projects.locations.issueModels

Resource: IssueModel

The issue model resource.

JSON representation
{
  "name": string,
  "displayName": string,
  "createTime": string,
  "updateTime": string,
  "issueCount": string,
  "state": enum (State),
  "inputDataConfig": {
    object (InputDataConfig)
  },
  "trainingStats": {
    object (IssueModelLabelStats)
  },
  "modelType": enum (ModelType),
  "languageCode": string
}
Fields
name

string

Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issueModel}

displayName

string

The representative name for the issue model.

createTime

string (Timestamp format)

Output only. The time at which this issue model was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The most recent time at which the issue model was updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

issueCount

string (int64 format)

Output only. Number of issues in this issue model.

state

enum (State)

Output only. State of the model.

inputDataConfig

object (InputDataConfig)

Configs for the input data that used to create the issue model.

trainingStats

object (IssueModelLabelStats)

Output only. Immutable. The issue model's label statistics on its training data.

modelType

enum (ModelType)

Type of the model.

languageCode

string

Language of the model.

State

State of the model.

Enums
STATE_UNSPECIFIED Unspecified.
UNDEPLOYED Model is not deployed but is ready to deploy.
DEPLOYING Model is being deployed.
DEPLOYED Model is deployed and is ready to be used. A model can only be used in analysis if it's in this state.
UNDEPLOYING Model is being undeployed.
DELETING Model is being deleted.

InputDataConfig

Configs for the input data used to create the issue model.

JSON representation
{
  "medium": enum (Medium),
  "trainingConversationsCount": string,
  "filter": string
}
Fields
medium
(deprecated)

enum (Medium)

Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the medium field on filter.

trainingConversationsCount

string (int64 format)

Output only. Number of conversations used in training. Output only.

filter

string

A filter to reduce the conversations used for training the model to a specific subset.

IssueModelLabelStats

Aggregated statistics about an issue model.

JSON representation
{
  "analyzedConversationsCount": string,
  "unclassifiedConversationsCount": string,
  "issueStats": {
    string: {
      object (IssueStats)
    },
    ...
  }
}
Fields
analyzedConversationsCount

string (int64 format)

Number of conversations the issue model has analyzed at this point in time.

unclassifiedConversationsCount

string (int64 format)

Number of analyzed conversations for which no issue was applicable at this point in time.

issueStats

map (key: string, value: object (IssueStats))

Statistics on each issue. Key is the issue's resource name.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

IssueStats

Aggregated statistics about an issue.

JSON representation
{
  "issue": string,
  "labeledConversationsCount": string,
  "displayName": string
}
Fields
issue

string

Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issueModel}/issues/{issue}

labeledConversationsCount

string (int64 format)

Number of conversations attached to the issue at this point in time.

displayName

string

Display name of the issue.

ModelType

Type of the model.

Enums
MODEL_TYPE_UNSPECIFIED Unspecified model type.
TYPE_V1 Type V1.
TYPE_V2 Type V2.

Methods

calculateIssueModelStats

Gets an issue model's statistics.

create

Creates an issue model.

delete

Deletes an issue model.

deploy

Deploys an issue model.

export

Exports an issue model to the provided destination.

get

Gets an issue model.

import

Imports an issue model from a Cloud Storage bucket.

list

Lists issue models.

patch

Updates an issue model.

undeploy

Undeploys an issue model.