Updates a saved search.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /savedsearches/{savedsearchName}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | my-project |
savedsearchName | string | Yes | The name of the saved search that you want to update. | savedsearch-name |
body | object | No | The request body. | |
savedsearchName | string | Yes | The name of the saved search. The name must be 3 to 63 characters in length. | savedsearch-name |
searchQuery | string | Yes | The search statement or the query statement of the saved search. A query statement consists of a search statement and an analytic statement in the Search statement|Analytic statement format. For more information, see Log search overview and Log analysis overview. | *|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 logs. | 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.