Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnalyzedSession

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

Overview

Represents an analyzed session for a monitored agent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AnalyzedSession

Returns a new instance of GoogleCloudAiplatformV1beta1AnalyzedSession.



8400
8401
8402
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8400

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

Instance Attribute Details

#agent_display_nameString

Output only. The human-readable display name of the MonitoredAgent that owns this session. May be empty when the session's agent is not enrolled as a MonitoredAgent; the agent_resource_name is always present and can be used as a fallback identifier. Corresponds to the JSON property agentDisplayName

Returns:

  • (String)


8321
8322
8323
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8321

def agent_display_name
  @agent_display_name
end

#agent_resource_nameString

Output only. The resource name or identifier of the agent that ran this session. Matches AgentResource.agent on the corresponding MonitoredAgent, so the format depends on that agent's AgentResource.agent_type: * REASONING_ENGINE: projects/project/locations/location/reasoningEngines/ reasoning_engine`*CLOUD_RUN_SERVICE,GKE_WORKLOAD,GCE_INSTANCE: the resource name of the agent's runtime. *AGENT_TYPE_OTHER: a stable identifier for the agent. Corresponds to the JSON propertyagentResourceName`

Returns:

  • (String)


8332
8333
8334
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8332

def agent_resource_name
  @agent_resource_name
end

#agent_stateString

Output only. The current enablement state of the MonitoredAgent that owns this session (for example, ACTIVE, DISABLED, or ENABLING). Defaults to ENABLEMENT_STATE_UNSPECIFIED when the agent is not enrolled or its state is unknown. Corresponds to the JSON property agentState

Returns:

  • (String)


8340
8341
8342
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8340

def agent_state
  @agent_state
end

#agent_typeString

Output only. The runtime that the agent which ran this session is hosted on ( for example, CLOUD_RUN_SERVICE). AGENT_TYPE_UNSPECIFIED means the runtime is unknown to this service -- the agent is not enrolled as a MonitoredAgent, or was enrolled before its runtime was recorded. That is distinct from AGENT_TYPE_OTHER, which means the runtime is known and is not one of the enumerated Google Cloud runtimes. Corresponds to the JSON property agentType

Returns:

  • (String)


8350
8351
8352
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8350

def agent_type
  @agent_type
end

#assessmentGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Assessment

Contains the detailed assessment for an analyzed session. Corresponds to the JSON property assessment



8355
8356
8357
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8355

def assessment
  @assessment
end

#create_timeString

Output only. The creation time of the session. Corresponds to the JSON property createTime

Returns:

  • (String)


8360
8361
8362
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8360

def create_time
  @create_time
end

#latest_analyzed_timeString

Output only. The latest analyzed time of the session. Corresponds to the JSON property latestAnalyzedTime

Returns:

  • (String)


8365
8366
8367
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8365

def latest_analyzed_time
  @latest_analyzed_time
end

#locationString

Output only. The Google Cloud location (region) of the agent that ran this session (for example, us-central1). Empty when the agent is not enrolled or its location is unknown. Corresponds to the JSON property location

Returns:

  • (String)


8372
8373
8374
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8372

def location
  @location
end

#nameString

Identifier. The resource name of the AnalyzedSession. Corresponds to the JSON property name

Returns:

  • (String)


8377
8378
8379
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8377

def name
  @name
end

#session_idString

Output only. The session ID. Corresponds to the JSON property sessionId

Returns:

  • (String)


8382
8383
8384
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8382

def session_id
  @session_id
end

#session_stateString

Output only. The state of the session. Corresponds to the JSON property sessionState

Returns:

  • (String)


8387
8388
8389
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8387

def session_state
  @session_state
end

#severitiesHash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary>

Output only. Map of severity counts for listing analyzed sessions. The key is the string representation of Severity. Populated in BASIC view only. Corresponds to the JSON property severities



8393
8394
8395
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8393

def severities
  @severities
end

#user_idString

Output only. The user ID. Corresponds to the JSON property userId

Returns:

  • (String)


8398
8399
8400
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8398

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8405

def update!(**args)
  @agent_display_name = args[:agent_display_name] if args.key?(:agent_display_name)
  @agent_resource_name = args[:agent_resource_name] if args.key?(:agent_resource_name)
  @agent_state = args[:agent_state] if args.key?(:agent_state)
  @agent_type = args[:agent_type] if args.key?(:agent_type)
  @assessment = args[:assessment] if args.key?(:assessment)
  @create_time = args[:create_time] if args.key?(:create_time)
  @latest_analyzed_time = args[:latest_analyzed_time] if args.key?(:latest_analyzed_time)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @session_id = args[:session_id] if args.key?(:session_id)
  @session_state = args[:session_state] if args.key?(:session_state)
  @severities = args[:severities] if args.key?(:severities)
  @user_id = args[:user_id] if args.key?(:user_id)
end