跳转到主要内容
POST
/
rum
/
facet
/
count
分值统计
curl --request POST \
  --url 'https://api.flashcat.cloud/rum/facet/count?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "start_time": 123,
  "end_time": 123,
  "scope": "session",
  "facet_key": "created_at",
  "facet_value": "<string>",
  "dql": "<string>",
  "sql": "<string>",
  "limit": 50
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "items": [
      {
        "facet_value": "<string>",
        "count": 123
      }
    ]
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
start_time
integer
必填

开始时间戳,单位毫秒

end_time
integer
必填

结束时间戳,单位毫秒

scope
enum<string>
必填

查找范围

可用选项:
session,
view,
action,
error,
resource,
long_task,
vital,
issue,
sourcemap
facet_key
enum<string>
必填

分面Key

可用选项:
created_at
facet_value

搜索给定分面值。如果不传 ,将执行占位符搜索,返回所搜索分面的所有分面值,最多返回limit指定个数。如果传入(即使是零值)*** ,将精确检索此分面值。

dql
string

过滤条件,与sql可同时存在

sql
string

标准SQL,但仅可包含where条件部分,如'a=b and c > 10',不包含limit/order/group/select等部分,也不包含WHERE关键字。与dql可同时存在

limit
integer
默认值:50

返回分面值个数

必填范围: x <= 100

响应

200 - application/json
error
object
data
object