public sealed class ListAnalyzedSessionsRequest : IMessage<ListAnalyzedSessionsRequest>, IEquatable<ListAnalyzedSessionsRequest>, IDeepCloneable<ListAnalyzedSessionsRequest>, IBufferMessage, IMessage, IPageRequestReference documentation and code samples for the Vertex AI v1 API class ListAnalyzedSessionsRequest.
Request to list analyzed sessions.
Implements
IMessageListAnalyzedSessionsRequest, IEquatableListAnalyzedSessionsRequest, IDeepCloneableListAnalyzedSessionsRequest, IBufferMessage, IMessage, IPageRequestNamespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Constructors
ListAnalyzedSessionsRequest()
public ListAnalyzedSessionsRequest()ListAnalyzedSessionsRequest(ListAnalyzedSessionsRequest)
public ListAnalyzedSessionsRequest(ListAnalyzedSessionsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ListAnalyzedSessionsRequest |
Properties
Filter
public string Filter { get; set; }Optional. Filter expression restricting which AnalyzedSessions are
returned. Supports a subset of AIP-160: a closed detection_time window
(both bounds required), an equality on severity, an equality on
agent_type, and an equality on session_id, joined by AND. Each
clause is optional, may appear at most once, and may appear in any order.
The severity value is the canonical Severity enum name --
SEVERITY_CRITICAL, SEVERITY_HIGH, SEVERITY_MEDIUM or SEVERITY_LOW.
Short forms such as "CRITICAL" are rejected, as is
SEVERITY_UNSPECIFIED. It matches sessions whose maximum severity equals
that bucket: a session that fires at both LOW and CRITICAL matches
severity = "SEVERITY_CRITICAL", not severity = "SEVERITY_LOW".
The agent_type value is the canonical AgentResource.AgentType enum name
-- REASONING_ENGINE, CLOUD_RUN_SERVICE, GKE_WORKLOAD, GCE_INSTANCE,
AWS, AZURE, AGENT_TYPE_OTHER or AGENT_TYPE_UNSPECIFIED -- and
matches sessions run by an agent on that runtime.
Unlike severity, agent_type accepts its UNSPECIFIED value. The two
are not analogous: a session always has a computed severity bucket, so
SEVERITY_UNSPECIFIED is never returned and filtering on it could only
match nothing. AGENT_TYPE_UNSPECIFIED is returned -- it is what
AnalyzedSession.agent_type reports for an agent whose runtime was never
recorded -- so it must remain filterable.
The session_id value is a case-sensitive exact match (no substring or
prefix matching) on AnalyzedSession.session_id. Unlike severity and
agent_type it is not a closed enum, so any non-empty value is accepted;
an empty value (session_id = "") is rejected rather than treated as "no
filter".
Example (time window, severity and runtime):
detection_time >= "2024-01-01T00:00:00Z" AND detection_time <=
"2024-01-08T00:00:00Z" AND severity = "SEVERITY_CRITICAL" AND agent_type =
"CLOUD_RUN_SERVICE"
If empty, results are restricted to the last 7 days with no severity,
runtime, or session restriction. Other fields, additional operators, set
membership (IN), and boolean combinations (OR, NOT, parentheses) are
not yet supported.
| Property Value | |
|---|---|
| Type | Description |
string |
|
OrderBy
public string OrderBy { get; set; }Optional. Comma-separated list of fields to sort by, following AIP-132 syntax. The default sort direction is ascending; append " desc" to a field to sort descending.
Supported fields (any other field yields INVALID_ARGUMENT):
latest_detection_time- the session's most-recent flagged detection time.latest_detection_time descputs the newest sessions first.max_severity_rank- the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < CRITICAL=4.max_severity_rank descputs the most-severe sessions first.agent_display_name- the MonitoredAgent's display name. Sorted as a STRING (case-sensitive, code-point order).
If empty, defaults to latest_detection_time desc. Multi-field sort
(for example, max_severity_rank desc, latest_detection_time desc) is
supported.
The order_by value MUST match the value used on the call that minted any
supplied page_token (AIP-158). Mismatches yield INVALID_ARGUMENT.
| Property Value | |
|---|---|
| Type | Description |
string |
|
PageSize
public int PageSize { get; set; }Optional. The maximum number of analyzed sessions to return.
| Property Value | |
|---|---|
| Type | Description |
int |
|
PageToken
public string PageToken { get; set; }Optional. A page token, received from a previous ListAnalyzedSessions
call.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Parent
public string Parent { get; set; }Required. The parent MonitoredAgent resource.
Format:
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ParentAsMonitoredAgentName
public MonitoredAgentName ParentAsMonitoredAgentName { get; set; }MonitoredAgentName-typed view over the Parent resource name property.
| Property Value | |
|---|---|
| Type | Description |
MonitoredAgentName |
|
View
public AnalyzedSessionView View { get; set; }Optional. Resource view to control which fields are returned.
| Property Value | |
|---|---|
| Type | Description |
AnalyzedSessionView |
|