public sealed class AgentResource : IMessage<AgentResource>, IEquatable<AgentResource>, IDeepCloneable<AgentResource>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1 API class AgentResource.
Defines the identity of an agent being monitored.
Implements
IMessageAgentResource, IEquatableAgentResource, IDeepCloneableAgentResource, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Constructors
AgentResource()
public AgentResource()AgentResource(AgentResource)
public AgentResource(AgentResource other)| Parameter | |
|---|---|
| Name | Description |
other |
AgentResource |
Properties
Agent
public string Agent { get; set; }Required. The resource name or identifier of the agent to monitor. The
format depends on agent_type:
REASONING_ENGINE://aiplatform.googleapis.com/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}CLOUD_RUN_SERVICE: the full resource name of the Cloud Run service,//run.googleapis.com/projects/{project}/locations/{location}/services/{service}GKE_WORKLOAD: the full resource name of the Google Kubernetes Engine cluster followed by the agent's OpenTelemetryservice.name,//container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/{service}. For a zonal cluster,zones/{zone}replaceslocations/{location}. Some names end ink8s/namespaces/{namespace}/apps/deployments/{deployment}instead of{service}.GCE_INSTANCE: the full resource name of the Compute Engine instance followed by the agent's OpenTelemetryservice.name,//compute.googleapis.com/projects/{project}/zones/{zone}/instances/{instance}/{service}, where{instance}is the numeric instance ID.AWSandAZURE: an identifier built from the agent's OpenTelemetry resource attributes, usually{platform}:{account}:{region}:{name}.{platform}is thecloud.platformvalue.{account}iscloud.account.id, or the ID of the Google Cloud project that receives the telemetry ifcloud.account.idisn't set.{region}iscloud.region.{name}isfaas.name, or the Kubernetes cluster name followed by/k8s/namespaces/{namespace}/apps/deployments/{deployment}or/{service}. For example,aws_lambda:123456789012:us-east-2:inventory-agent.AGENT_TYPE_OTHER: a stable identifier for the agent, such as the full resource name of its runtime or its OpenTelemetryservice.name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
AgentAsResourceName
public IResourceName AgentAsResourceName { get; set; }IResourceName-typed view over the Agent resource name property.
| Property Value | |
|---|---|
| Type | Description |
IResourceName |
|
AgentFramework
public AgentResource.Types.AgentFramework AgentFramework { get; set; }Optional. The framework used to build the agent, orthogonal to the runtime
agent_type.
| Property Value | |
|---|---|
| Type | Description |
AgentResourceTypesAgentFramework |
|
AgentType
public AgentResource.Types.AgentType AgentType { get; set; }Required. The runtime type of the agent.
| Property Value | |
|---|---|
| Type | Description |
AgentResourceTypesAgentType |
|
Location
public string Location { get; set; }Output only. The region of the agent resource: a Google Cloud location
(for example, us-central1), or for an AWS or AZURE agent, the region
in that cloud (for example, us-east-2).
| Property Value | |
|---|---|
| Type | Description |
string |
|