DESCRIBE MODEL MONITOR¶
显示有关特定 模型监控器 的信息。此命令显示 SHOW MODEL MONITORS 命令显示的所有信息,以及附加信息。
DESCRIBE 可以缩写为 DESC。
语法¶
{ DESCRIBE | DESC } MODEL MONITOR <monitor_name>
参数¶
monitor_name指定要描述的模型监控器的标识符。
如果标识符包含空格或特殊字符,则整个字符串必须放在双引号内。放在双引号内的标识符也区分大小写。
有关更多信息,请参阅 标识符要求。
输出¶
命令输出在以下列中提供模型监控器属性和元数据:
列 |
描述 |
|---|---|
|
创建模型监控器时的日期和时间。 |
|
模型监控器的名称。 |
|
用于存储模型监控器的数据库。 |
|
用于存储模型监控器的架构。 |
|
用于监控模型的仓库。 |
|
触发模型监控器刷新的刷新间隔(目标滞后)。 |
|
计算指标的汇总窗口。 |
|
被监控的模型的任务,可以是 TABULAR_BINARY_CLASSIFICATION 或 TABULAR_REGRESSION。 |
|
模型监控器的状态:
|
|
详细列出聚合所基于的源表或视图的 JSON 对象的字符串表示。如果表不存在或无法访问,则值为空字字符串。请参阅 表 JSON 对象规范。 |
|
详细说明用于监控的基线表的 JSON 对象的字符串表示,其中克隆嵌入在模型监控器对象中。请参阅 表 JSON 对象规范。 |
|
JSON 对象的字符串表示,其中包含有关监控模型的具体信息。请参阅 模型 JSON 对象规范。 |
|
关于模型监控器的注释。 |
The following columns are the additional columns displayed by DESCRIBE compared to SHOW |
|
|
JSON object containing aggregation status for each dynamic table type. Keys:
Values: |
|
JSON object containing the last error for each dynamic table type. Keys: Same as Values: Error message, or empty string if successful |
|
JSON object containing the last update timestamp for each dynamic table type. Keys: Same as Values: Timestamp of last successful update |
|
JSON 对象的字符串表示,其中包含源表中正在使用的列的名称。请参阅 列 JSON 对象规范。 |
表 JSON 对象规范¶
以下是命令输出中的 source 和 baseline 列使用的表的 JSON 表示格式:
|
源或者基线表或视图的名称。 |
|---|---|
|
用于存储表或视图的数据库。 |
|
用于存储表或视图的架构。 |
|
表的状态:
|
模型 JSON 对象规范¶
以下是命令输出中 model 列使用的模型的 JSON 表示格式:
字段 |
描述 |
|---|---|
|
被监控的模型的名称。 |
|
被监控的模型版本的版本名称。 |
|
指定模型版本中被监控的特定函数的名称。 |
|
存储模型的数据库。 |
|
存储模型的架构。 |
|
模型的状态。可以是 ACTIVE、MASKED 或 DELETED。MASKED 表示用户无权访问模型;其他字段显示为一系列星号。 |
|
模型版本的状态。可以是 ACTIVE 或 DELETED。(MASKED 不是模型版本的有效状态,因为它们没有访问控制。) |
列 JSON 对象规范¶
以下是命令输出中 columns 列使用的列的 JSON 表示格式:
字段 |
描述 |
|---|---|
|
数据源中时间戳列的名称。 |
|
字符串列名称的数组,它们一起唯一标识源数据中的每行。 |
|
用于命名数据源中所有预测类列的字符串数组。 |
|
用于命名数据源中所有预测分数列的字符串数组。 |
|
用于命名数据源中所有实际类列的字符串数组。 |
|
用于命名模型监控器从源表中使用的所有数值特征列的字符串数组。 |
|
用于命名模型监控器从源表中使用的所有字符串(分类)特征列的字符串数组。 |
|
用于命名模型监控器从源表中使用的所有布尔(分类)特征列的字符串数组。 |
|
An array of strings naming all segment columns in the data source. For existing model monitors created without segments, this field will be an empty array. |
访问控制要求¶
权限 |
对象 |
备注 |
|---|---|---|
任意 |
模型监控器 |
The USAGE privilege on the parent database and schema are required to perform operations on any object in a schema. Note that a role granted any privilege on a schema allows that role to resolve the schema. For example, a role granted CREATE privilege on a schema can create objects on that schema without also having USAGE granted on that schema.
有关创建具有指定权限集的自定义角色的说明,请参阅 创建自定义角色。
使用说明¶
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.