Creates a saved search.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /savedsearches
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | Yes | The details of the saved search. | |
savedsearchName | string | Yes | The name of the saved search. The name must be 3 to 63 characters in length. | pv in minutes |
searchQuery | string | Yes | The query statement of the saved search. A query statement consists of a search statement and an analytic statement in the | *|select date_format(__time__-__time__%60, '%H:%i:%s') as time, COUNT(*) as pv group by time |
logstore | string | Yes | The name of the Logstore to which the saved search belongs. | aliyun-test-logstore |
topic | string | No | The topic of the log. | theme |
displayName | string | Yes | The display name. | displayname |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.