Class: Aws::Context::Types::TaskSummary

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-context/lib/aws-sdk-context/types.rb

Overview

Summary information about a task, as returned by ListTasks: its ID, ARN, agent context, type, status, description, timestamps, status reason code and message, and statistics. It omits the task's input configuration and outputs, which GetTask returns.

Constant Summary collapse

SENSITIVE =
[:description, :status_message]

Instance Attribute Summary collapse

Instance Attribute Details

#agent_context_id ⇒ String

The agent context's ID.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#arn ⇒ String

The Amazon Resource Name (ARN) of the task.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#created_at ⇒ Time

The date and time when the task was created.

Returns:

  • (Time)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#description ⇒ String

The description of the task, as given to StartTask.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#id ⇒ String

The ID of the task. Pass it as taskId to GetTask or CancelTask.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#statistics ⇒ Types::TaskStatistics

Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is COMPLETED, FAILED, or CANCELLED.



7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#status ⇒ String

The status of the task. A task moves from PENDING to IN_PROGRESS and ends COMPLETED, FAILED, or CANCELLED. After CancelTask, it is CANCELLING until it stops.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#status_message ⇒ String

The reason the task failed. Present only when status is FAILED.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#status_reason_code ⇒ String

The code for why the task failed. Present only when status is FAILED.

Valid values:

  • GRAPH_NOT_ACTIVE - The agent context was deleted, or was not yet available, while the task ran.

  • ONTOLOGY_INVALID - An ontology is missing, has no loadable source, or its source is unsafe or too large.

  • ONTOLOGY_IMPORT_UNAVAILABLE - An ontology couldn't be imported because of a temporary problem. Start a new task.

  • ONTOLOGY_ALREADY_IMPORTED - This ontology version is already imported into the agent context.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#type ⇒ String

The type of the task. It is set by the inputConfiguration member that the task was started with: IMPORT_DATA_DICTIONARY, IMPORT_VERIFIED_QUERIES, or IMPORT_ONTOLOGY.

Returns:

  • (String)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end

#updated_at ⇒ Time

The date and time when the task was last updated, such as when its status changed. Equal to createdAt until the task first changes.

Returns:

  • (Time)


7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 7224

class TaskSummary < Struct.new(
  :id,
  :arn,
  :agent_context_id,
  :type,
  :status,
  :description,
  :created_at,
  :updated_at,
  :status_reason_code,
  :status_message,
  :statistics)
  SENSITIVE = [:description, :status_message]
  include Aws::Structure
end