Platform for AI (PAI) is integrated with ActionTrail. You can view and search for PAI-related behavior events of your Alibaba Cloud account in the previous 90 days in ActionTrail. You can also use ActionTrail to download the events or save the events to Simple Log Service or Object Storage Service (OSS). This way, you can perform operations such as behavior analysis, security analysis, resource change tracking, and behavior compliance audit.
Limits
You can search only for behavior events of Deep Learning Containers (DLC).
Prerequisites
A trail is created, and events are delivered to Simple Log Service. For more information, see Create a single-account trail and Create a multi-account trail.
Query DLC behavior events
Log on to the ActionTrail console.
In the left-side navigation pane, choose .
On the Default tab of the Custom Template page, configure query conditions.
You can perform custom event queries in simple query mode or SQL query mode. In simple query mode, you can query events in a visual manner. In SQL query mode, you can query events based on SQL statements that are converted from conditions in simple query mode.
Simple Mode
In the upper-right corner of the page, turn on Simple Mode. Configure the query conditions based on on-screen instructions.
The following table describes the key parameters.
Parameter
Description
Service Name
Select Platform for AI (PAI).
Region
Select the region in which you want to query events. Example: China (Hangzhou).
Event Name
Select the event that you want to query. Example: StopJob.
Read/Write Type
Valid values:
Write
Read
SQL query
In the upper-right corner of the page, turn off Simple Mode and enter the SQL query condition as shown in the following figure.
If the simple query mode cannot meet your business requirements, use the SQL query mode. In this case, you can configure query conditions as prompted in Simple Mode and turn off Simple Mode. The configured query conditions in Simple Mode are automatically converted into an SQL statement. Then, you can configure a custom SQL statement.
For more information about the SQL syntax for advanced event queries and sample queries, see SQL statements in advanced event queries.
Click Run.
On the Raw Log tab, event logs are displayed based on the time filter.
In the event list, click View Event Details in the Actions column.
In the View Event Details panel, view the basic information and event records of the event.
References
For more information about DLC, see Before you begin.