public class UpdateIntegrationRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
autoRecover
Specifies whether to automatically clear alert events.
|
String |
description
The description of the alert integration.
|
String |
duplicateKey
The fields whose values are deduplicated.
|
String |
extendedFieldRedefineRules
The extended mapped fields are mapped to the fields of ARMS alerts.
|
String |
fieldRedefineRules
The predefined mapped fields are mapped to the fields of ARMS alerts.
|
String |
initiativeRecoverField
The field for clearing alert events.
|
String |
initiativeRecoverValue
The value of the field for clearing alert events.
|
Long |
integrationId
The ID of the alert integration.
|
String |
integrationName
The name of the alert integration.
|
String |
integrationProductType
The service of the alert integration.
|
String |
liveness
The activity of the alert integration
example:
ready
|
Long |
recoverTime
The period of time within which alert events are automatically cleared.
|
String |
stat
The total number of alert events and the number of abnormal alert events in the last hour.
|
Boolean |
state
Indicates whether the alert integration was enabled.
|
| 构造器和说明 |
|---|
UpdateIntegrationRequest() |
@NameInMap(value="AutoRecover") public Boolean autoRecover
Specifies whether to automatically clear alert events. Valid values:
true
@NameInMap(value="Description") public String description
The description of the alert integration.
example:Test
@NameInMap(value="DuplicateKey") public String duplicateKey
The fields whose values are deduplicated.
example:LABEL.dimensions::LABEL.ruleId
@NameInMap(value="ExtendedFieldRedefineRules") public String extendedFieldRedefineRules
The extended mapped fields are mapped to the fields of ARMS alerts. For more information, see the description of the ExtendedFieldRedefineRules parameter.
example:[ { "redefineType":"EXTRACT", "matchExpression":null, "fieldName":"dimensions", "expression":null, "mappingRuleList":[
],
"name":"dimensions",
"integrationId":1234,
"jsonPath":"$.dimensions",
"id":10013,
"fieldType":"LABEL"
},
{
"redefineType":"EXTRACT",
"matchExpression":null,
"fieldName":"expression",
"expression":null,
"mappingRuleList":[
],
"name":"expression",
"integrationId":1234,
"jsonPath":"$.expression",
"id":10014,
"fieldType":"LABEL"
}
]
@NameInMap(value="FieldRedefineRules") public String fieldRedefineRules
The predefined mapped fields are mapped to the fields of ARMS alerts. The predefined mapped fields were generated when the alert integration was created. For more information, see the description of the FieldRedefineRules parameter.
example:[ { "redefineType":"EXTRACT", "matchExpression":null, "fieldName":"alertname", "expression":null, "mappingRuleList":[ ], "name":"Alert name", "integrationId":1234, "jsonPath":"$.alertName", "id":10001, "fieldType":"LABEL" }, { "redefineType":"MAP", "matchExpression":null, "fieldName":"severity", "expression":null, "mappingRuleList":[ { "mappingValue":"critical", "mappingName":"P1", "mappingType":"MAP", "originValue":"CRITICAL" }, { "mappingValue":"error", "mappingName":"P2", "mappingType":"MAP", "originValue":"WARN" }, { "mappingValue":"warning", "mappingName":"P3", "mappingType":"MAP", "originValue":"INFO" } ], "name":"Alert level", "integrationId":1234, "jsonPath":"$.triggerLevel", "id":10002, "fieldType":"LABEL" }, { "redefineType":"EXTRACT", "matchExpression":null, "fieldName":"message", "expression":"{{$labels.namespace}} / {{$labels.dimensions}} Alert content {{ $labels.alertname }}, Current value {{$value}}.", "mappingRuleList":[ ], "name":"Alert description", "integrationId":1234, "jsonPath":null, "id":10003, "fieldType":"ANNOTATION" }, { "redefineType":"EXTRACT", "matchExpression":null, "fieldName":"value", "expression":null, "mappingRuleList":[ ], "name":"Alert sample value", "integrationId":1234, "jsonPath":"$.curValue", "id":10004, "fieldType":"ANNOTATION" }, { "redefineType":"EXTRACT", "matchExpression":null, "fieldName":"source", "expression":null, "mappingRuleList":[ ], "name":"Source", "integrationId":1234, "jsonPath":null, "id":10007, "fieldType":"LABEL" }, { "redefineType":"ADD", "matchExpression":null, "fieldName":"generatorUrl", "expression":"https://cloudmonitor.console.aliyun.com/index.htm#/alarmInfo/name={{$labels.ruleId}}\\&searchValue=\\&searchType=name\\&searchProduct=/history/all/searchKey:{{$labels.ruleId}},startTime:{{sub $startsAt 300000}},endTime:{{$endsAt}}", "mappingRuleList":[ ], "name":"Event URL", "integrationId":1234, "jsonPath":"https://cloudmonitor.console.aliyun.com/index.htm#/alarmInfo/name={{$labels.ruleId}}\\&searchValue=\\&searchType=name\\&searchProduct=/history/all/searchKey:{{$labels.ruleId}},startTime:{{sub $startsAt 300000}},endTime:{{$endsAt}}", "id":10012, "fieldType":"GENERATE_URL" } ]
@NameInMap(value="InitiativeRecoverField") public String initiativeRecoverField
The field for clearing alert events. The system queries alert events based on the field of alert clearing events and clears the alert events.
example:Only the Log Service alert integration supports the parameter.
$.status
@NameInMap(value="InitiativeRecoverValue") public String initiativeRecoverValue
The value of the field for clearing alert events. The system queries alert events based on the field of alert clearing events and clears the alert events.
example:Only the Log Service alert integration supports the parameter.
ok
@NameInMap(value="IntegrationId") public Long integrationId
The ID of the alert integration.
This parameter is required.
example:1234
@NameInMap(value="IntegrationName") public String integrationName
The name of the alert integration.
This parameter is required.
example:CloudMonitor integration
@NameInMap(value="IntegrationProductType") public String integrationProductType
The service of the alert integration. Valid values:
This parameter is required.
example:CLOUD_MONITOR
@NameInMap(value="Liveness") public String liveness
The activity of the alert integration
example:ready
@NameInMap(value="RecoverTime") public Long recoverTime
The period of time within which alert events are automatically cleared. Unit: seconds. Default value: 300.
example:300
@NameInMap(value="Stat") public String stat
The total number of alert events and the number of abnormal alert events in the last hour.
example:[0,0]
@NameInMap(value="State") public Boolean state
Indicates whether the alert integration was enabled. Valid values:
true
public static UpdateIntegrationRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateIntegrationRequest setAutoRecover(Boolean autoRecover)
public Boolean getAutoRecover()
public UpdateIntegrationRequest setDescription(String description)
public String getDescription()
public UpdateIntegrationRequest setDuplicateKey(String duplicateKey)
public String getDuplicateKey()
public UpdateIntegrationRequest setExtendedFieldRedefineRules(String extendedFieldRedefineRules)
public String getExtendedFieldRedefineRules()
public UpdateIntegrationRequest setFieldRedefineRules(String fieldRedefineRules)
public String getFieldRedefineRules()
public UpdateIntegrationRequest setInitiativeRecoverField(String initiativeRecoverField)
public String getInitiativeRecoverField()
public UpdateIntegrationRequest setInitiativeRecoverValue(String initiativeRecoverValue)
public String getInitiativeRecoverValue()
public UpdateIntegrationRequest setIntegrationId(Long integrationId)
public Long getIntegrationId()
public UpdateIntegrationRequest setIntegrationName(String integrationName)
public String getIntegrationName()
public UpdateIntegrationRequest setIntegrationProductType(String integrationProductType)
public String getIntegrationProductType()
public UpdateIntegrationRequest setLiveness(String liveness)
public String getLiveness()
public UpdateIntegrationRequest setRecoverTime(Long recoverTime)
public Long getRecoverTime()
public UpdateIntegrationRequest setStat(String stat)
public String getStat()
public UpdateIntegrationRequest setState(Boolean state)
public Boolean getState()
Copyright © 2024. All rights reserved.