SHOW TELEMETRY EVENT DEFINITIONS

列出指定应用程序的 事件定义

语法

SHOW TELEMETRY EVENT DEFINITIONS IN APPLICATION <name>
Copy

参数

name

指定应用程序的标识符。如果标识符包含空格、特殊字符或大小写混合字符,则整个字符串必须放在双引号内。放在双引号内的标识符也区分大小写。

输出

显示有关应用程序事件定义的信息。

描述

name

事件定义的名称。事件定义名称以 SNOWFLAKE$ 前缀开头。

type

事件定义的类型。有关更多信息,请参阅 为应用程序配置事件定义

sharing

指定事件定义为 MANDATORY 还是 OPTIONAL

status

指定事件定义是否在使用者账户中启用。

使用说明

  • 该命令不需要正在运行的仓库即可执行。

  • 该命令仅返回当前用户的当前角色已获授至少一项访问权限的对象。

  • MANAGE GRANTS 访问权限隐式允许其持有者查看账户中的每个对象。默认情况下,只有账户管理员(具有 ACCOUNTADMIN 角色的用户)和安全管理员(具有 SECURITYADMIN 角色的用户)才具有 MANAGE GRANTS 权限。

  • To post-process the output of this command, you can use the pipe operator (->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.

    The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is type, then specify "type" for the identifier.

示例

SHOW TELEMETRY EVENT DEFINITIONS IN APPLICATION hello_snowflake;
Copy
+--------------------------+----------------+---------------+--------------+
|   name                   |   type         |   sharing     |   status     |
+--------------------------+----------------+---------------+--------------+
|   SNOWFLAKE$DEBUG_LOGS   |   DEBUG_LOGS   |   OPTIONAL    |   ENABLED    |
|   SNOWFLAKE$TRACES       |   TRACES       |   MANDATORY   |   ENABLED    |
+--------------------------+----------------+---------------+--------------+
语言: 中文