| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="aiplatform_v1beta1.html">Agent Platform API</a> . <a href="aiplatform_v1beta1.projects.html">projects</a> . <a href="aiplatform_v1beta1.projects.locations.html">locations</a> . <a href="aiplatform_v1beta1.projects.locations.monitoredAgents.html">monitoredAgents</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="aiplatform_v1beta1.projects.locations.monitoredAgents.analyzedSessions.html">analyzedSessions()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the analyzedSessions Resource.</p> |
| 81 |
|
| 82 |
<p class="toc_element"> |
| 83 |
<code><a href="#close">close()</a></code></p> |
| 84 |
<p class="firstline">Close httplib2 connections.</p> |
| 85 |
<p class="toc_element"> |
| 86 |
<code><a href="#create">create(parent, body=None, monitoredAgentId=None, x__xgafv=None)</a></code></p> |
| 87 |
<p class="firstline">Creates a new MonitoredAgent in a specific Location.</p> |
| 88 |
<p class="toc_element"> |
| 89 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 90 |
<p class="firstline">Deletes a specific MonitoredAgent.</p> |
| 91 |
<p class="toc_element"> |
| 92 |
<code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p> |
| 93 |
<p class="firstline">Disables a specific MonitoredAgent.</p> |
| 94 |
<p class="toc_element"> |
| 95 |
<code><a href="#enable">enable(name, body=None, x__xgafv=None)</a></code></p> |
| 96 |
<p class="firstline">Enables a specific MonitoredAgent.</p> |
| 97 |
<p class="toc_element"> |
| 98 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 99 |
<p class="firstline">Gets the details of a specific MonitoredAgent.</p> |
| 100 |
<p class="toc_element"> |
| 101 |
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 102 |
<p class="firstline">Lists MonitoredAgents in a specific Location.</p> |
| 103 |
<p class="toc_element"> |
| 104 |
<code><a href="#list_next">list_next()</a></code></p> |
| 105 |
<p class="firstline">Retrieves the next page of results.</p> |
| 106 |
<h3>Method Details</h3> |
| 107 |
<div class="method"> |
| 108 |
<code class="details" id="close">close()</code> |
| 109 |
<pre>Close httplib2 connections.</pre> |
| 110 |
</div> |
| 111 |
|
| 112 |
<div class="method"> |
| 113 |
<code class="details" id="create">create(parent, body=None, monitoredAgentId=None, x__xgafv=None)</code> |
| 114 |
<pre>Creates a new MonitoredAgent in a specific Location. |
| 115 |
|
| 116 |
Args: |
| 117 |
parent: string, Required. The resource name of the Location to create the MonitoredAgent in. Format: `projects/{project}/locations/{location}` (required) |
| 118 |
body: object, The request body. |
| 119 |
The object takes the form of: |
| 120 |
|
| 121 |
{ # A monitored agent in a specific Location. |
| 122 |
"agentResource": { # Defines the identity of an agent being monitored. # Required. The configuration for the agent being monitored. |
| 123 |
"agent": "A String", # Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: `projects/{project}/locations/{location}/reasoningEngines/{agent}` |
| 124 |
"agentType": "A String", # Required. The type of the agent. |
| 125 |
"location": "A String", # Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). |
| 126 |
}, |
| 127 |
"createTime": "A String", # Output only. The time the MonitoredAgent was created. |
| 128 |
"displayName": "A String", # Optional. The display name of the MonitoredAgent. |
| 129 |
"logBuckets": [ # Optional. The log buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/buckets/{bucket}` |
| 130 |
"A String", |
| 131 |
], |
| 132 |
"name": "A String", # Identifier. The resource name of the MonitoredAgent. |
| 133 |
"observabilityBuckets": [ # Optional. The observability buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}` |
| 134 |
"A String", |
| 135 |
], |
| 136 |
"state": "A String", # Output only. The current state of the agent's enablement. |
| 137 |
"statusMessage": "A String", # Output only. A brief message explaining the current state. |
| 138 |
"updateTime": "A String", # Output only. The time the MonitoredAgent was last updated. |
| 139 |
} |
| 140 |
|
| 141 |
monitoredAgentId: string, Required. The ID to use for the MonitoredAgent, which will become the final component of the MonitoredAgent's resource name. |
| 142 |
x__xgafv: string, V1 error format. |
| 143 |
Allowed values |
| 144 |
1 - v1 error format |
| 145 |
2 - v2 error format |
| 146 |
|
| 147 |
Returns: |
| 148 |
An object of the form: |
| 149 |
|
| 150 |
{ # A monitored agent in a specific Location. |
| 151 |
"agentResource": { # Defines the identity of an agent being monitored. # Required. The configuration for the agent being monitored. |
| 152 |
"agent": "A String", # Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: `projects/{project}/locations/{location}/reasoningEngines/{agent}` |
| 153 |
"agentType": "A String", # Required. The type of the agent. |
| 154 |
"location": "A String", # Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). |
| 155 |
}, |
| 156 |
"createTime": "A String", # Output only. The time the MonitoredAgent was created. |
| 157 |
"displayName": "A String", # Optional. The display name of the MonitoredAgent. |
| 158 |
"logBuckets": [ # Optional. The log buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/buckets/{bucket}` |
| 159 |
"A String", |
| 160 |
], |
| 161 |
"name": "A String", # Identifier. The resource name of the MonitoredAgent. |
| 162 |
"observabilityBuckets": [ # Optional. The observability buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}` |
| 163 |
"A String", |
| 164 |
], |
| 165 |
"state": "A String", # Output only. The current state of the agent's enablement. |
| 166 |
"statusMessage": "A String", # Output only. A brief message explaining the current state. |
| 167 |
"updateTime": "A String", # Output only. The time the MonitoredAgent was last updated. |
| 168 |
}</pre> |
| 169 |
</div> |
| 170 |
|
| 171 |
<div class="method"> |
| 172 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 173 |
<pre>Deletes a specific MonitoredAgent. |
| 174 |
|
| 175 |
Args: |
| 176 |
name: string, Required. The name of the MonitoredAgent resource to be deleted. Format: `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` (required) |
| 177 |
x__xgafv: string, V1 error format. |
| 178 |
Allowed values |
| 179 |
1 - v1 error format |
| 180 |
2 - v2 error format |
| 181 |
|
| 182 |
Returns: |
| 183 |
An object of the form: |
| 184 |
|
| 185 |
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
| 186 |
}</pre> |
| 187 |
</div> |
| 188 |
|
| 189 |
<div class="method"> |
| 190 |
<code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code> |
| 191 |
<pre>Disables a specific MonitoredAgent. |
| 192 |
|
| 193 |
Args: |
| 194 |
name: string, Required. The name of the MonitoredAgent resource to be disabled. Format: `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` (required) |
| 195 |
body: object, The request body. |
| 196 |
The object takes the form of: |
| 197 |
|
| 198 |
{ # Request message for AgentAnomalyDetectionService.DisableMonitoredAgent. |
| 199 |
} |
| 200 |
|
| 201 |
x__xgafv: string, V1 error format. |
| 202 |
Allowed values |
| 203 |
1 - v1 error format |
| 204 |
2 - v2 error format |
| 205 |
|
| 206 |
Returns: |
| 207 |
An object of the form: |
| 208 |
|
| 209 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 210 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 211 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 212 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 213 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 214 |
{ |
| 215 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 216 |
}, |
| 217 |
], |
| 218 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 219 |
}, |
| 220 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 221 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 222 |
}, |
| 223 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 224 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 225 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 226 |
}, |
| 227 |
}</pre> |
| 228 |
</div> |
| 229 |
|
| 230 |
<div class="method"> |
| 231 |
<code class="details" id="enable">enable(name, body=None, x__xgafv=None)</code> |
| 232 |
<pre>Enables a specific MonitoredAgent. |
| 233 |
|
| 234 |
Args: |
| 235 |
name: string, Required. The name of the MonitoredAgent resource to be enabled. Format: `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` (required) |
| 236 |
body: object, The request body. |
| 237 |
The object takes the form of: |
| 238 |
|
| 239 |
{ # Request message for AgentAnomalyDetectionService.EnableMonitoredAgent. |
| 240 |
} |
| 241 |
|
| 242 |
x__xgafv: string, V1 error format. |
| 243 |
Allowed values |
| 244 |
1 - v1 error format |
| 245 |
2 - v2 error format |
| 246 |
|
| 247 |
Returns: |
| 248 |
An object of the form: |
| 249 |
|
| 250 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 251 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 252 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 253 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 254 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 255 |
{ |
| 256 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 257 |
}, |
| 258 |
], |
| 259 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 260 |
}, |
| 261 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 262 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 263 |
}, |
| 264 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 265 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 266 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 267 |
}, |
| 268 |
}</pre> |
| 269 |
</div> |
| 270 |
|
| 271 |
<div class="method"> |
| 272 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 273 |
<pre>Gets the details of a specific MonitoredAgent. |
| 274 |
|
| 275 |
Args: |
| 276 |
name: string, Required. The name of the MonitoredAgent resource. Format: `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` (required) |
| 277 |
x__xgafv: string, V1 error format. |
| 278 |
Allowed values |
| 279 |
1 - v1 error format |
| 280 |
2 - v2 error format |
| 281 |
|
| 282 |
Returns: |
| 283 |
An object of the form: |
| 284 |
|
| 285 |
{ # A monitored agent in a specific Location. |
| 286 |
"agentResource": { # Defines the identity of an agent being monitored. # Required. The configuration for the agent being monitored. |
| 287 |
"agent": "A String", # Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: `projects/{project}/locations/{location}/reasoningEngines/{agent}` |
| 288 |
"agentType": "A String", # Required. The type of the agent. |
| 289 |
"location": "A String", # Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). |
| 290 |
}, |
| 291 |
"createTime": "A String", # Output only. The time the MonitoredAgent was created. |
| 292 |
"displayName": "A String", # Optional. The display name of the MonitoredAgent. |
| 293 |
"logBuckets": [ # Optional. The log buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/buckets/{bucket}` |
| 294 |
"A String", |
| 295 |
], |
| 296 |
"name": "A String", # Identifier. The resource name of the MonitoredAgent. |
| 297 |
"observabilityBuckets": [ # Optional. The observability buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}` |
| 298 |
"A String", |
| 299 |
], |
| 300 |
"state": "A String", # Output only. The current state of the agent's enablement. |
| 301 |
"statusMessage": "A String", # Output only. A brief message explaining the current state. |
| 302 |
"updateTime": "A String", # Output only. The time the MonitoredAgent was last updated. |
| 303 |
}</pre> |
| 304 |
</div> |
| 305 |
|
| 306 |
<div class="method"> |
| 307 |
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 308 |
<pre>Lists MonitoredAgents in a specific Location. |
| 309 |
|
| 310 |
Args: |
| 311 |
parent: string, Required. The resource name of the Location to list the MonitoredAgents from. Format: `projects/{project}/locations/{location}` (required) |
| 312 |
filter: string, Optional. Optional AIP-160 filter, currently restricted to a single equality predicate on `state`: state = ACTIVE state = DISABLED state = ENABLING The value must be the exact name of a `MonitoredAgent.EnablementState` constant (case-sensitive): `ACTIVE`, `DISABLED`, `ENABLING`, or `ENABLEMENT_STATE_UNSPECIFIED`. (The proto reserves ordinals for additional future states like NEEDS_ACTION; this allow-list grows when the proto adds them.) A blank or absent filter returns every MonitoredAgent in the parent regardless of state. Anything else returns INVALID_ARGUMENT. |
| 313 |
pageSize: integer, Optional. The standard list page size. The maximum value is 100; values above 100 will be coerced to 100. If unspecified, at most 10 MonitoredAgents will be returned. |
| 314 |
pageToken: string, Optional. The standard list page token. |
| 315 |
x__xgafv: string, V1 error format. |
| 316 |
Allowed values |
| 317 |
1 - v1 error format |
| 318 |
2 - v2 error format |
| 319 |
|
| 320 |
Returns: |
| 321 |
An object of the form: |
| 322 |
|
| 323 |
{ # Response message for AgentAnomalyDetectionService.ListMonitoredAgents. |
| 324 |
"monitoredAgents": [ # A list of MonitoredAgents that matches the specified filter in the request. |
| 325 |
{ # A monitored agent in a specific Location. |
| 326 |
"agentResource": { # Defines the identity of an agent being monitored. # Required. The configuration for the agent being monitored. |
| 327 |
"agent": "A String", # Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: `projects/{project}/locations/{location}/reasoningEngines/{agent}` |
| 328 |
"agentType": "A String", # Required. The type of the agent. |
| 329 |
"location": "A String", # Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). |
| 330 |
}, |
| 331 |
"createTime": "A String", # Output only. The time the MonitoredAgent was created. |
| 332 |
"displayName": "A String", # Optional. The display name of the MonitoredAgent. |
| 333 |
"logBuckets": [ # Optional. The log buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/buckets/{bucket}` |
| 334 |
"A String", |
| 335 |
], |
| 336 |
"name": "A String", # Identifier. The resource name of the MonitoredAgent. |
| 337 |
"observabilityBuckets": [ # Optional. The observability buckets configured for the agent, in MVP this will be restricted to 1. Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}` |
| 338 |
"A String", |
| 339 |
], |
| 340 |
"state": "A String", # Output only. The current state of the agent's enablement. |
| 341 |
"statusMessage": "A String", # Output only. A brief message explaining the current state. |
| 342 |
"updateTime": "A String", # Output only. The time the MonitoredAgent was last updated. |
| 343 |
}, |
| 344 |
], |
| 345 |
"nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| 346 |
"totalSize": 42, # The total number of MonitoredAgents in the request scope after the request `filter` (if any) is applied. With no filter this is the unconditional count of MonitoredAgents in the parent; with `filter = "state = ACTIVE"` it is the active-agent count, and so on. |
| 347 |
}</pre> |
| 348 |
</div> |
| 349 |
|
| 350 |
<div class="method"> |
| 351 |
<code class="details" id="list_next">list_next()</code> |
| 352 |
<pre>Retrieves the next page of results. |
| 353 |
|
| 354 |
Args: |
| 355 |
previous_request: The request for the previous page. (required) |
| 356 |
previous_response: The response from the request for the previous page. (required) |
| 357 |
|
| 358 |
Returns: |
| 359 |
A request object that you can call 'execute()' on to request the next |
| 360 |
page. Returns None if there are no more items in the collection. |
| 361 |
</pre> |
| 362 |
</div> |
| 363 |
|
| 364 |
</body></html> |