Skip to content

Instantly share code, notes, and snippets.

@lizhineng
Created July 15, 2023 03:46
Show Gist options
  • Save lizhineng/eeb4595d0d3ad5d3f7ef9c62d1d9bab4 to your computer and use it in GitHub Desktop.
Save lizhineng/eeb4595d0d3ad5d3f7ef9c62d1d9bab4 to your computer and use it in GitHub Desktop.
Get index response from SLS API, those indices are created by Alibaba Cloud by default for Function Compute.
{
"index_mode": "v2",
"keys": {
"aggPeriodSeconds": {
"doc_value": true,
"type": "long"
},
"concurrentRequests": {
"doc_value": true,
"type": "long"
},
"cpuPercent": {
"doc_value": true,
"type": "double"
},
"cpuQuotaPercent": {
"doc_value": true,
"type": "double"
},
"durationMs": {
"doc_value": true,
"type": "double"
},
"errorType": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"events": {
"caseSensitive": false,
"doc_value": true,
"index_all": true,
"json_keys": {},
"max_depth": -1,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "json"
},
"functionName": {
"caseSensitive": true,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"hasFunctionError": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"hostname": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"instanceID": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"ipAddress": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"isColdStart": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"memoryLimitMB": {
"doc_value": true,
"type": "double"
},
"memoryUsageMB": {
"doc_value": true,
"type": "double"
},
"memoryUsagePercent": {
"doc_value": true,
"type": "double"
},
"operation": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"qualifier": {
"caseSensitive": true,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"rxBytes": {
"doc_value": true,
"type": "long"
},
"rxTotalBytes": {
"doc_value": true,
"type": "long"
},
"serviceName": {
"caseSensitive": true,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"statusCode": {
"doc_value": true,
"type": "long"
},
"triggerType": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
},
"txBytes": {
"doc_value": true,
"type": "long"
},
"txTotalBytes": {
"doc_value": true,
"type": "long"
},
"versionId": {
"caseSensitive": false,
"doc_value": true,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
],
"type": "text"
}
},
"line": {
"caseSensitive": false,
"chn": false,
"token": [
",",
" ",
"'",
"\"",
";",
"=",
"(",
")",
"[",
"]",
"{",
"}",
"?",
"@",
"&",
"<",
">",
"/",
":",
"\n",
"\t",
"\r"
]
},
"storage": "pg",
"ttl": 30,
"lastModifyTime": 1689386807
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment