google-cloud-ai_platform-v1 1.50.0 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +8 -10
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/client.rb +1972 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/operations.rb +851 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/paths.rb +132 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/rest/client.rb +1840 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/rest/operations.rb +4481 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/rest/service_stub.rb +939 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/agent_anomaly_detection_service.rb +56 -0
- data/lib/google/cloud/ai_platform/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/rest.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1.rb +3 -2
- data/lib/google/cloud/aiplatform/v1/agent_anomaly_detection_service_pb.rb +73 -0
- data/lib/google/cloud/aiplatform/v1/agent_anomaly_detection_service_services_pb.rb +86 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +2 -1
- data/proto_docs/google/cloud/aiplatform/v1/agent_anomaly_detection_service.rb +1009 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +87 -10
- metadata +13 -1
|
@@ -0,0 +1,1009 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AIPlatform
|
|
23
|
+
module V1
|
|
24
|
+
# Represents an Agent Anomaly Detection Scope.
|
|
25
|
+
# @!attribute [rw] name
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Identifier. The resource name of the AgentAnomalyDetectionScope.
|
|
28
|
+
# Format:
|
|
29
|
+
# `projects/{project}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}`
|
|
30
|
+
# @!attribute [rw] display_name
|
|
31
|
+
# @return [::String]
|
|
32
|
+
# Optional. User-provided display name of the AgentAnomalyDetectionScope.
|
|
33
|
+
# @!attribute [rw] log_buckets
|
|
34
|
+
# @return [::Array<::String>]
|
|
35
|
+
# Required. Customer-owned Cloud Logging bucket resource names attached to
|
|
36
|
+
# this scope. Specify exactly one bucket, in the same project as this scope.
|
|
37
|
+
# Format: `projects/{project}/locations/{location}/buckets/{bucket}`.
|
|
38
|
+
# @!attribute [rw] observability_buckets
|
|
39
|
+
# @return [::Array<::String>]
|
|
40
|
+
# Required. Customer-owned Cloud Observability datasets attached to this
|
|
41
|
+
# scope. Each value is the resource name of a dataset in an Observability
|
|
42
|
+
# bucket, such as the `Spans` dataset in the `_Trace` bucket. Specify
|
|
43
|
+
# exactly one dataset, in the same project as this scope.
|
|
44
|
+
# Format:
|
|
45
|
+
# `projects/{project}/locations/{location}/buckets/{bucket}/datasets/{dataset}`.
|
|
46
|
+
# @!attribute [rw] auto_enroll
|
|
47
|
+
# @return [::Boolean]
|
|
48
|
+
# Optional. When `true`, newly discovered agents that share log and
|
|
49
|
+
# observability buckets with this scope are automatically enrolled as
|
|
50
|
+
# `ACTIVE` MonitoredAgents, up to the project's monitored agent quota. When
|
|
51
|
+
# `false`, newly discovered agents are added as `DISABLED` MonitoredAgents,
|
|
52
|
+
# and you must enable them explicitly through MonitoredAgent operations.
|
|
53
|
+
# @!attribute [r] state
|
|
54
|
+
# @return [::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionScope::State]
|
|
55
|
+
# Output only. The lifecycle state of the scope.
|
|
56
|
+
# @!attribute [rw] encryption_spec
|
|
57
|
+
# @return [::Google::Cloud::AIPlatform::V1::EncryptionSpec]
|
|
58
|
+
# Optional. Immutable. Specifies the customer-managed encryption key spec for
|
|
59
|
+
# a Scope. If set, this Scope and all sub-resources will be secured by this
|
|
60
|
+
# key.
|
|
61
|
+
#
|
|
62
|
+
# The key is immutable after the Scope is created and must be a multi-region
|
|
63
|
+
# (`us` or `eu`) key in the same region as the Scope.
|
|
64
|
+
class AgentAnomalyDetectionScope
|
|
65
|
+
include ::Google::Protobuf::MessageExts
|
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
67
|
+
|
|
68
|
+
# The lifecycle state of an AgentAnomalyDetectionScope.
|
|
69
|
+
module State
|
|
70
|
+
# The default value. This value is unused.
|
|
71
|
+
STATE_UNSPECIFIED = 0
|
|
72
|
+
|
|
73
|
+
# The scope is being created and is not yet usable.
|
|
74
|
+
CREATING = 1
|
|
75
|
+
|
|
76
|
+
# The scope is active and usable.
|
|
77
|
+
ACTIVE = 2
|
|
78
|
+
|
|
79
|
+
# The scope is being deleted.
|
|
80
|
+
DELETING = 3
|
|
81
|
+
|
|
82
|
+
# Creation or deletion failed. The scope is not usable and must be deleted
|
|
83
|
+
# before a new scope can be created in the same region.
|
|
84
|
+
FAILED = 4
|
|
85
|
+
|
|
86
|
+
# The scope is being updated.
|
|
87
|
+
UPDATING = 5
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Represents a monitored agent in a specific Location.
|
|
92
|
+
# @!attribute [rw] name
|
|
93
|
+
# @return [::String]
|
|
94
|
+
# Identifier. The resource name of the MonitoredAgent.
|
|
95
|
+
# @!attribute [rw] display_name
|
|
96
|
+
# @return [::String]
|
|
97
|
+
# Optional. The display name of the MonitoredAgent.
|
|
98
|
+
# @!attribute [rw] agent_resource
|
|
99
|
+
# @return [::Google::Cloud::AIPlatform::V1::AgentResource]
|
|
100
|
+
# Required. The configuration for the agent being monitored.
|
|
101
|
+
# @!attribute [r] state
|
|
102
|
+
# @return [::Google::Cloud::AIPlatform::V1::MonitoredAgent::EnablementState]
|
|
103
|
+
# Output only. The current state of the agent's enablement.
|
|
104
|
+
# @!attribute [r] status_message
|
|
105
|
+
# @return [::String]
|
|
106
|
+
# Output only. A brief message explaining the current state.
|
|
107
|
+
# @!attribute [r] create_time
|
|
108
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
109
|
+
# Output only. The time the MonitoredAgent was created.
|
|
110
|
+
# @!attribute [r] update_time
|
|
111
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
112
|
+
# Output only. The time the MonitoredAgent was last updated.
|
|
113
|
+
class MonitoredAgent
|
|
114
|
+
include ::Google::Protobuf::MessageExts
|
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
116
|
+
|
|
117
|
+
# Represents the detailed status of the MonitoredAgent.
|
|
118
|
+
module EnablementState
|
|
119
|
+
# The default value. This value is used if the state is omitted.
|
|
120
|
+
ENABLEMENT_STATE_UNSPECIFIED = 0
|
|
121
|
+
|
|
122
|
+
# The agent is successfully enabled and active.
|
|
123
|
+
ACTIVE = 1
|
|
124
|
+
|
|
125
|
+
# The agent is in the process of being enabled.
|
|
126
|
+
ENABLING = 3
|
|
127
|
+
|
|
128
|
+
# The agent is disabled.
|
|
129
|
+
DISABLED = 6
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Defines the identity of an agent being monitored.
|
|
134
|
+
# @!attribute [rw] agent_type
|
|
135
|
+
# @return [::Google::Cloud::AIPlatform::V1::AgentResource::AgentType]
|
|
136
|
+
# Required. The runtime type of the agent.
|
|
137
|
+
# @!attribute [rw] agent
|
|
138
|
+
# @return [::String]
|
|
139
|
+
# Required. The resource name or identifier of the agent to monitor. The
|
|
140
|
+
# format depends on `agent_type`:
|
|
141
|
+
#
|
|
142
|
+
# * `REASONING_ENGINE`:
|
|
143
|
+
# `//aiplatform.googleapis.com/projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
|
|
144
|
+
# * `CLOUD_RUN_SERVICE`: the full resource name of the Cloud Run service,
|
|
145
|
+
# `//run.googleapis.com/projects/{project}/locations/{location}/services/{service}`
|
|
146
|
+
# * `GKE_WORKLOAD`: the full resource name of the Google Kubernetes Engine
|
|
147
|
+
# cluster followed by the agent's OpenTelemetry `service.name`,
|
|
148
|
+
# `//container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/{service}`.
|
|
149
|
+
# For a zonal cluster, `zones/{zone}` replaces `locations/{location}`.
|
|
150
|
+
# Some names end in
|
|
151
|
+
# `k8s/namespaces/{namespace}/apps/deployments/{deployment}` instead of
|
|
152
|
+
# `{service}`.
|
|
153
|
+
# * `GCE_INSTANCE`: the full resource name of the Compute Engine instance
|
|
154
|
+
# followed by the agent's OpenTelemetry `service.name`,
|
|
155
|
+
# `//compute.googleapis.com/projects/{project}/zones/{zone}/instances/{instance}/{service}`,
|
|
156
|
+
# where `{instance}` is the numeric instance ID.
|
|
157
|
+
# * `AWS` and `AZURE`: an identifier built from the agent's OpenTelemetry
|
|
158
|
+
# resource attributes, usually `{platform}:{account}:{region}:{name}`.
|
|
159
|
+
# `{platform}` is the `cloud.platform` value. `{account}` is
|
|
160
|
+
# `cloud.account.id`, or the ID of the Google Cloud project that receives
|
|
161
|
+
# the telemetry if `cloud.account.id` isn't set. `{region}` is
|
|
162
|
+
# `cloud.region`. `{name}` is `faas.name`, or the Kubernetes cluster name
|
|
163
|
+
# followed by `/k8s/namespaces/{namespace}/apps/deployments/{deployment}`
|
|
164
|
+
# or `/{service}`. For example,
|
|
165
|
+
# `aws_lambda:123456789012:us-east-2:inventory-agent`.
|
|
166
|
+
# * `AGENT_TYPE_OTHER`: a stable identifier for the agent, such as the full
|
|
167
|
+
# resource name of its runtime or its OpenTelemetry `service.name`.
|
|
168
|
+
# @!attribute [r] location
|
|
169
|
+
# @return [::String]
|
|
170
|
+
# Output only. The region of the agent resource: a Google Cloud location
|
|
171
|
+
# (for example, `us-central1`), or for an `AWS` or `AZURE` agent, the region
|
|
172
|
+
# in that cloud (for example, `us-east-2`).
|
|
173
|
+
# @!attribute [rw] agent_framework
|
|
174
|
+
# @return [::Google::Cloud::AIPlatform::V1::AgentResource::AgentFramework]
|
|
175
|
+
# Optional. The framework used to build the agent, orthogonal to the runtime
|
|
176
|
+
# `agent_type`.
|
|
177
|
+
class AgentResource
|
|
178
|
+
include ::Google::Protobuf::MessageExts
|
|
179
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
180
|
+
|
|
181
|
+
# The runtime type of an agent, describing where the agent is hosted. This is
|
|
182
|
+
# orthogonal to the framework the agent is built with; see `AgentFramework`.
|
|
183
|
+
module AgentType
|
|
184
|
+
# The default value, used when the runtime type is unspecified.
|
|
185
|
+
AGENT_TYPE_UNSPECIFIED = 0
|
|
186
|
+
|
|
187
|
+
# The agent runs on the Gemini Enterprise Agent Platform Agent Runtime
|
|
188
|
+
# (Reasoning Engine).
|
|
189
|
+
REASONING_ENGINE = 1
|
|
190
|
+
|
|
191
|
+
# The agent runs as a Google Cloud Run service.
|
|
192
|
+
CLOUD_RUN_SERVICE = 2
|
|
193
|
+
|
|
194
|
+
# The agent runs as a workload on Google Kubernetes Engine.
|
|
195
|
+
GKE_WORKLOAD = 3
|
|
196
|
+
|
|
197
|
+
# The agent runs on a Compute Engine instance.
|
|
198
|
+
GCE_INSTANCE = 4
|
|
199
|
+
|
|
200
|
+
# The agent runs on a runtime that no other value represents, such as a
|
|
201
|
+
# self-hosted or on-premises environment.
|
|
202
|
+
AGENT_TYPE_OTHER = 5
|
|
203
|
+
|
|
204
|
+
# The agent runs on Amazon Web Services (AWS), such as on AWS Lambda.
|
|
205
|
+
AWS = 8
|
|
206
|
+
|
|
207
|
+
# The agent runs on Microsoft Azure, such as on Azure Kubernetes Service
|
|
208
|
+
# (AKS) or as a Microsoft Foundry hosted agent.
|
|
209
|
+
AZURE = 9
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# The framework used to build an agent, such as the Agent Development Kit
|
|
213
|
+
# (ADK). This is orthogonal to the runtime the agent is hosted on; see
|
|
214
|
+
# `AgentType`.
|
|
215
|
+
module AgentFramework
|
|
216
|
+
# The default value, used when the framework is unspecified.
|
|
217
|
+
AGENT_FRAMEWORK_UNSPECIFIED = 0
|
|
218
|
+
|
|
219
|
+
# The agent is built with the Agent Development Kit (ADK).
|
|
220
|
+
ADK = 1
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Request message for
|
|
225
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#create_agent_anomaly_detection_scope AgentAnomalyDetectionService.CreateAgentAnomalyDetectionScope}.
|
|
226
|
+
# @!attribute [rw] parent
|
|
227
|
+
# @return [::String]
|
|
228
|
+
# Required. The resource name of the Location to create the
|
|
229
|
+
# AgentAnomalyDetectionScope in. Format:
|
|
230
|
+
# `projects/{project}/locations/{location}`
|
|
231
|
+
# @!attribute [rw] agent_anomaly_detection_scope
|
|
232
|
+
# @return [::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionScope]
|
|
233
|
+
# Required. The AgentAnomalyDetectionScope to create.
|
|
234
|
+
# @!attribute [rw] agent_anomaly_detection_scope_id
|
|
235
|
+
# @return [::String]
|
|
236
|
+
# Required. The ID to use for the AgentAnomalyDetectionScope, which will
|
|
237
|
+
# become the final component of the AgentAnomalyDetectionScope's resource
|
|
238
|
+
# name.
|
|
239
|
+
#
|
|
240
|
+
# This value should be 1-63 characters, and valid characters
|
|
241
|
+
# are /[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?/.
|
|
242
|
+
class CreateAgentAnomalyDetectionScopeRequest
|
|
243
|
+
include ::Google::Protobuf::MessageExts
|
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Metadata information for
|
|
248
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#create_agent_anomaly_detection_scope AgentAnomalyDetectionService.CreateAgentAnomalyDetectionScope}.
|
|
249
|
+
# @!attribute [rw] generic_metadata
|
|
250
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
|
251
|
+
# The operation generic information.
|
|
252
|
+
# @!attribute [rw] done_time
|
|
253
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
254
|
+
# The time the operation was completed.
|
|
255
|
+
class CreateAgentAnomalyDetectionScopeOperationMetadata
|
|
256
|
+
include ::Google::Protobuf::MessageExts
|
|
257
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Request message for
|
|
261
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#get_agent_anomaly_detection_scope AgentAnomalyDetectionService.GetAgentAnomalyDetectionScope}.
|
|
262
|
+
# @!attribute [rw] name
|
|
263
|
+
# @return [::String]
|
|
264
|
+
# Required. The name of the AgentAnomalyDetectionScope resource.
|
|
265
|
+
# Format:
|
|
266
|
+
# `projects/{project}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}`
|
|
267
|
+
class GetAgentAnomalyDetectionScopeRequest
|
|
268
|
+
include ::Google::Protobuf::MessageExts
|
|
269
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Request message for
|
|
273
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#delete_agent_anomaly_detection_scope AgentAnomalyDetectionService.DeleteAgentAnomalyDetectionScope}.
|
|
274
|
+
# @!attribute [rw] name
|
|
275
|
+
# @return [::String]
|
|
276
|
+
# Required. The name of the AgentAnomalyDetectionScope resource to be
|
|
277
|
+
# deleted. Format:
|
|
278
|
+
# `projects/{project}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}`
|
|
279
|
+
class DeleteAgentAnomalyDetectionScopeRequest
|
|
280
|
+
include ::Google::Protobuf::MessageExts
|
|
281
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Metadata information for
|
|
285
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#delete_agent_anomaly_detection_scope AgentAnomalyDetectionService.DeleteAgentAnomalyDetectionScope}.
|
|
286
|
+
# @!attribute [rw] generic_metadata
|
|
287
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
|
288
|
+
# The operation generic information.
|
|
289
|
+
# @!attribute [rw] done_time
|
|
290
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
291
|
+
# The time the operation was completed.
|
|
292
|
+
class DeleteAgentAnomalyDetectionScopeOperationMetadata
|
|
293
|
+
include ::Google::Protobuf::MessageExts
|
|
294
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Request message for
|
|
298
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#list_agent_anomaly_detection_scopes AgentAnomalyDetectionService.ListAgentAnomalyDetectionScopes}.
|
|
299
|
+
# @!attribute [rw] parent
|
|
300
|
+
# @return [::String]
|
|
301
|
+
# Required. The resource name of the Location to list the
|
|
302
|
+
# AgentAnomalyDetectionScopes from. Format:
|
|
303
|
+
# `projects/{project}/locations/{location}`
|
|
304
|
+
# @!attribute [rw] page_size
|
|
305
|
+
# @return [::Integer]
|
|
306
|
+
# Optional. The standard list page size. The maximum value is 100; values
|
|
307
|
+
# above 100 will be coerced to 100. If unspecified, at most 10
|
|
308
|
+
# AgentAnomalyDetectionScopes will be returned.
|
|
309
|
+
# @!attribute [rw] page_token
|
|
310
|
+
# @return [::String]
|
|
311
|
+
# Optional. The standard list page token.
|
|
312
|
+
class ListAgentAnomalyDetectionScopesRequest
|
|
313
|
+
include ::Google::Protobuf::MessageExts
|
|
314
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Response message for
|
|
318
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#list_agent_anomaly_detection_scopes AgentAnomalyDetectionService.ListAgentAnomalyDetectionScopes}.
|
|
319
|
+
# @!attribute [rw] agent_anomaly_detection_scopes
|
|
320
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionScope>]
|
|
321
|
+
# A list of AgentAnomalyDetectionScopes that matches the specified filter in
|
|
322
|
+
# the request.
|
|
323
|
+
# @!attribute [rw] next_page_token
|
|
324
|
+
# @return [::String]
|
|
325
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
326
|
+
# If this field is omitted, there are no subsequent pages.
|
|
327
|
+
class ListAgentAnomalyDetectionScopesResponse
|
|
328
|
+
include ::Google::Protobuf::MessageExts
|
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Request message for
|
|
333
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#get_monitored_agent AgentAnomalyDetectionService.GetMonitoredAgent}.
|
|
334
|
+
# @!attribute [rw] name
|
|
335
|
+
# @return [::String]
|
|
336
|
+
# Required. The name of the MonitoredAgent resource.
|
|
337
|
+
# Format:
|
|
338
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}`
|
|
339
|
+
class GetMonitoredAgentRequest
|
|
340
|
+
include ::Google::Protobuf::MessageExts
|
|
341
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Request message for
|
|
345
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#list_monitored_agents AgentAnomalyDetectionService.ListMonitoredAgents}.
|
|
346
|
+
# @!attribute [rw] parent
|
|
347
|
+
# @return [::String]
|
|
348
|
+
# Required. The resource name of the Location to list the
|
|
349
|
+
# MonitoredAgents from. Format:
|
|
350
|
+
# `projects/{project}/locations/{location}`
|
|
351
|
+
# @!attribute [rw] page_size
|
|
352
|
+
# @return [::Integer]
|
|
353
|
+
# Optional. The standard list page size. The maximum value is 100; values
|
|
354
|
+
# above 100 will be coerced to 100. If unspecified, at most 10
|
|
355
|
+
# MonitoredAgents will be returned.
|
|
356
|
+
# @!attribute [rw] page_token
|
|
357
|
+
# @return [::String]
|
|
358
|
+
# Optional. The standard list page token.
|
|
359
|
+
# @!attribute [rw] filter
|
|
360
|
+
# @return [::String]
|
|
361
|
+
# Optional. An AIP-160 filter, currently restricted to a single equality
|
|
362
|
+
# predicate on `state`. The value must be the exact, case-sensitive name of a
|
|
363
|
+
# `MonitoredAgent.EnablementState` value: `ACTIVE`, `DISABLED`, `ENABLING`,
|
|
364
|
+
# or `ENABLEMENT_STATE_UNSPECIFIED`. A blank or absent filter returns every
|
|
365
|
+
# MonitoredAgent in the parent regardless of state; any other value returns
|
|
366
|
+
# `INVALID_ARGUMENT`.
|
|
367
|
+
#
|
|
368
|
+
# Example:
|
|
369
|
+
#
|
|
370
|
+
# ```
|
|
371
|
+
# state = ACTIVE
|
|
372
|
+
# ```
|
|
373
|
+
class ListMonitoredAgentsRequest
|
|
374
|
+
include ::Google::Protobuf::MessageExts
|
|
375
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Response message for
|
|
379
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#list_monitored_agents AgentAnomalyDetectionService.ListMonitoredAgents}.
|
|
380
|
+
# @!attribute [rw] monitored_agents
|
|
381
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::MonitoredAgent>]
|
|
382
|
+
# A list of MonitoredAgents that matches the specified filter in
|
|
383
|
+
# the request.
|
|
384
|
+
# @!attribute [rw] next_page_token
|
|
385
|
+
# @return [::String]
|
|
386
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
387
|
+
# If this field is omitted, there are no subsequent pages.
|
|
388
|
+
# @!attribute [rw] total_size
|
|
389
|
+
# @return [::Integer]
|
|
390
|
+
# The total number of MonitoredAgents matching the request, after any
|
|
391
|
+
# `filter` is applied.
|
|
392
|
+
class ListMonitoredAgentsResponse
|
|
393
|
+
include ::Google::Protobuf::MessageExts
|
|
394
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Request message for
|
|
398
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#enable_monitored_agent AgentAnomalyDetectionService.EnableMonitoredAgent}.
|
|
399
|
+
# @!attribute [rw] name
|
|
400
|
+
# @return [::String]
|
|
401
|
+
# Required. The name of the MonitoredAgent resource to be enabled.
|
|
402
|
+
# Format:
|
|
403
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}`
|
|
404
|
+
class EnableMonitoredAgentRequest
|
|
405
|
+
include ::Google::Protobuf::MessageExts
|
|
406
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Metadata information for
|
|
410
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#enable_monitored_agent AgentAnomalyDetectionService.EnableMonitoredAgent}.
|
|
411
|
+
# @!attribute [rw] generic_metadata
|
|
412
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
|
413
|
+
# The operation generic information.
|
|
414
|
+
class EnableMonitoredAgentOperationMetadata
|
|
415
|
+
include ::Google::Protobuf::MessageExts
|
|
416
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Request message for
|
|
420
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#disable_monitored_agent AgentAnomalyDetectionService.DisableMonitoredAgent}.
|
|
421
|
+
# @!attribute [rw] name
|
|
422
|
+
# @return [::String]
|
|
423
|
+
# Required. The name of the MonitoredAgent resource to be disabled.
|
|
424
|
+
# Format:
|
|
425
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}`
|
|
426
|
+
class DisableMonitoredAgentRequest
|
|
427
|
+
include ::Google::Protobuf::MessageExts
|
|
428
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# Metadata information for
|
|
432
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#disable_monitored_agent AgentAnomalyDetectionService.DisableMonitoredAgent}.
|
|
433
|
+
# @!attribute [rw] generic_metadata
|
|
434
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
|
435
|
+
# The operation generic information.
|
|
436
|
+
class DisableMonitoredAgentOperationMetadata
|
|
437
|
+
include ::Google::Protobuf::MessageExts
|
|
438
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# Request message for
|
|
442
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#clear_training_data AgentAnomalyDetectionService.ClearTrainingData}.
|
|
443
|
+
# @!attribute [rw] name
|
|
444
|
+
# @return [::String]
|
|
445
|
+
# Required. The MonitoredAgent whose trained model artifacts to purge. Use
|
|
446
|
+
# the
|
|
447
|
+
# `-` wildcard agent segment to purge every MonitoredAgent in the scope.
|
|
448
|
+
# Format:
|
|
449
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}`
|
|
450
|
+
class ClearTrainingDataRequest
|
|
451
|
+
include ::Google::Protobuf::MessageExts
|
|
452
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Response message for
|
|
456
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#clear_training_data AgentAnomalyDetectionService.ClearTrainingData}.
|
|
457
|
+
# Intentionally empty; the purge either succeeds or the operation carries an
|
|
458
|
+
# error.
|
|
459
|
+
class ClearTrainingDataResponse
|
|
460
|
+
include ::Google::Protobuf::MessageExts
|
|
461
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# Metadata information for
|
|
465
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#clear_training_data AgentAnomalyDetectionService.ClearTrainingData}.
|
|
466
|
+
# @!attribute [rw] generic_metadata
|
|
467
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
|
468
|
+
# The operation generic information.
|
|
469
|
+
# @!attribute [rw] done_time
|
|
470
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
471
|
+
# The time the operation was completed.
|
|
472
|
+
class ClearTrainingDataOperationMetadata
|
|
473
|
+
include ::Google::Protobuf::MessageExts
|
|
474
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Contains the detailed assessment for an analyzed session.
|
|
478
|
+
# @!attribute [rw] detector_findings
|
|
479
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::Assessment::DetectorFinding>]
|
|
480
|
+
# The list of detector findings.
|
|
481
|
+
class Assessment
|
|
482
|
+
include ::Google::Protobuf::MessageExts
|
|
483
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
484
|
+
|
|
485
|
+
# The details of a detector's assessment within an analyzed session.
|
|
486
|
+
# @!attribute [rw] detector_id
|
|
487
|
+
# @return [::String]
|
|
488
|
+
# The detector ID.
|
|
489
|
+
# @!attribute [rw] display_name
|
|
490
|
+
# @return [::String]
|
|
491
|
+
# The detector display name.
|
|
492
|
+
# @!attribute [rw] severity
|
|
493
|
+
# @return [::Google::Cloud::AIPlatform::V1::Severity]
|
|
494
|
+
# The severity of the finding.
|
|
495
|
+
# @!attribute [rw] explanation
|
|
496
|
+
# @return [::String]
|
|
497
|
+
# The explanation of the finding.
|
|
498
|
+
# @!attribute [rw] probability
|
|
499
|
+
# @return [::Float]
|
|
500
|
+
# The probability that this finding is an anomaly, in the range [0.0, 1.0].
|
|
501
|
+
# @!attribute [rw] recommendations
|
|
502
|
+
# @return [::Array<::String>]
|
|
503
|
+
# The list of recommendations for this detector finding.
|
|
504
|
+
class DetectorFinding
|
|
505
|
+
include ::Google::Protobuf::MessageExts
|
|
506
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# Represents an analyzed session for a monitored agent.
|
|
511
|
+
# @!attribute [rw] name
|
|
512
|
+
# @return [::String]
|
|
513
|
+
# Identifier. The resource name of the AnalyzedSession.
|
|
514
|
+
# @!attribute [r] session_id
|
|
515
|
+
# @return [::String]
|
|
516
|
+
# Output only. The session ID.
|
|
517
|
+
# @!attribute [r] user_id
|
|
518
|
+
# @return [::String]
|
|
519
|
+
# Output only. The user ID.
|
|
520
|
+
# @!attribute [r] agent_resource_name
|
|
521
|
+
# @return [::String]
|
|
522
|
+
# Output only. The resource name or identifier of the agent that ran this
|
|
523
|
+
# session. Matches `AgentResource.agent` on the corresponding
|
|
524
|
+
# `MonitoredAgent`, so the format depends on that agent's
|
|
525
|
+
# `AgentResource.agent_type`. For the format of each agent type, see
|
|
526
|
+
# {::Google::Cloud::AIPlatform::V1::AgentResource#agent AgentResource.agent}.
|
|
527
|
+
# @!attribute [r] create_time
|
|
528
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
529
|
+
# Output only. The creation time of the session.
|
|
530
|
+
# @!attribute [r] latest_analyzed_time
|
|
531
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
532
|
+
# Output only. The latest analyzed time of the session.
|
|
533
|
+
# @!attribute [r] assessment
|
|
534
|
+
# @return [::Google::Cloud::AIPlatform::V1::Assessment]
|
|
535
|
+
# Output only. Overall security assessment. Populated only in FULL view.
|
|
536
|
+
# @!attribute [r] severities
|
|
537
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::AnalyzedSession::SeveritySummary}]
|
|
538
|
+
# Output only. Map of the detectors that flagged this session, grouped by
|
|
539
|
+
# severity. The key is the string representation of `Severity`. Populated
|
|
540
|
+
# only for flagged sessions, in both views. In
|
|
541
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#list_analyzed_sessions AgentAnomalyDetectionService.ListAnalyzedSessions}
|
|
542
|
+
# responses, the map holds only the session's highest severity.
|
|
543
|
+
# @!attribute [r] session_state
|
|
544
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnalyzedSession::SessionState]
|
|
545
|
+
# Output only. The state of the session.
|
|
546
|
+
# @!attribute [r] agent_display_name
|
|
547
|
+
# @return [::String]
|
|
548
|
+
# Output only. The human-readable display name of the MonitoredAgent that
|
|
549
|
+
# owns this session. May be empty when the session's agent is not enrolled
|
|
550
|
+
# as a MonitoredAgent; the `agent_resource_name` is always present and can
|
|
551
|
+
# be used as a fallback identifier.
|
|
552
|
+
# @!attribute [r] agent_state
|
|
553
|
+
# @return [::Google::Cloud::AIPlatform::V1::MonitoredAgent::EnablementState]
|
|
554
|
+
# Output only. The current enablement state of the MonitoredAgent that owns
|
|
555
|
+
# this session (for example, ACTIVE, DISABLED, or ENABLING). Defaults to
|
|
556
|
+
# ENABLEMENT_STATE_UNSPECIFIED when the agent is not enrolled or its state
|
|
557
|
+
# is unknown.
|
|
558
|
+
# @!attribute [r] location
|
|
559
|
+
# @return [::String]
|
|
560
|
+
# Output only. The region of the agent that ran this session, in the same
|
|
561
|
+
# form as `AgentResource.location` (for example, `us-central1`). Empty when
|
|
562
|
+
# the agent is not enrolled or its location is unknown.
|
|
563
|
+
# @!attribute [r] agent_type
|
|
564
|
+
# @return [::Google::Cloud::AIPlatform::V1::AgentResource::AgentType]
|
|
565
|
+
# Output only. The runtime that the agent which ran this session is hosted
|
|
566
|
+
# on (for example, `CLOUD_RUN_SERVICE`).
|
|
567
|
+
#
|
|
568
|
+
# `AGENT_TYPE_UNSPECIFIED` means the runtime is unknown to this service --
|
|
569
|
+
# the agent is not enrolled as a `MonitoredAgent`, or was enrolled before its
|
|
570
|
+
# runtime was recorded. That is distinct from `AGENT_TYPE_OTHER`, which means
|
|
571
|
+
# the runtime is known and is not one of the other enumerated runtimes.
|
|
572
|
+
class AnalyzedSession
|
|
573
|
+
include ::Google::Protobuf::MessageExts
|
|
574
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
575
|
+
|
|
576
|
+
# Breaks down anomalies by severity.
|
|
577
|
+
# @!attribute [rw] detector_ids
|
|
578
|
+
# @return [::Array<::String>]
|
|
579
|
+
# The list of detectors summaries for this severity level.
|
|
580
|
+
# @!attribute [rw] severity_level
|
|
581
|
+
# @return [::Google::Cloud::AIPlatform::V1::Severity]
|
|
582
|
+
# The severity level of the detector.
|
|
583
|
+
# @!attribute [r] sessions_count
|
|
584
|
+
# @return [::Integer]
|
|
585
|
+
# Output only. The number of distinct sessions whose maximum severity
|
|
586
|
+
# equals `severity_level`. Each session is counted in exactly one bucket
|
|
587
|
+
# (its highest severity).
|
|
588
|
+
#
|
|
589
|
+
# Scope depends on where this appears: a global count on
|
|
590
|
+
# `AggregateAnalyzedSessionsResponse.summary`, per-agent on
|
|
591
|
+
# `agent_aggregates` entries, and page-scoped on
|
|
592
|
+
# `ListAnalyzedSessionsResponse`.
|
|
593
|
+
class SeveritySummary
|
|
594
|
+
include ::Google::Protobuf::MessageExts
|
|
595
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
# @!attribute [rw] key
|
|
599
|
+
# @return [::String]
|
|
600
|
+
# @!attribute [rw] value
|
|
601
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnalyzedSession::SeveritySummary]
|
|
602
|
+
class SeveritiesEntry
|
|
603
|
+
include ::Google::Protobuf::MessageExts
|
|
604
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
# The analysis state of a session.
|
|
608
|
+
module SessionState
|
|
609
|
+
# The session state is unspecified.
|
|
610
|
+
SESSION_STATE_UNSPECIFIED = 0
|
|
611
|
+
|
|
612
|
+
# The session has not yet been analyzed.
|
|
613
|
+
SESSION_STATE_UNANALYZED = 1
|
|
614
|
+
|
|
615
|
+
# The session has been analyzed and no anomalies were flagged.
|
|
616
|
+
SESSION_STATE_NOT_FLAGGED = 2
|
|
617
|
+
|
|
618
|
+
# The session has been analyzed and at least one anomaly was flagged.
|
|
619
|
+
SESSION_STATE_FLAGGED = 3
|
|
620
|
+
|
|
621
|
+
# The session was analyzed by the LLM judge, which did not flag any
|
|
622
|
+
# anomalies.
|
|
623
|
+
SESSION_STATE_LLM_UNFLAGGED = 4
|
|
624
|
+
end
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
# Request to list analyzed sessions.
|
|
628
|
+
# @!attribute [rw] parent
|
|
629
|
+
# @return [::String]
|
|
630
|
+
# Required. The parent MonitoredAgent resource.
|
|
631
|
+
# Format:
|
|
632
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}`
|
|
633
|
+
# @!attribute [rw] page_size
|
|
634
|
+
# @return [::Integer]
|
|
635
|
+
# Optional. The maximum number of analyzed sessions to return.
|
|
636
|
+
# @!attribute [rw] page_token
|
|
637
|
+
# @return [::String]
|
|
638
|
+
# Optional. A page token, received from a previous `ListAnalyzedSessions`
|
|
639
|
+
# call.
|
|
640
|
+
# @!attribute [rw] filter
|
|
641
|
+
# @return [::String]
|
|
642
|
+
# Optional. Filter expression restricting which AnalyzedSessions are
|
|
643
|
+
# returned. Supports a subset of AIP-160: a closed `detection_time` window
|
|
644
|
+
# (both bounds required), an equality on `severity`, an equality on
|
|
645
|
+
# `agent_type`, and an equality on `session_id`, joined by `AND`. Each
|
|
646
|
+
# clause is optional, may appear at most once, and may appear in any order.
|
|
647
|
+
#
|
|
648
|
+
# The `severity` value is the **canonical** `Severity` enum name --
|
|
649
|
+
# `SEVERITY_CRITICAL`, `SEVERITY_HIGH`, `SEVERITY_MEDIUM` or `SEVERITY_LOW`.
|
|
650
|
+
# Short forms such as `"CRITICAL"` are rejected, as is
|
|
651
|
+
# `SEVERITY_UNSPECIFIED`. It matches sessions whose *maximum* severity equals
|
|
652
|
+
# that bucket: a session that fires at both LOW and CRITICAL matches
|
|
653
|
+
# `severity = "SEVERITY_CRITICAL"`, not `severity = "SEVERITY_LOW"`.
|
|
654
|
+
#
|
|
655
|
+
# The `agent_type` value is the canonical `AgentResource.AgentType` enum name
|
|
656
|
+
# -- `REASONING_ENGINE`, `CLOUD_RUN_SERVICE`, `GKE_WORKLOAD`, `GCE_INSTANCE`,
|
|
657
|
+
# `AWS`, `AZURE`, `AGENT_TYPE_OTHER` or `AGENT_TYPE_UNSPECIFIED` -- and
|
|
658
|
+
# matches sessions run by an agent on that runtime.
|
|
659
|
+
#
|
|
660
|
+
# Unlike `severity`, `agent_type` accepts its `UNSPECIFIED` value. The two
|
|
661
|
+
# are not analogous: a session always has a computed severity bucket, so
|
|
662
|
+
# `SEVERITY_UNSPECIFIED` is never returned and filtering on it could only
|
|
663
|
+
# match nothing. `AGENT_TYPE_UNSPECIFIED` *is* returned -- it is what
|
|
664
|
+
# `AnalyzedSession.agent_type` reports for an agent whose runtime was never
|
|
665
|
+
# recorded -- so it must remain filterable.
|
|
666
|
+
#
|
|
667
|
+
# The `session_id` value is a case-sensitive exact match (no substring or
|
|
668
|
+
# prefix matching) on `AnalyzedSession.session_id`. Unlike `severity` and
|
|
669
|
+
# `agent_type` it is not a closed enum, so any non-empty value is accepted;
|
|
670
|
+
# an empty value (`session_id = ""`) is rejected rather than treated as "no
|
|
671
|
+
# filter".
|
|
672
|
+
#
|
|
673
|
+
# Example (time window, severity and runtime):
|
|
674
|
+
#
|
|
675
|
+
# ```
|
|
676
|
+
# detection_time >= "2024-01-01T00:00:00Z" AND detection_time <=
|
|
677
|
+
# "2024-01-08T00:00:00Z" AND severity = "SEVERITY_CRITICAL" AND agent_type =
|
|
678
|
+
# "CLOUD_RUN_SERVICE"
|
|
679
|
+
# ```
|
|
680
|
+
#
|
|
681
|
+
# If empty, results are restricted to the last 7 days with no severity,
|
|
682
|
+
# runtime, or session restriction. Other fields, additional operators, set
|
|
683
|
+
# membership (`IN`), and boolean combinations (`OR`, `NOT`, parentheses) are
|
|
684
|
+
# not yet supported.
|
|
685
|
+
# @!attribute [rw] view
|
|
686
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnalyzedSessionView]
|
|
687
|
+
# Optional. Resource view to control which fields are returned.
|
|
688
|
+
# @!attribute [rw] order_by
|
|
689
|
+
# @return [::String]
|
|
690
|
+
# Optional. Comma-separated list of fields to sort by, following AIP-132
|
|
691
|
+
# syntax. The default sort direction is ascending; append " desc" to a
|
|
692
|
+
# field to sort descending.
|
|
693
|
+
#
|
|
694
|
+
# Supported fields (any other field yields INVALID_ARGUMENT):
|
|
695
|
+
#
|
|
696
|
+
# * `latest_detection_time` - the session's most-recent flagged detection
|
|
697
|
+
# time. `latest_detection_time desc` puts the newest sessions first.
|
|
698
|
+
# * `max_severity_rank` - the session's bucketed maximum severity, ranked
|
|
699
|
+
# LOW=1 < MEDIUM=2 < HIGH=3 < CRITICAL=4. `max_severity_rank desc` puts
|
|
700
|
+
# the most-severe sessions first.
|
|
701
|
+
# * `agent_display_name` - the MonitoredAgent's display name. Sorted as a
|
|
702
|
+
# STRING (case-sensitive, code-point order).
|
|
703
|
+
#
|
|
704
|
+
# If empty, defaults to `latest_detection_time desc`. Multi-field sort
|
|
705
|
+
# (for example, `max_severity_rank desc, latest_detection_time desc`) is
|
|
706
|
+
# supported.
|
|
707
|
+
#
|
|
708
|
+
# The `order_by` value MUST match the value used on the call that minted any
|
|
709
|
+
# supplied `page_token` (AIP-158). Mismatches yield INVALID_ARGUMENT.
|
|
710
|
+
class ListAnalyzedSessionsRequest
|
|
711
|
+
include ::Google::Protobuf::MessageExts
|
|
712
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# Response to list analyzed sessions.
|
|
716
|
+
# @!attribute [rw] analyzed_sessions
|
|
717
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::AnalyzedSession>]
|
|
718
|
+
# The list of analyzed sessions.
|
|
719
|
+
# @!attribute [rw] next_page_token
|
|
720
|
+
# @return [::String]
|
|
721
|
+
# A token to retrieve the next page of results.
|
|
722
|
+
# @!attribute [rw] summary
|
|
723
|
+
# @return [::Google::Cloud::AIPlatform::V1::ListAnalyzedSessionsResponse::ViewSummary]
|
|
724
|
+
# Summary statistics computed across the sessions on the current page only.
|
|
725
|
+
# For statistics across the entire result set, use AggregateAnalyzedSessions.
|
|
726
|
+
class ListAnalyzedSessionsResponse
|
|
727
|
+
include ::Google::Protobuf::MessageExts
|
|
728
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
729
|
+
|
|
730
|
+
# The view summary.
|
|
731
|
+
# @!attribute [rw] severities
|
|
732
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::AnalyzedSession::SeveritySummary}]
|
|
733
|
+
# The list of severity summaries for the analyzed sessions.
|
|
734
|
+
# The key is the string representation of Severity enum:
|
|
735
|
+
# "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH",
|
|
736
|
+
# "SEVERITY_MEDIUM", "SEVERITY_LOW".
|
|
737
|
+
# @!attribute [rw] anomalous_sessions_count
|
|
738
|
+
# @return [::Integer]
|
|
739
|
+
# Number of anomalous sessions.
|
|
740
|
+
# @!attribute [rw] total_sessions_count
|
|
741
|
+
# @return [::Integer]
|
|
742
|
+
# Total number of sessions.
|
|
743
|
+
# @!attribute [r] anomalous_agents_count
|
|
744
|
+
# @return [::Integer]
|
|
745
|
+
# Output only. The number of distinct agents in the request scope with at
|
|
746
|
+
# least one anomalous session in the time window. On
|
|
747
|
+
# `AggregateAnalyzedSessionsResponse.summary` this is a global count; it
|
|
748
|
+
# is not populated on `ListAnalyzedSessionsResponse.summary`.
|
|
749
|
+
# @!attribute [r] llm_scanned_sessions_count
|
|
750
|
+
# @return [::Integer]
|
|
751
|
+
# Output only. The number of distinct sessions in the time window that were
|
|
752
|
+
# scanned by the LLM judge.
|
|
753
|
+
class ViewSummary
|
|
754
|
+
include ::Google::Protobuf::MessageExts
|
|
755
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
756
|
+
|
|
757
|
+
# @!attribute [rw] key
|
|
758
|
+
# @return [::String]
|
|
759
|
+
# @!attribute [rw] value
|
|
760
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnalyzedSession::SeveritySummary]
|
|
761
|
+
class SeveritiesEntry
|
|
762
|
+
include ::Google::Protobuf::MessageExts
|
|
763
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
764
|
+
end
|
|
765
|
+
end
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
# Request to get the details of a specific analyzed session.
|
|
769
|
+
# @!attribute [rw] name
|
|
770
|
+
# @return [::String]
|
|
771
|
+
# Required. The name of the AnalyzedSession resource.
|
|
772
|
+
# Format:
|
|
773
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}`
|
|
774
|
+
# @!attribute [rw] view
|
|
775
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnalyzedSessionView]
|
|
776
|
+
# Optional. Resource view to control which fields are returned.
|
|
777
|
+
class GetAnalyzedSessionRequest
|
|
778
|
+
include ::Google::Protobuf::MessageExts
|
|
779
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Represents an analyzed invocation for a monitored agent's session.
|
|
783
|
+
# @!attribute [rw] name
|
|
784
|
+
# @return [::String]
|
|
785
|
+
# Identifier. The resource name of the AnalyzedInvocation.
|
|
786
|
+
# @!attribute [r] invocation_id
|
|
787
|
+
# @return [::String]
|
|
788
|
+
# Output only. The invocation ID.
|
|
789
|
+
# @!attribute [r] assessment
|
|
790
|
+
# @return [::Google::Cloud::AIPlatform::V1::Assessment]
|
|
791
|
+
# Output only. The assessment of the invocation.
|
|
792
|
+
# @!attribute [r] invocation_state
|
|
793
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnalyzedInvocation::InvocationState]
|
|
794
|
+
# Output only. The state of the invocation.
|
|
795
|
+
class AnalyzedInvocation
|
|
796
|
+
include ::Google::Protobuf::MessageExts
|
|
797
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
798
|
+
|
|
799
|
+
# State of the invocation.
|
|
800
|
+
module InvocationState
|
|
801
|
+
# Unspecified state.
|
|
802
|
+
INVOCATION_STATE_UNSPECIFIED = 0
|
|
803
|
+
|
|
804
|
+
# The invocation is anomalous.
|
|
805
|
+
INVOCATION_STATE_ANOMALOUS = 1
|
|
806
|
+
|
|
807
|
+
# The invocation is not anomalous.
|
|
808
|
+
INVOCATION_STATE_NOT_ANOMALOUS = 2
|
|
809
|
+
end
|
|
810
|
+
end
|
|
811
|
+
|
|
812
|
+
# Request to get the details of a specific analyzed invocation.
|
|
813
|
+
# @!attribute [rw] name
|
|
814
|
+
# @return [::String]
|
|
815
|
+
# Required. The name of the AnalyzedInvocation resource.
|
|
816
|
+
# Format:
|
|
817
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}`
|
|
818
|
+
class GetAnalyzedInvocationRequest
|
|
819
|
+
include ::Google::Protobuf::MessageExts
|
|
820
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
# Request to list analyzed invocations.
|
|
824
|
+
# @!attribute [rw] parent
|
|
825
|
+
# @return [::String]
|
|
826
|
+
# Required. The parent AnalyzedSession resource.
|
|
827
|
+
# Format:
|
|
828
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}`
|
|
829
|
+
# @!attribute [rw] page_size
|
|
830
|
+
# @return [::Integer]
|
|
831
|
+
# Optional. The maximum number of analyzed invocations to return.
|
|
832
|
+
# @!attribute [rw] page_token
|
|
833
|
+
# @return [::String]
|
|
834
|
+
# Optional. A page token, received from a previous `ListAnalyzedInvocations`
|
|
835
|
+
# call.
|
|
836
|
+
class ListAnalyzedInvocationsRequest
|
|
837
|
+
include ::Google::Protobuf::MessageExts
|
|
838
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
# Response to list analyzed invocations.
|
|
842
|
+
# @!attribute [rw] analyzed_invocations
|
|
843
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::AnalyzedInvocation>]
|
|
844
|
+
# The list of analyzed invocations.
|
|
845
|
+
# @!attribute [rw] next_page_token
|
|
846
|
+
# @return [::String]
|
|
847
|
+
# A token to retrieve the next page of results.
|
|
848
|
+
class ListAnalyzedInvocationsResponse
|
|
849
|
+
include ::Google::Protobuf::MessageExts
|
|
850
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
# Request to aggregate AnalyzedSessions across one or more MonitoredAgents.
|
|
854
|
+
# Use the `-` wildcard in the monitored_agent segment of the parent to
|
|
855
|
+
# aggregate across all MonitoredAgents in the location.
|
|
856
|
+
# @!attribute [rw] parent
|
|
857
|
+
# @return [::String]
|
|
858
|
+
# Required. The parent MonitoredAgent resource. Use the `-` wildcard
|
|
859
|
+
# for the monitored_agent segment to aggregate across multiple agents in the
|
|
860
|
+
# location.
|
|
861
|
+
# Format:
|
|
862
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}`
|
|
863
|
+
# @!attribute [rw] filter
|
|
864
|
+
# @return [::String]
|
|
865
|
+
# Optional. Filter expression restricting which AnalyzedSessions are included
|
|
866
|
+
# in the aggregation. Supports a subset of the
|
|
867
|
+
# `ListAnalyzedSessionsRequest.filter` grammar: a closed `detection_time`
|
|
868
|
+
# window with both bounds required. The `severity` clause is not supported
|
|
869
|
+
# here. If empty, the aggregation covers the last 3 days.
|
|
870
|
+
#
|
|
871
|
+
# Example:
|
|
872
|
+
#
|
|
873
|
+
# ```
|
|
874
|
+
# detection_time >= "2024-01-01T00:00:00Z" AND detection_time <=
|
|
875
|
+
# "2024-01-08T00:00:00Z"
|
|
876
|
+
# ```
|
|
877
|
+
# @!attribute [rw] page_size
|
|
878
|
+
# @return [::Integer]
|
|
879
|
+
# Optional. The standard list page size. The maximum value is 100; values
|
|
880
|
+
# above 100 will be coerced to 100. If unspecified, at most 10
|
|
881
|
+
# MonitoredAgents will be returned.
|
|
882
|
+
# @!attribute [rw] page_token
|
|
883
|
+
# @return [::String]
|
|
884
|
+
# Optional. The standard list page token.
|
|
885
|
+
class AggregateAnalyzedSessionsRequest
|
|
886
|
+
include ::Google::Protobuf::MessageExts
|
|
887
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
# Contains aggregated AnalyzedSession statistics, grouped by MonitoredAgent.
|
|
891
|
+
# @!attribute [rw] agent_aggregates
|
|
892
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::AggregateAnalyzedSessionsResponse::AgentAggregate>]
|
|
893
|
+
# Aggregated statistics — exactly one entry per unique MonitoredAgent
|
|
894
|
+
# matched by the request.
|
|
895
|
+
# @!attribute [rw] summary
|
|
896
|
+
# @return [::Google::Cloud::AIPlatform::V1::ListAnalyzedSessionsResponse::ViewSummary]
|
|
897
|
+
# Overall summary across every MonitoredAgent included in the response.
|
|
898
|
+
# @!attribute [rw] next_page_token
|
|
899
|
+
# @return [::String]
|
|
900
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
901
|
+
# If this field is omitted, there are no subsequent pages.
|
|
902
|
+
class AggregateAnalyzedSessionsResponse
|
|
903
|
+
include ::Google::Protobuf::MessageExts
|
|
904
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
905
|
+
|
|
906
|
+
# Contains aggregated statistics for one MonitoredAgent.
|
|
907
|
+
# @!attribute [rw] monitored_agent
|
|
908
|
+
# @return [::String]
|
|
909
|
+
# The MonitoredAgent resource name.
|
|
910
|
+
# Format:
|
|
911
|
+
# `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}`
|
|
912
|
+
# @!attribute [rw] agent_resource_name
|
|
913
|
+
# @return [::String]
|
|
914
|
+
# The resource name or identifier of the agent. Matches
|
|
915
|
+
# `AgentResource.agent` on the corresponding `MonitoredAgent`, so the
|
|
916
|
+
# format depends on that agent's `AgentResource.agent_type`. For the
|
|
917
|
+
# format of each agent type, see
|
|
918
|
+
# {::Google::Cloud::AIPlatform::V1::AgentResource#agent AgentResource.agent}.
|
|
919
|
+
# @!attribute [r] agent_display_name
|
|
920
|
+
# @return [::String]
|
|
921
|
+
# Output only. The human-readable display name of the MonitoredAgent.
|
|
922
|
+
# @!attribute [r] agent_status
|
|
923
|
+
# @return [::Google::Cloud::AIPlatform::V1::MonitoredAgent::EnablementState]
|
|
924
|
+
# Output only. The enablement state of the MonitoredAgent (for example,
|
|
925
|
+
# ACTIVE, DISABLED, or ENABLING).
|
|
926
|
+
# @!attribute [r] location
|
|
927
|
+
# @return [::String]
|
|
928
|
+
# Output only. The region of the agent, in the same form as
|
|
929
|
+
# `AgentResource.location` (for example, `us-central1`). Empty when the
|
|
930
|
+
# agent is not enrolled or its location is unknown.
|
|
931
|
+
# @!attribute [r] agent_type
|
|
932
|
+
# @return [::Google::Cloud::AIPlatform::V1::AgentResource::AgentType]
|
|
933
|
+
# Output only. The runtime the agent is hosted on (for example,
|
|
934
|
+
# `CLOUD_RUN_SERVICE`).
|
|
935
|
+
#
|
|
936
|
+
# `AGENT_TYPE_UNSPECIFIED` means the runtime is unknown to this service,
|
|
937
|
+
# which is distinct from `AGENT_TYPE_OTHER` (known, and not one of the
|
|
938
|
+
# other enumerated runtimes).
|
|
939
|
+
# @!attribute [rw] total_sessions_count
|
|
940
|
+
# @return [::Integer]
|
|
941
|
+
# The number of analyzed sessions for this agent matched by the request.
|
|
942
|
+
# @!attribute [rw] anomalous_sessions_count
|
|
943
|
+
# @return [::Integer]
|
|
944
|
+
# The number of anomalous (SESSION_STATE_FLAGGED) sessions for this agent.
|
|
945
|
+
# @!attribute [rw] latest_session_time
|
|
946
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
947
|
+
# The latest session update_time observed for this agent.
|
|
948
|
+
# @!attribute [rw] severities
|
|
949
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::AnalyzedSession::SeveritySummary}]
|
|
950
|
+
# Map of severity level (string representation of Severity) to detector
|
|
951
|
+
# summaries aggregated across all sessions for this agent.
|
|
952
|
+
# The key is the string representation of Severity enum:
|
|
953
|
+
# "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH",
|
|
954
|
+
# "SEVERITY_MEDIUM", "SEVERITY_LOW".
|
|
955
|
+
class AgentAggregate
|
|
956
|
+
include ::Google::Protobuf::MessageExts
|
|
957
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
958
|
+
|
|
959
|
+
# @!attribute [rw] key
|
|
960
|
+
# @return [::String]
|
|
961
|
+
# @!attribute [rw] value
|
|
962
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnalyzedSession::SeveritySummary]
|
|
963
|
+
class SeveritiesEntry
|
|
964
|
+
include ::Google::Protobuf::MessageExts
|
|
965
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
966
|
+
end
|
|
967
|
+
end
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
# The view options for AnalyzedSession.
|
|
971
|
+
module AnalyzedSessionView
|
|
972
|
+
# The default view: BASIC.
|
|
973
|
+
ANALYZED_SESSION_VIEW_UNSPECIFIED = 0
|
|
974
|
+
|
|
975
|
+
# Includes every `AnalyzedSession` field except `assessment`.
|
|
976
|
+
ANALYZED_SESSION_VIEW_BASIC = 1
|
|
977
|
+
|
|
978
|
+
# Includes all fields, including the detailed `assessment`.
|
|
979
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#list_analyzed_sessions AgentAnomalyDetectionService.ListAnalyzedSessions}
|
|
980
|
+
# omits `assessment` in every view. To get it, call
|
|
981
|
+
# {::Google::Cloud::AIPlatform::V1::AgentAnomalyDetectionService::Client#get_analyzed_session AgentAnomalyDetectionService.GetAnalyzedSession}
|
|
982
|
+
# with this view.
|
|
983
|
+
ANALYZED_SESSION_VIEW_FULL = 2
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
# Severity levels available for Agent Anomaly Detection findings.
|
|
987
|
+
# Numeric values are ordered ascending by severity, so comparisons such as
|
|
988
|
+
# `severity >= SEVERITY_HIGH` behave as expected.
|
|
989
|
+
# Additional values may be added in the future.
|
|
990
|
+
module Severity
|
|
991
|
+
# Unspecified severity.
|
|
992
|
+
SEVERITY_UNSPECIFIED = 0
|
|
993
|
+
|
|
994
|
+
# Low severity.
|
|
995
|
+
SEVERITY_LOW = 1
|
|
996
|
+
|
|
997
|
+
# Medium severity.
|
|
998
|
+
SEVERITY_MEDIUM = 2
|
|
999
|
+
|
|
1000
|
+
# High severity.
|
|
1001
|
+
SEVERITY_HIGH = 3
|
|
1002
|
+
|
|
1003
|
+
# Critical severity.
|
|
1004
|
+
SEVERITY_CRITICAL = 4
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
end
|
|
1008
|
+
end
|
|
1009
|
+
end
|