public class MetricDefinition
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
description
The description of the metric.
|
String |
name
The name of the metric.
|
String |
regex
The regular expression to collect metrics from logs.
|
| 构造器和说明 |
|---|
MetricDefinition() |
| 限定符和类型 | 方法和说明 |
|---|---|
static MetricDefinition |
build(Map<String,?> map) |
String |
getDescription() |
String |
getName() |
String |
getRegex() |
MetricDefinition |
setDescription(String description) |
MetricDefinition |
setName(String name) |
MetricDefinition |
setRegex(String regex) |
@NameInMap(value="Description") public String description
The description of the metric.
example:训练损失函数。
@NameInMap(value="Name") public String name
The name of the metric.
This parameter is required.
example:loss
@NameInMap(value="Regex") public String regex
The regular expression to collect metrics from logs.
This parameter is required.
example:.train:loss=([-+]?[0-9]\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*
public static MetricDefinition build(Map<String,?> map) throws Exception
Exceptionpublic MetricDefinition setDescription(String description)
public String getDescription()
public MetricDefinition setName(String name)
public String getName()
public MetricDefinition setRegex(String regex)
public String getRegex()
Copyright © 2026. All rights reserved.