| Package | Description |
|---|---|
| com.huaweicloud.sdk.aom.v2.model |
| Modifier and Type | Method and Description |
|---|---|
DiscoveryRule |
DiscoveryRule.addCheckContentItem(String checkContentItem) |
DiscoveryRule |
DiscoveryRule.withCheckContent(java.util.function.Consumer<List<String>> checkContentSetter) |
DiscoveryRule |
DiscoveryRule.withCheckContent(List<String> checkContent) |
DiscoveryRule |
DiscoveryRule.withCheckMode(String checkMode) |
DiscoveryRule |
DiscoveryRule.withCheckType(String checkType) |
| Modifier and Type | Method and Description |
|---|---|
List<DiscoveryRule> |
AppRulesSpec.getDiscoveryRule()
规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。 checkType为cmdLine时checkMode填contain,checkContent格式为[“xxx”]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填contain,checkContent格式为 [\"k1\",\"v1\"]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equals,checkContent格式为节点ID数组[\"hostId1”,”hostId2”],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。
|
| Modifier and Type | Method and Description |
|---|---|
AppRulesSpec |
AppRulesSpec.addDiscoveryRuleItem(DiscoveryRule discoveryRuleItem) |
| Modifier and Type | Method and Description |
|---|---|
void |
AppRulesSpec.setDiscoveryRule(List<DiscoveryRule> discoveryRule) |
AppRulesSpec |
AppRulesSpec.withDiscoveryRule(java.util.function.Consumer<List<DiscoveryRule>> discoveryRuleSetter) |
AppRulesSpec |
AppRulesSpec.withDiscoveryRule(List<DiscoveryRule> discoveryRule) |
Copyright © 2022. All rights reserved.