index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetMultipleTraceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetMultipleTraceResponse;
import com.aliyuncs.arms.model.v20190808.GetMultipleTraceResponse.MultiCallChainInfo;
import com.aliyuncs.arms.model.v20190808.GetMultipleTraceResponse.MultiCallChainInfo.Span;
import com.aliyuncs.arms.model.v20190808.GetMultipleTraceResponse.MultiCallChainInfo.Span.LogEvent;
import com.aliyuncs.arms.model.v20190808.GetMultipleTraceResponse.MultiCallChainInfo.Span.LogEvent.TagEntry2;
import com.aliyuncs.arms.model.v20190808.GetMultipleTraceResponse.MultiCallChainInfo.Span.TagEntry;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetMultipleTraceResponseUnmarshaller {
public static GetMultipleTraceResponse unmarshall(GetMultipleTraceResponse getMultipleTraceResponse, UnmarshallerContext _ctx) {
getMultipleTraceResponse.setRequestId(_ctx.stringValue("GetMultipleTraceResponse.RequestId"));
List<MultiCallChainInfo> multiCallChainInfos = new ArrayList<MultiCallChainInfo>();
for (int i = 0; i < _ctx.lengthValue("GetMultipleTraceResponse.MultiCallChainInfos.Length"); i++) {
MultiCallChainInfo multiCallChainInfo = new MultiCallChainInfo();
multiCallChainInfo.setTraceID(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].TraceID"));
List<Span> spans = new ArrayList<Span>();
for (int j = 0; j < _ctx.lengthValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans.Length"); j++) {
Span span = new Span();
span.setSpanId(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].SpanId"));
span.setOperationName(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].OperationName"));
span.setResultCode(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].ResultCode"));
span.setTimestamp(_ctx.longValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].Timestamp"));
span.setRpcType(_ctx.integerValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].RpcType"));
span.setServiceIp(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].ServiceIp"));
span.setHaveStack(_ctx.booleanValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].HaveStack"));
span.setParentSpanId(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].ParentSpanId"));
span.setDuration(_ctx.longValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].Duration"));
span.setRpcId(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].RpcId"));
span.setServiceName(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].ServiceName"));
span.setTraceID(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].TraceID"));
List<TagEntry> tagEntryList = new ArrayList<TagEntry>();
for (int k = 0; k < _ctx.lengthValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].TagEntryList.Length"); k++) {
TagEntry tagEntry = new TagEntry();
tagEntry.setKey(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].TagEntryList["+ k +"].Key"));
tagEntry.setValue(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].TagEntryList["+ k +"].Value"));
tagEntryList.add(tagEntry);
}
span.setTagEntryList(tagEntryList);
List<LogEvent> logEventList = new ArrayList<LogEvent>();
for (int k = 0; k < _ctx.lengthValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].LogEventList.Length"); k++) {
LogEvent logEvent = new LogEvent();
logEvent.setTimestamp(_ctx.longValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].LogEventList["+ k +"].Timestamp"));
List<TagEntry2> tagEntryList1 = new ArrayList<TagEntry2>();
for (int l = 0; l < _ctx.lengthValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].LogEventList["+ k +"].TagEntryList.Length"); l++) {
TagEntry2 tagEntry2 = new TagEntry2();
tagEntry2.setKey(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].LogEventList["+ k +"].TagEntryList["+ l +"].Key"));
tagEntry2.setValue(_ctx.stringValue("GetMultipleTraceResponse.MultiCallChainInfos["+ i +"].Spans["+ j +"].LogEventList["+ k +"].TagEntryList["+ l +"].Value"));
tagEntryList1.add(tagEntry2);
}
logEvent.setTagEntryList1(tagEntryList1);
logEventList.add(logEvent);
}
span.setLogEventList(logEventList);
spans.add(span);
}
multiCallChainInfo.setSpans(spans);
multiCallChainInfos.add(multiCallChainInfo);
}
getMultipleTraceResponse.setMultiCallChainInfos(multiCallChainInfos);
return getMultipleTraceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetOnCallSchedulesDetailResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetOnCallSchedulesDetailResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetOnCallSchedulesDetailResponseUnmarshaller {
public static GetOnCallSchedulesDetailResponse unmarshall(GetOnCallSchedulesDetailResponse getOnCallSchedulesDetailResponse, UnmarshallerContext _ctx) {
return getOnCallSchedulesDetailResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetPrometheusApiTokenResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetPrometheusApiTokenResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetPrometheusApiTokenResponseUnmarshaller {
public static GetPrometheusApiTokenResponse unmarshall(GetPrometheusApiTokenResponse getPrometheusApiTokenResponse, UnmarshallerContext _ctx) {
getPrometheusApiTokenResponse.setRequestId(_ctx.stringValue("GetPrometheusApiTokenResponse.RequestId"));
getPrometheusApiTokenResponse.setToken(_ctx.stringValue("GetPrometheusApiTokenResponse.Token"));
return getPrometheusApiTokenResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetPrometheusGlobalViewResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetPrometheusGlobalViewResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetPrometheusGlobalViewResponseUnmarshaller {
public static GetPrometheusGlobalViewResponse unmarshall(GetPrometheusGlobalViewResponse getPrometheusGlobalViewResponse, UnmarshallerContext _ctx) {
getPrometheusGlobalViewResponse.setRequestId(_ctx.stringValue("GetPrometheusGlobalViewResponse.RequestId"));
getPrometheusGlobalViewResponse.setData(_ctx.stringValue("GetPrometheusGlobalViewResponse.Data"));
getPrometheusGlobalViewResponse.setCode(_ctx.integerValue("GetPrometheusGlobalViewResponse.Code"));
getPrometheusGlobalViewResponse.setMessage(_ctx.stringValue("GetPrometheusGlobalViewResponse.Message"));
return getPrometheusGlobalViewResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetPrometheusInstanceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetPrometheusInstanceResponse;
import com.aliyuncs.arms.model.v20190808.GetPrometheusInstanceResponse.Data;
import com.aliyuncs.arms.model.v20190808.GetPrometheusInstanceResponse.Data.TagsItem;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetPrometheusInstanceResponseUnmarshaller {
public static GetPrometheusInstanceResponse unmarshall(GetPrometheusInstanceResponse getPrometheusInstanceResponse, UnmarshallerContext _ctx) {
getPrometheusInstanceResponse.setRequestId(_ctx.stringValue("GetPrometheusInstanceResponse.RequestId"));
getPrometheusInstanceResponse.setMessage(_ctx.stringValue("GetPrometheusInstanceResponse.Message"));
getPrometheusInstanceResponse.setCode(_ctx.integerValue("GetPrometheusInstanceResponse.Code"));
Data data = new Data();
data.setClusterId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.ClusterId"));
data.setRegionId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.RegionId"));
data.setUserId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.UserId"));
data.setClusterName(_ctx.stringValue("GetPrometheusInstanceResponse.Data.ClusterName"));
data.setClusterType(_ctx.stringValue("GetPrometheusInstanceResponse.Data.ClusterType"));
data.setVpcId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.VpcId"));
data.setVSwitchId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.VSwitchId"));
data.setSecurityGroupId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.SecurityGroupId"));
data.setSubClustersJson(_ctx.stringValue("GetPrometheusInstanceResponse.Data.SubClustersJson"));
data.setRemoteReadIntraUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.RemoteReadIntraUrl"));
data.setRemoteReadInterUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.RemoteReadInterUrl"));
data.setRemoteWriteIntraUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.RemoteWriteIntraUrl"));
data.setRemoteWriteInterUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.RemoteWriteInterUrl"));
data.setPushGatewayIntraUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.PushGatewayIntraUrl"));
data.setPushGatewayInterUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.PushGatewayInterUrl"));
data.setHttpApiIntraUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.HttpApiIntraUrl"));
data.setHttpApiInterUrl(_ctx.stringValue("GetPrometheusInstanceResponse.Data.HttpApiInterUrl"));
data.setAuthToken(_ctx.stringValue("GetPrometheusInstanceResponse.Data.AuthToken"));
data.setAccessType(_ctx.stringValue("GetPrometheusInstanceResponse.Data.AccessType"));
data.setPaymentType(_ctx.stringValue("GetPrometheusInstanceResponse.Data.PaymentType"));
data.setStorageDuration(_ctx.integerValue("GetPrometheusInstanceResponse.Data.StorageDuration"));
data.setArchiveDuration(_ctx.integerValue("GetPrometheusInstanceResponse.Data.ArchiveDuration"));
data.setGrafanaInstanceId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.GrafanaInstanceId"));
data.setResourceGroupId(_ctx.stringValue("GetPrometheusInstanceResponse.Data.ResourceGroupId"));
data.setResourceType(_ctx.stringValue("GetPrometheusInstanceResponse.Data.ResourceType"));
data.setEnableAuthToken(_ctx.stringValue("GetPrometheusInstanceResponse.Data.EnableAuthToken"));
data.setEnableAuthFreeRead(_ctx.booleanValue("GetPrometheusInstanceResponse.Data.EnableAuthFreeRead"));
data.setAuthFreeReadPolicy(_ctx.stringValue("GetPrometheusInstanceResponse.Data.AuthFreeReadPolicy"));
data.setEnableAuthFreeWrite(_ctx.booleanValue("GetPrometheusInstanceResponse.Data.EnableAuthFreeWrite"));
data.setAuthFreeWritePolicy(_ctx.stringValue("GetPrometheusInstanceResponse.Data.AuthFreeWritePolicy"));
data.setProduct(_ctx.stringValue("GetPrometheusInstanceResponse.Data.Product"));
data.setDbInstanceStatus(_ctx.stringValue("GetPrometheusInstanceResponse.Data.DbInstanceStatus"));
data.setVersion(_ctx.stringValue("GetPrometheusInstanceResponse.Data.Version"));
data.setPaymentTypeUpdateTime(_ctx.stringValue("GetPrometheusInstanceResponse.Data.PaymentTypeUpdateTime"));
data.setExtraInfo(_ctx.mapValue("GetPrometheusInstanceResponse.Data.ExtraInfo"));
List<String> supportAuthTypes = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("GetPrometheusInstanceResponse.Data.SupportAuthTypes.Length"); i++) {
supportAuthTypes.add(_ctx.stringValue("GetPrometheusInstanceResponse.Data.SupportAuthTypes["+ i +"]"));
}
data.setSupportAuthTypes(supportAuthTypes);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int i = 0; i < _ctx.lengthValue("GetPrometheusInstanceResponse.Data.Tags.Length"); i++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setTagKey(_ctx.stringValue("GetPrometheusInstanceResponse.Data.Tags["+ i +"].TagKey"));
tagsItem.setTagValue(_ctx.stringValue("GetPrometheusInstanceResponse.Data.Tags["+ i +"].TagValue"));
tags.add(tagsItem);
}
data.setTags(tags);
getPrometheusInstanceResponse.setData(data);
return getPrometheusInstanceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetPrometheusIntegrationResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetPrometheusIntegrationResponse;
import com.aliyuncs.arms.model.v20190808.GetPrometheusIntegrationResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetPrometheusIntegrationResponseUnmarshaller {
public static GetPrometheusIntegrationResponse unmarshall(GetPrometheusIntegrationResponse getPrometheusIntegrationResponse, UnmarshallerContext _ctx) {
getPrometheusIntegrationResponse.setRequestId(_ctx.stringValue("GetPrometheusIntegrationResponse.RequestId"));
getPrometheusIntegrationResponse.setCode(_ctx.integerValue("GetPrometheusIntegrationResponse.Code"));
getPrometheusIntegrationResponse.setMessage(_ctx.stringValue("GetPrometheusIntegrationResponse.Message"));
Data data = new Data();
data.setClusterId(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.ClusterId"));
data.setInstanceId(_ctx.longValue("GetPrometheusIntegrationResponse.Data.InstanceId"));
data.setShowDescribe(_ctx.booleanValue("GetPrometheusIntegrationResponse.Data.ShowDescribe"));
data.setNeedUpgrade(_ctx.booleanValue("GetPrometheusIntegrationResponse.Data.NeedUpgrade"));
data.setInstanceName(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.InstanceName"));
data.setIntegrationType(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.IntegrationType"));
data.setExporterType(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.ExporterType"));
data.setVersion(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.Version"));
data.setTarget(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.Target"));
data.setCanDelete(_ctx.booleanValue("GetPrometheusIntegrationResponse.Data.CanDelete"));
data.setCanEditor(_ctx.booleanValue("GetPrometheusIntegrationResponse.Data.CanEditor"));
data.setStatus(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.Status"));
data.setDescribe(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.Describe"));
data.setShowLog(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.ShowLog"));
data.setNamespace(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.Namespace"));
data.setContainerName(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.ContainerName"));
data.setParam(_ctx.stringValue("GetPrometheusIntegrationResponse.Data.Param"));
getPrometheusIntegrationResponse.setData(data);
return getPrometheusIntegrationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetPrometheusMonitoringResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetPrometheusMonitoringResponse;
import com.aliyuncs.arms.model.v20190808.GetPrometheusMonitoringResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetPrometheusMonitoringResponseUnmarshaller {
public static GetPrometheusMonitoringResponse unmarshall(GetPrometheusMonitoringResponse getPrometheusMonitoringResponse, UnmarshallerContext _ctx) {
getPrometheusMonitoringResponse.setRequestId(_ctx.stringValue("GetPrometheusMonitoringResponse.RequestId"));
getPrometheusMonitoringResponse.setCode(_ctx.integerValue("GetPrometheusMonitoringResponse.Code"));
getPrometheusMonitoringResponse.setMessage(_ctx.stringValue("GetPrometheusMonitoringResponse.Message"));
Data data = new Data();
data.setClusterId(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.ClusterId"));
data.setMonitoringName(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.MonitoringName"));
data.setType(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.Type"));
data.setStatus(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.Status"));
data.setConfigYaml(_ctx.stringValue("GetPrometheusMonitoringResponse.Data.ConfigYaml"));
getPrometheusMonitoringResponse.setData(data);
return getPrometheusMonitoringResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRecordingRuleResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetRecordingRuleResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRecordingRuleResponseUnmarshaller {
public static GetRecordingRuleResponse unmarshall(GetRecordingRuleResponse getRecordingRuleResponse, UnmarshallerContext _ctx) {
getRecordingRuleResponse.setRequestId(_ctx.stringValue("GetRecordingRuleResponse.RequestId"));
getRecordingRuleResponse.setData(_ctx.stringValue("GetRecordingRuleResponse.Data"));
getRecordingRuleResponse.setCode(_ctx.integerValue("GetRecordingRuleResponse.Code"));
getRecordingRuleResponse.setMessage(_ctx.stringValue("GetRecordingRuleResponse.Message"));
return getRecordingRuleResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRetcodeAppByPidResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetRetcodeAppByPidResponse;
import com.aliyuncs.arms.model.v20190808.GetRetcodeAppByPidResponse.RetcodeApp;
import com.aliyuncs.arms.model.v20190808.GetRetcodeAppByPidResponse.RetcodeApp.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRetcodeAppByPidResponseUnmarshaller {
public static GetRetcodeAppByPidResponse unmarshall(GetRetcodeAppByPidResponse getRetcodeAppByPidResponse, UnmarshallerContext _ctx) {
getRetcodeAppByPidResponse.setRequestId(_ctx.stringValue("GetRetcodeAppByPidResponse.RequestId"));
RetcodeApp retcodeApp = new RetcodeApp();
retcodeApp.setAppName(_ctx.stringValue("GetRetcodeAppByPidResponse.RetcodeApp.AppName"));
retcodeApp.setRetcodeAppType(_ctx.stringValue("GetRetcodeAppByPidResponse.RetcodeApp.RetcodeAppType"));
retcodeApp.setAppId(_ctx.stringValue("GetRetcodeAppByPidResponse.RetcodeApp.AppId"));
retcodeApp.setPid(_ctx.stringValue("GetRetcodeAppByPidResponse.RetcodeApp.Pid"));
retcodeApp.setResourceGroupId(_ctx.stringValue("GetRetcodeAppByPidResponse.RetcodeApp.ResourceGroupId"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int i = 0; i < _ctx.lengthValue("GetRetcodeAppByPidResponse.RetcodeApp.Tags.Length"); i++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("GetRetcodeAppByPidResponse.RetcodeApp.Tags["+ i +"].Key"));
tagsItem.setValue(_ctx.stringValue("GetRetcodeAppByPidResponse.RetcodeApp.Tags["+ i +"].Value"));
tags.add(tagsItem);
}
retcodeApp.setTags(tags);
getRetcodeAppByPidResponse.setRetcodeApp(retcodeApp);
return getRetcodeAppByPidResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRetcodeDataByQueryResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetRetcodeDataByQueryResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRetcodeDataByQueryResponseUnmarshaller {
public static GetRetcodeDataByQueryResponse unmarshall(GetRetcodeDataByQueryResponse getRetcodeDataByQueryResponse, UnmarshallerContext _ctx) {
getRetcodeDataByQueryResponse.setRequestId(_ctx.stringValue("GetRetcodeDataByQueryResponse.RequestId"));
getRetcodeDataByQueryResponse.setCode(_ctx.stringValue("GetRetcodeDataByQueryResponse.Code"));
getRetcodeDataByQueryResponse.setMessage(_ctx.stringValue("GetRetcodeDataByQueryResponse.Message"));
getRetcodeDataByQueryResponse.setSuccess(_ctx.booleanValue("GetRetcodeDataByQueryResponse.Success"));
getRetcodeDataByQueryResponse.setData(_ctx.stringValue("GetRetcodeDataByQueryResponse.Data"));
return getRetcodeDataByQueryResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRetcodeLogstoreResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetRetcodeLogstoreResponse;
import com.aliyuncs.arms.model.v20190808.GetRetcodeLogstoreResponse.Data;
import com.aliyuncs.arms.model.v20190808.GetRetcodeLogstoreResponse.Data.RetcodeSLSConfig;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRetcodeLogstoreResponseUnmarshaller {
public static GetRetcodeLogstoreResponse unmarshall(GetRetcodeLogstoreResponse getRetcodeLogstoreResponse, UnmarshallerContext _ctx) {
getRetcodeLogstoreResponse.setRequestId(_ctx.stringValue("GetRetcodeLogstoreResponse.RequestId"));
Data data = new Data();
data.setStatus(_ctx.stringValue("GetRetcodeLogstoreResponse.Data.Status"));
data.setMessage(_ctx.stringValue("GetRetcodeLogstoreResponse.Data.Message"));
RetcodeSLSConfig retcodeSLSConfig = new RetcodeSLSConfig();
retcodeSLSConfig.setRegionId(_ctx.stringValue("GetRetcodeLogstoreResponse.Data.RetcodeSLSConfig.RegionId"));
retcodeSLSConfig.setProject(_ctx.stringValue("GetRetcodeLogstoreResponse.Data.RetcodeSLSConfig.Project"));
retcodeSLSConfig.setLogstore(_ctx.stringValue("GetRetcodeLogstoreResponse.Data.RetcodeSLSConfig.Logstore"));
data.setRetcodeSLSConfig(retcodeSLSConfig);
getRetcodeLogstoreResponse.setData(data);
return getRetcodeLogstoreResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRetcodeShareUrlResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetRetcodeShareUrlResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRetcodeShareUrlResponseUnmarshaller {
public static GetRetcodeShareUrlResponse unmarshall(GetRetcodeShareUrlResponse getRetcodeShareUrlResponse, UnmarshallerContext _ctx) {
getRetcodeShareUrlResponse.setRequestId(_ctx.stringValue("GetRetcodeShareUrlResponse.RequestId"));
getRetcodeShareUrlResponse.setUrl(_ctx.stringValue("GetRetcodeShareUrlResponse.Url"));
return getRetcodeShareUrlResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRumAppInfoResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetRumAppInfoResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRumAppInfoResponseUnmarshaller {
public static GetRumAppInfoResponse unmarshall(GetRumAppInfoResponse getRumAppInfoResponse, UnmarshallerContext _ctx) {
return getRumAppInfoResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRumAppsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetRumAppsResponse;
import com.aliyuncs.arms.model.v20190808.GetRumAppsResponse.AppListItem;
import com.aliyuncs.arms.model.v20190808.GetRumAppsResponse.AppListItem.ServiceDomainConfigsItem;
import com.aliyuncs.arms.model.v20190808.GetRumAppsResponse.AppListItem.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRumAppsResponseUnmarshaller {
public static GetRumAppsResponse unmarshall(GetRumAppsResponse getRumAppsResponse, UnmarshallerContext _ctx) {
getRumAppsResponse.setRequestId(_ctx.stringValue("GetRumAppsResponse.RequestId"));
getRumAppsResponse.setCode(_ctx.integerValue("GetRumAppsResponse.Code"));
getRumAppsResponse.setSuccess(_ctx.booleanValue("GetRumAppsResponse.Success"));
getRumAppsResponse.setMessage(_ctx.stringValue("GetRumAppsResponse.Message"));
getRumAppsResponse.setHttpStatusCode(_ctx.integerValue("GetRumAppsResponse.HttpStatusCode"));
List<AppListItem> appList = new ArrayList<AppListItem>();
for (int i = 0; i < _ctx.lengthValue("GetRumAppsResponse.AppList.Length"); i++) {
AppListItem appListItem = new AppListItem();
appListItem.setName(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Name"));
appListItem.setPid(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Pid"));
appListItem.setType(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Type"));
appListItem.setNickName(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].NickName"));
appListItem.setRegionId(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].RegionId"));
appListItem.setAppType(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].AppType"));
appListItem.setStatus(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Status"));
appListItem.setResourceGroupId(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].ResourceGroupId"));
appListItem.setIsSubscription(_ctx.booleanValue("GetRumAppsResponse.AppList["+ i +"].IsSubscription"));
appListItem.setDescription(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Description"));
appListItem.setPackageName(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].PackageName"));
appListItem.setEndpoint(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Endpoint"));
appListItem.setSlsProject(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].SlsProject"));
appListItem.setSlsLogstore(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].SlsLogstore"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("GetRumAppsResponse.AppList["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
appListItem.setTags(tags);
List<ServiceDomainConfigsItem> serviceDomainConfigs = new ArrayList<ServiceDomainConfigsItem>();
for (int j = 0; j < _ctx.lengthValue("GetRumAppsResponse.AppList["+ i +"].ServiceDomainConfigs.Length"); j++) {
ServiceDomainConfigsItem serviceDomainConfigsItem = new ServiceDomainConfigsItem();
serviceDomainConfigsItem.setDomain(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].ServiceDomainConfigs["+ j +"].Domain"));
serviceDomainConfigsItem.setDescription(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].ServiceDomainConfigs["+ j +"].Description"));
serviceDomainConfigsItem.setTracing(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].ServiceDomainConfigs["+ j +"].Tracing"));
List<String> propagatorTypes = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("GetRumAppsResponse.AppList["+ i +"].ServiceDomainConfigs["+ j +"].PropagatorTypes.Length"); k++) {
propagatorTypes.add(_ctx.stringValue("GetRumAppsResponse.AppList["+ i +"].ServiceDomainConfigs["+ j +"].PropagatorTypes["+ k +"]"));
}
serviceDomainConfigsItem.setPropagatorTypes(propagatorTypes);
serviceDomainConfigs.add(serviceDomainConfigsItem);
}
appListItem.setServiceDomainConfigs(serviceDomainConfigs);
appList.add(appListItem);
}
getRumAppsResponse.setAppList(appList);
return getRumAppsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRumDataForPageResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetRumDataForPageResponse;
import com.aliyuncs.arms.model.v20190808.GetRumDataForPageResponse.Data;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRumDataForPageResponseUnmarshaller {
public static GetRumDataForPageResponse unmarshall(GetRumDataForPageResponse getRumDataForPageResponse, UnmarshallerContext _ctx) {
getRumDataForPageResponse.setRequestId(_ctx.stringValue("GetRumDataForPageResponse.RequestId"));
getRumDataForPageResponse.setCode(_ctx.stringValue("GetRumDataForPageResponse.Code"));
getRumDataForPageResponse.setSuccess(_ctx.stringValue("GetRumDataForPageResponse.Success"));
getRumDataForPageResponse.setMessage(_ctx.stringValue("GetRumDataForPageResponse.Message"));
getRumDataForPageResponse.setHttpStatusCode(_ctx.stringValue("GetRumDataForPageResponse.HttpStatusCode"));
Data data = new Data();
data.setTotal(_ctx.stringValue("GetRumDataForPageResponse.Data.Total"));
data.setPage(_ctx.stringValue("GetRumDataForPageResponse.Data.Page"));
data.setPageSize(_ctx.stringValue("GetRumDataForPageResponse.Data.PageSize"));
data.setAuthentication(_ctx.stringValue("GetRumDataForPageResponse.Data.Authentication"));
data.setCompletion(_ctx.stringValue("GetRumDataForPageResponse.Data.Completion"));
data.setPreference(_ctx.stringValue("GetRumDataForPageResponse.Data.Preference"));
List<Map<Object, Object>> items = _ctx.listMapValue("GetRumDataForPageResponse.Data.Items");
data.setItems(items);
getRumDataForPageResponse.setData(data);
return getRumDataForPageResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRumExceptionStackResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetRumExceptionStackResponse;
import com.aliyuncs.arms.model.v20190808.GetRumExceptionStackResponse.Data;
import com.aliyuncs.arms.model.v20190808.GetRumExceptionStackResponse.Data.ThreadInfoListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRumExceptionStackResponseUnmarshaller {
public static GetRumExceptionStackResponse unmarshall(GetRumExceptionStackResponse getRumExceptionStackResponse, UnmarshallerContext _ctx) {
getRumExceptionStackResponse.setRequestId(_ctx.stringValue("GetRumExceptionStackResponse.RequestId"));
getRumExceptionStackResponse.setCode(_ctx.stringValue("GetRumExceptionStackResponse.Code"));
getRumExceptionStackResponse.setSuccess(_ctx.stringValue("GetRumExceptionStackResponse.Success"));
getRumExceptionStackResponse.setMessage(_ctx.stringValue("GetRumExceptionStackResponse.Message"));
getRumExceptionStackResponse.setHttpStatusCode(_ctx.stringValue("GetRumExceptionStackResponse.HttpStatusCode"));
Data data = new Data();
data.setThreadId(_ctx.stringValue("GetRumExceptionStackResponse.Data.ThreadId"));
data.setCrashReason(_ctx.stringValue("GetRumExceptionStackResponse.Data.CrashReason"));
data.setCrashAddress(_ctx.stringValue("GetRumExceptionStackResponse.Data.CrashAddress"));
data.setModuleName(_ctx.stringValue("GetRumExceptionStackResponse.Data.ModuleName"));
data.setUuid(_ctx.stringValue("GetRumExceptionStackResponse.Data.Uuid"));
data.setBinaryImages(_ctx.stringValue("GetRumExceptionStackResponse.Data.BinaryImages"));
List<String> lines = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("GetRumExceptionStackResponse.Data.Lines.Length"); i++) {
lines.add(_ctx.stringValue("GetRumExceptionStackResponse.Data.Lines["+ i +"]"));
}
data.setLines(lines);
List<ThreadInfoListItem> threadInfoList = new ArrayList<ThreadInfoListItem>();
for (int i = 0; i < _ctx.lengthValue("GetRumExceptionStackResponse.Data.ThreadInfoList.Length"); i++) {
ThreadInfoListItem threadInfoListItem = new ThreadInfoListItem();
threadInfoListItem.setThreadTag(_ctx.stringValue("GetRumExceptionStackResponse.Data.ThreadInfoList["+ i +"].ThreadTag"));
threadInfoListItem.setThreadDetail(_ctx.stringValue("GetRumExceptionStackResponse.Data.ThreadInfoList["+ i +"].ThreadDetail"));
threadInfoList.add(threadInfoListItem);
}
data.setThreadInfoList(threadInfoList);
getRumExceptionStackResponse.setData(data);
return getRumExceptionStackResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRumOcuStatisticDataResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetRumOcuStatisticDataResponse;
import com.aliyuncs.arms.model.v20190808.GetRumOcuStatisticDataResponse.Data;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRumOcuStatisticDataResponseUnmarshaller {
public static GetRumOcuStatisticDataResponse unmarshall(GetRumOcuStatisticDataResponse getRumOcuStatisticDataResponse, UnmarshallerContext _ctx) {
getRumOcuStatisticDataResponse.setRequestId(_ctx.stringValue("GetRumOcuStatisticDataResponse.RequestId"));
getRumOcuStatisticDataResponse.setCode(_ctx.longValue("GetRumOcuStatisticDataResponse.Code"));
getRumOcuStatisticDataResponse.setMessage(_ctx.stringValue("GetRumOcuStatisticDataResponse.Message"));
Data data = new Data();
data.setTotal(_ctx.integerValue("GetRumOcuStatisticDataResponse.Data.Total"));
data.setPage(_ctx.integerValue("GetRumOcuStatisticDataResponse.Data.Page"));
data.setPageSize(_ctx.integerValue("GetRumOcuStatisticDataResponse.Data.PageSize"));
data.setComplete(_ctx.booleanValue("GetRumOcuStatisticDataResponse.Data.Complete"));
List<Map<Object, Object>> items = _ctx.listMapValue("GetRumOcuStatisticDataResponse.Data.Items");
data.setItems(items);
getRumOcuStatisticDataResponse.setData(data);
return getRumOcuStatisticDataResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetRumUploadFilesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetRumUploadFilesResponse;
import com.aliyuncs.arms.model.v20190808.GetRumUploadFilesResponse.DataItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetRumUploadFilesResponseUnmarshaller {
public static GetRumUploadFilesResponse unmarshall(GetRumUploadFilesResponse getRumUploadFilesResponse, UnmarshallerContext _ctx) {
getRumUploadFilesResponse.setRequestId(_ctx.stringValue("GetRumUploadFilesResponse.RequestId"));
getRumUploadFilesResponse.setCode(_ctx.integerValue("GetRumUploadFilesResponse.Code"));
getRumUploadFilesResponse.setMessage(_ctx.stringValue("GetRumUploadFilesResponse.Message"));
getRumUploadFilesResponse.setHttpStatusCode(_ctx.integerValue("GetRumUploadFilesResponse.HttpStatusCode"));
getRumUploadFilesResponse.setSuccess(_ctx.booleanValue("GetRumUploadFilesResponse.Success"));
List<DataItem> data = new ArrayList<DataItem>();
for (int i = 0; i < _ctx.lengthValue("GetRumUploadFilesResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setFileName(_ctx.stringValue("GetRumUploadFilesResponse.Data["+ i +"].FileName"));
dataItem.setUuid(_ctx.stringValue("GetRumUploadFilesResponse.Data["+ i +"].Uuid"));
dataItem.setSize(_ctx.stringValue("GetRumUploadFilesResponse.Data["+ i +"].Size"));
dataItem.setVersionId(_ctx.stringValue("GetRumUploadFilesResponse.Data["+ i +"].VersionId"));
data.add(dataItem);
}
getRumUploadFilesResponse.setData(data);
return getRumUploadFilesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetSourceMapInfoResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetSourceMapInfoResponse;
import com.aliyuncs.arms.model.v20190808.GetSourceMapInfoResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetSourceMapInfoResponseUnmarshaller {
public static GetSourceMapInfoResponse unmarshall(GetSourceMapInfoResponse getSourceMapInfoResponse, UnmarshallerContext _ctx) {
getSourceMapInfoResponse.setRequestId(_ctx.stringValue("GetSourceMapInfoResponse.RequestId"));
List<Data> sourceMapList = new ArrayList<Data>();
for (int i = 0; i < _ctx.lengthValue("GetSourceMapInfoResponse.SourceMapList.Length"); i++) {
Data data = new Data();
data.setFid(_ctx.stringValue("GetSourceMapInfoResponse.SourceMapList["+ i +"].Fid"));
data.setFileName(_ctx.stringValue("GetSourceMapInfoResponse.SourceMapList["+ i +"].FileName"));
data.setSize(_ctx.stringValue("GetSourceMapInfoResponse.SourceMapList["+ i +"].Size"));
data.setUploadTime(_ctx.stringValue("GetSourceMapInfoResponse.SourceMapList["+ i +"].UploadTime"));
data.setVersion(_ctx.stringValue("GetSourceMapInfoResponse.SourceMapList["+ i +"].Version"));
sourceMapList.add(data);
}
getSourceMapInfoResponse.setSourceMapList(sourceMapList);
return getSourceMapInfoResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetStackResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetStackResponse;
import com.aliyuncs.arms.model.v20190808.GetStackResponse.StackInfoItem;
import com.aliyuncs.arms.model.v20190808.GetStackResponse.StackInfoItem.ExtInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetStackResponseUnmarshaller {
public static GetStackResponse unmarshall(GetStackResponse getStackResponse, UnmarshallerContext _ctx) {
getStackResponse.setRequestId(_ctx.stringValue("GetStackResponse.RequestId"));
List<StackInfoItem> stackInfo = new ArrayList<StackInfoItem>();
for (int i = 0; i < _ctx.lengthValue("GetStackResponse.StackInfo.Length"); i++) {
StackInfoItem stackInfoItem = new StackInfoItem();
stackInfoItem.setStartTime(_ctx.longValue("GetStackResponse.StackInfo["+ i +"].StartTime"));
stackInfoItem.setException(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].Exception"));
stackInfoItem.setApi(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].Api"));
stackInfoItem.setLine(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].Line"));
stackInfoItem.setDuration(_ctx.longValue("GetStackResponse.StackInfo["+ i +"].Duration"));
stackInfoItem.setRpcId(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].RpcId"));
stackInfoItem.setServiceName(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].ServiceName"));
stackInfoItem.setCallCount(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].CallCount"));
ExtInfo extInfo = new ExtInfo();
extInfo.setType(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].ExtInfo.Type"));
extInfo.setInfo(_ctx.stringValue("GetStackResponse.StackInfo["+ i +"].ExtInfo.Info"));
stackInfoItem.setExtInfo(extInfo);
stackInfo.add(stackInfoItem);
}
getStackResponse.setStackInfo(stackInfo);
return getStackResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetSyntheticMonitorsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetSyntheticMonitorsResponse;
import com.aliyuncs.arms.model.v20190808.GetSyntheticMonitorsResponse.DataItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetSyntheticMonitorsResponseUnmarshaller {
public static GetSyntheticMonitorsResponse unmarshall(GetSyntheticMonitorsResponse getSyntheticMonitorsResponse, UnmarshallerContext _ctx) {
getSyntheticMonitorsResponse.setRequestId(_ctx.stringValue("GetSyntheticMonitorsResponse.RequestId"));
getSyntheticMonitorsResponse.setCode(_ctx.longValue("GetSyntheticMonitorsResponse.Code"));
getSyntheticMonitorsResponse.setMessage(_ctx.stringValue("GetSyntheticMonitorsResponse.Message"));
List<DataItem> data = new ArrayList<DataItem>();
for (int i = 0; i < _ctx.lengthValue("GetSyntheticMonitorsResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setCountry(_ctx.stringValue("GetSyntheticMonitorsResponse.Data["+ i +"].Country"));
dataItem.setRegion(_ctx.stringValue("GetSyntheticMonitorsResponse.Data["+ i +"].Region"));
dataItem.setCity(_ctx.stringValue("GetSyntheticMonitorsResponse.Data["+ i +"].City"));
dataItem.setCityCode(_ctx.stringValue("GetSyntheticMonitorsResponse.Data["+ i +"].CityCode"));
dataItem.setOperator(_ctx.stringValue("GetSyntheticMonitorsResponse.Data["+ i +"].Operator"));
dataItem.setOperatorCode(_ctx.stringValue("GetSyntheticMonitorsResponse.Data["+ i +"].OperatorCode"));
dataItem.setClientType(_ctx.integerValue("GetSyntheticMonitorsResponse.Data["+ i +"].ClientType"));
dataItem.setCanBeSelected(_ctx.booleanValue("GetSyntheticMonitorsResponse.Data["+ i +"].CanBeSelected"));
dataItem.setAvailable(_ctx.stringValue("GetSyntheticMonitorsResponse.Data["+ i +"].Available"));
dataItem.setIpv6(_ctx.integerValue("GetSyntheticMonitorsResponse.Data["+ i +"].Ipv6"));
data.add(dataItem);
}
getSyntheticMonitorsResponse.setData(data);
return getSyntheticMonitorsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetSyntheticTaskDetailResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.CommonParam;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertListItem;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Download;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.MonitorListItem;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Nav;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Net;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Protocol;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Formdata;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Urlencoded;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.HeaderItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetSyntheticTaskDetailResponseUnmarshaller {
public static GetSyntheticTaskDetailResponse unmarshall(GetSyntheticTaskDetailResponse getSyntheticTaskDetailResponse, UnmarshallerContext _ctx) {
getSyntheticTaskDetailResponse.setRequestId(_ctx.stringValue("GetSyntheticTaskDetailResponse.RequestId"));
TaskDetail taskDetail = new TaskDetail();
taskDetail.setTaskId(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.TaskId"));
taskDetail.setTaskName(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.TaskName"));
taskDetail.setUrl(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Url"));
taskDetail.setTaskType(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.TaskType"));
taskDetail.setIntervalTime(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.IntervalTime"));
taskDetail.setIntervalType(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.IntervalType"));
taskDetail.setIpType(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.IpType"));
taskDetail.setMonitorListString(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.MonitorListString"));
ExtendInterval extendInterval = new ExtendInterval();
extendInterval.setStartTime(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.StartTime"));
extendInterval.setEndTime(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.EndTime"));
extendInterval.setStartHour(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.StartHour"));
extendInterval.setStartMinute(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.StartMinute"));
extendInterval.setEndhour(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.Endhour"));
extendInterval.setEndMinute(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.EndMinute"));
List<Long> days = new ArrayList<Long>();
for (int i = 0; i < _ctx.lengthValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.Days.Length"); i++) {
days.add(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.ExtendInterval.Days["+ i +"]"));
}
extendInterval.setDays(days);
taskDetail.setExtendInterval(extendInterval);
Download download = new Download();
download.setDownloadTransmissionSize(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.DownloadTransmissionSize"));
download.setDownloadCustomHost(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.DownloadCustomHost"));
download.setDownloadCustomHostIp(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.DownloadCustomHostIp"));
download.setWhiteList(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.WhiteList"));
download.setDownloadKernel(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.DownloadKernel"));
download.setQuickProtocol(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.QuickProtocol"));
download.setMonitorTimeout(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.MonitorTimeout"));
download.setConnectionTimeout(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.ConnectionTimeout"));
download.setVerifyWay(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.VerifyWay"));
download.setValidateKeywords(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.ValidateKeywords"));
download.setDownloadRedirect(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.DownloadRedirect"));
download.setDownloadCustomHeaderContent(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Download.DownloadCustomHeaderContent"));
taskDetail.setDownload(download);
Net net = new Net();
net.setNetIcmpSwitch(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetIcmpSwitch"));
net.setNetIcmpActive(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetIcmpActive"));
net.setNetIcmpTimeout(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetIcmpTimeout"));
net.setNetIcmpInterval(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetIcmpInterval"));
net.setNetIcmpNum(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetIcmpNum"));
net.setNetIcmpSize(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetIcmpSize"));
net.setNetIcmpDataCut(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetIcmpDataCut"));
net.setNetDnsQueryMethod(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetDnsQueryMethod"));
net.setNetDnsSwitch(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetDnsSwitch"));
net.setNetTraceRouteSwitch(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetTraceRouteSwitch"));
net.setNetTraceRouteTimeout(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetTraceRouteTimeout"));
net.setNetTraceRouteNum(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetTraceRouteNum"));
net.setWhiteList(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.WhiteList"));
net.setNetDnsNs(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetDnsNs"));
net.setNetDigSwitch(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetDigSwitch"));
net.setNetDnsServer(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetDnsServer"));
net.setNetDnsTimeout(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Net.NetDnsTimeout"));
taskDetail.setNet(net);
Nav nav = new Nav();
nav.setNavDisableCache(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavDisableCache"));
nav.setNavReturnElement(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavReturnElement"));
nav.setNavRedirect(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavRedirect"));
nav.setNavDisableCompression(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavDisableCompression"));
nav.setNavAutomaticScrolling(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavAutomaticScrolling"));
nav.setNavIgnoreCertificateError(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavIgnoreCertificateError"));
nav.setFilterInvalidIP(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.FilterInvalidIP"));
nav.setExecuteApplet(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.ExecuteApplet"));
nav.setExecuteActiveX(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.ExecuteActiveX"));
nav.setExecuteScript(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.ExecuteScript"));
nav.setQuicVersion(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.QuicVersion"));
nav.setQuicDomain(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.QuicDomain"));
nav.setRequestHeader(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.RequestHeader"));
nav.setNavCustomHost(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavCustomHost"));
nav.setNavCustomHostIp(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavCustomHostIp"));
nav.setNavCustomHeader(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavCustomHeader"));
nav.setNavCustomHeaderContent(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.NavCustomHeaderContent"));
nav.setElementBlacklist(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.ElementBlacklist"));
nav.setProcessName(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.ProcessName"));
nav.setVerifyStringBlacklist(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.VerifyStringBlacklist"));
nav.setVerifyStringWhitelist(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.VerifyStringWhitelist"));
nav.setMonitorTimeout(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.MonitorTimeout"));
nav.setWaitCompletionTime(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.WaitCompletionTime"));
nav.setSlowElementThreshold(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.SlowElementThreshold"));
nav.setDnsHijackWhitelist(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.DnsHijackWhitelist"));
nav.setPageTampering(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.PageTampering"));
nav.setFlowHijackJumpTimes(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.FlowHijackJumpTimes"));
nav.setFlowHijackLogo(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Nav.FlowHijackLogo"));
taskDetail.setNav(nav);
Protocol protocol = new Protocol();
protocol.setCharacterEncoding(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.CharacterEncoding"));
protocol.setVerifyWay(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.VerifyWay"));
protocol.setVerifyContent(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.VerifyContent"));
protocol.setReceivedDataSize(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.ReceivedDataSize"));
protocol.setProtocolMonitorTimeout(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.ProtocolMonitorTimeout"));
protocol.setProtocolConnectionTimeout(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.ProtocolConnectionTimeout"));
protocol.setCustomHost(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.CustomHost"));
protocol.setCustomHostIp(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.CustomHostIp"));
RequestContent requestContent = new RequestContent();
requestContent.setBizMethod(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Method"));
Body body = new Body();
body.setMode(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Mode"));
body.setRaw(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Raw"));
body.setLanguage(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Language"));
Formdata formdata = new Formdata();
formdata.setKey(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Formdata.Key"));
formdata.setValue(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Formdata.Value"));
body.setFormdata(formdata);
Urlencoded urlencoded = new Urlencoded();
urlencoded.setKey(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Urlencoded.Key"));
urlencoded.setValue(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Body.Urlencoded.Value"));
body.setUrlencoded(urlencoded);
requestContent.setBody(body);
List<HeaderItem> header = new ArrayList<HeaderItem>();
for (int i = 0; i < _ctx.lengthValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Header.Length"); i++) {
HeaderItem headerItem = new HeaderItem();
headerItem.setKey(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Header["+ i +"].Key"));
headerItem.setValue(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.Protocol.RequestContent.Header["+ i +"].Value"));
header.add(headerItem);
}
requestContent.setHeader(header);
protocol.setRequestContent(requestContent);
taskDetail.setBizProtocol(protocol);
CommonParam commonParam = new CommonParam();
commonParam.setAlarmFlag(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlarmFlag"));
commonParam.setAlertPolicyId(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertPolicyId"));
commonParam.setAlertNotifierId(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertNotifierId"));
commonParam.setStartExecutionTime(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.StartExecutionTime"));
commonParam.setMonitorSamples(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.MonitorSamples"));
List<AlertListItem> alertList = new ArrayList<AlertListItem>();
for (int i = 0; i < _ctx.lengthValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertList.Length"); i++) {
AlertListItem alertListItem = new AlertListItem();
alertListItem.setName(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertList["+ i +"].Name"));
alertListItem.setGeneralAlert(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertList["+ i +"].GeneralAlert"));
alertListItem.setSeriousAlert(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertList["+ i +"].SeriousAlert"));
alertListItem.setIsCritical(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertList["+ i +"].IsCritical"));
alertListItem.setSymbols(_ctx.stringValue("GetSyntheticTaskDetailResponse.TaskDetail.CommonParam.AlertList["+ i +"].Symbols"));
alertList.add(alertListItem);
}
commonParam.setAlertList(alertList);
taskDetail.setCommonParam(commonParam);
List<MonitorListItem> monitorList = new ArrayList<MonitorListItem>();
for (int i = 0; i < _ctx.lengthValue("GetSyntheticTaskDetailResponse.TaskDetail.MonitorList.Length"); i++) {
MonitorListItem monitorListItem = new MonitorListItem();
monitorListItem.setCityCode(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.MonitorList["+ i +"].CityCode"));
monitorListItem.setNetServiceId(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.MonitorList["+ i +"].NetServiceId"));
monitorListItem.setMonitorType(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.MonitorList["+ i +"].MonitorType"));
monitorListItem.setSendCount(_ctx.longValue("GetSyntheticTaskDetailResponse.TaskDetail.MonitorList["+ i +"].SendCount"));
monitorList.add(monitorListItem);
}
taskDetail.setMonitorList(monitorList);
getSyntheticTaskDetailResponse.setTaskDetail(taskDetail);
return getSyntheticTaskDetailResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetSyntheticTaskListResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskListResponse;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskListResponse.PageInfo;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskListResponse.PageInfo.ListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetSyntheticTaskListResponseUnmarshaller {
public static GetSyntheticTaskListResponse unmarshall(GetSyntheticTaskListResponse getSyntheticTaskListResponse, UnmarshallerContext _ctx) {
getSyntheticTaskListResponse.setRequestId(_ctx.stringValue("GetSyntheticTaskListResponse.RequestId"));
PageInfo pageInfo = new PageInfo();
pageInfo.setTotal(_ctx.longValue("GetSyntheticTaskListResponse.PageInfo.Total"));
pageInfo.setSize(_ctx.longValue("GetSyntheticTaskListResponse.PageInfo.Size"));
pageInfo.setPages(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.Pages"));
pageInfo.setPrepage(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.Prepage"));
pageInfo.setNextPage(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.NextPage"));
pageInfo.setIsFirstPage(_ctx.booleanValue("GetSyntheticTaskListResponse.PageInfo.IsFirstPage"));
pageInfo.setIsLastPage(_ctx.booleanValue("GetSyntheticTaskListResponse.PageInfo.IsLastPage"));
pageInfo.setHasPreviousPage(_ctx.booleanValue("GetSyntheticTaskListResponse.PageInfo.HasPreviousPage"));
pageInfo.setHasNextPage(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.HasNextPage"));
pageInfo.setNavigatePageNums(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.NavigatePageNums"));
pageInfo.setNavigateFirstPage(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.NavigateFirstPage"));
pageInfo.setNavigateLastPage(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.NavigateLastPage"));
List<ListItem> list = new ArrayList<ListItem>();
for (int i = 0; i < _ctx.lengthValue("GetSyntheticTaskListResponse.PageInfo.List.Length"); i++) {
ListItem listItem = new ListItem();
listItem.setTaskId(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].TaskId"));
listItem.setTaskName(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].TaskName"));
listItem.setUrl(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].Url"));
listItem.setTaskType(_ctx.longValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].TaskType"));
listItem.setTaskTypeName(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].TaskTypeName"));
listItem.setMonitorNumber(_ctx.longValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].MonitorNumber"));
listItem.setTaskStatus(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].TaskStatus"));
listItem.setUsable(_ctx.floatValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].Usable"));
listItem.setCreateTime(_ctx.stringValue("GetSyntheticTaskListResponse.PageInfo.List["+ i +"].CreateTime"));
list.add(listItem);
}
pageInfo.setList(list);
getSyntheticTaskListResponse.setPageInfo(pageInfo);
return getSyntheticTaskListResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetSyntheticTaskMonitorsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskMonitorsResponse;
import com.aliyuncs.arms.model.v20190808.GetSyntheticTaskMonitorsResponse.DataItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetSyntheticTaskMonitorsResponseUnmarshaller {
public static GetSyntheticTaskMonitorsResponse unmarshall(GetSyntheticTaskMonitorsResponse getSyntheticTaskMonitorsResponse, UnmarshallerContext _ctx) {
getSyntheticTaskMonitorsResponse.setRequestId(_ctx.stringValue("GetSyntheticTaskMonitorsResponse.RequestId"));
getSyntheticTaskMonitorsResponse.setCode(_ctx.stringValue("GetSyntheticTaskMonitorsResponse.Code"));
getSyntheticTaskMonitorsResponse.setMsg(_ctx.stringValue("GetSyntheticTaskMonitorsResponse.Msg"));
List<DataItem> data = new ArrayList<DataItem>();
for (int i = 0; i < _ctx.lengthValue("GetSyntheticTaskMonitorsResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setClientType(_ctx.longValue("GetSyntheticTaskMonitorsResponse.Data["+ i +"].ClientType"));
dataItem.setCityCode(_ctx.longValue("GetSyntheticTaskMonitorsResponse.Data["+ i +"].CityCode"));
dataItem.setCity(_ctx.stringValue("GetSyntheticTaskMonitorsResponse.Data["+ i +"].City"));
dataItem.setDistrict(_ctx.stringValue("GetSyntheticTaskMonitorsResponse.Data["+ i +"].District"));
dataItem.setNetServiceId(_ctx.longValue("GetSyntheticTaskMonitorsResponse.Data["+ i +"].NetServiceId"));
dataItem.setNetServiceName(_ctx.stringValue("GetSyntheticTaskMonitorsResponse.Data["+ i +"].NetServiceName"));
dataItem.setBusy(_ctx.longValue("GetSyntheticTaskMonitorsResponse.Data["+ i +"].Busy"));
data.add(dataItem);
}
getSyntheticTaskMonitorsResponse.setData(data);
return getSyntheticTaskMonitorsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetTimingSyntheticTaskResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.AvailableAssertion;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.CommonSetting;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost.Host;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomPrometheusSetting;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomVPCSetting;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.CustomPeriod;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.Monitor;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.RequestBody;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.NetDNS;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.MonitorConf.Website;
import com.aliyuncs.arms.model.v20190808.GetTimingSyntheticTaskResponse.Data.Tag;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetTimingSyntheticTaskResponseUnmarshaller {
public static GetTimingSyntheticTaskResponse unmarshall(GetTimingSyntheticTaskResponse getTimingSyntheticTaskResponse, UnmarshallerContext _ctx) {
getTimingSyntheticTaskResponse.setRequestId(_ctx.stringValue("GetTimingSyntheticTaskResponse.RequestId"));
getTimingSyntheticTaskResponse.setCode(_ctx.longValue("GetTimingSyntheticTaskResponse.Code"));
getTimingSyntheticTaskResponse.setMessage(_ctx.stringValue("GetTimingSyntheticTaskResponse.Message"));
Data data = new Data();
data.setTaskId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.TaskId"));
data.setRegionId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.RegionId"));
data.setName(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.Name"));
data.setTaskType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.TaskType"));
data.setMonitorCategory(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorCategory"));
data.setFrequency(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.Frequency"));
data.setStatus(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.Status"));
data.setResourceGroupId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.ResourceGroupId"));
MonitorConf monitorConf = new MonitorConf();
NetICMP netICMP = new NetICMP();
netICMP.setTargetUrl(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.TargetUrl"));
netICMP.setInterval(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.Interval"));
netICMP.setPackageNum(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.PackageNum"));
netICMP.setPackageSize(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.PackageSize"));
netICMP.setSplitPackage(_ctx.booleanValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.SplitPackage"));
netICMP.setTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.Timeout"));
netICMP.setTracertEnable(_ctx.booleanValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.TracertEnable"));
netICMP.setTracertNumMax(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.TracertNumMax"));
netICMP.setTracertTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetICMP.TracertTimeout"));
monitorConf.setNetICMP(netICMP);
NetTCP netTCP = new NetTCP();
netTCP.setTargetUrl(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP.TargetUrl"));
netTCP.setConnectTimes(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP.ConnectTimes"));
netTCP.setInterval(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP.Interval"));
netTCP.setTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP.Timeout"));
netTCP.setTracertEnable(_ctx.booleanValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP.TracertEnable"));
netTCP.setTracertNumMax(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP.TracertNumMax"));
netTCP.setTracertTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetTCP.TracertTimeout"));
monitorConf.setNetTCP(netTCP);
NetDNS netDNS = new NetDNS();
netDNS.setTargetUrl(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetDNS.TargetUrl"));
netDNS.setDnsServerIpType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetDNS.DnsServerIpType"));
netDNS.setNsServer(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetDNS.NsServer"));
netDNS.setQueryMethod(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetDNS.QueryMethod"));
netDNS.setTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.NetDNS.Timeout"));
monitorConf.setNetDNS(netDNS);
ApiHTTP apiHTTP = new ApiHTTP();
apiHTTP.setTargetUrl(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.TargetUrl"));
apiHTTP.setBizMethod(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.Method"));
apiHTTP.setRequestHeaders(_ctx.mapValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.RequestHeaders"));
apiHTTP.setConnectTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.ConnectTimeout"));
apiHTTP.setTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.Timeout"));
apiHTTP.setCheckCert(_ctx.booleanValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.CheckCert"));
apiHTTP.setProtocolAlpnProtocol(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.ProtocolAlpnProtocol"));
RequestBody requestBody = new RequestBody();
requestBody.setContent(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.RequestBody.Content"));
requestBody.setType(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.ApiHTTP.RequestBody.Type"));
apiHTTP.setRequestBody(requestBody);
monitorConf.setApiHTTP(apiHTTP);
FileDownload fileDownload = new FileDownload();
fileDownload.setTargetUrl(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.TargetUrl"));
fileDownload.setDownloadKernel(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.DownloadKernel"));
fileDownload.setQuickProtocol(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.QuickProtocol"));
fileDownload.setConnectionTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.ConnectionTimeout"));
fileDownload.setCustomHeaderContent(_ctx.mapValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.CustomHeaderContent"));
fileDownload.setIgnoreCertificateStatusError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.IgnoreCertificateStatusError"));
fileDownload.setIgnoreCertificateUntrustworthyError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.IgnoreCertificateUntrustworthyError"));
fileDownload.setIgnoreInvalidHostError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.IgnoreInvalidHostError"));
fileDownload.setMonitorTimeout(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.MonitorTimeout"));
fileDownload.setRedirection(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.Redirection"));
fileDownload.setTransmissionSize(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.TransmissionSize"));
fileDownload.setIgnoreCertificateCanceledError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.IgnoreCertificateCanceledError"));
fileDownload.setIgnoreCertificateAuthError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.IgnoreCertificateAuthError"));
fileDownload.setIgnoreCertificateOutOfDateError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.IgnoreCertificateOutOfDateError"));
fileDownload.setIgnoreCertificateUsingError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.IgnoreCertificateUsingError"));
fileDownload.setVerifyWay(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.VerifyWay"));
fileDownload.setValidateKeywords(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.ValidateKeywords"));
fileDownload.setWhiteList(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.FileDownload.WhiteList"));
monitorConf.setFileDownload(fileDownload);
Website website = new Website();
website.setTargetUrl(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.TargetUrl"));
website.setAutomaticScrolling(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.AutomaticScrolling"));
website.setCustomHeader(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.CustomHeader"));
website.setCustomHeaderContent(_ctx.mapValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.CustomHeaderContent"));
website.setDisableCache(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.DisableCache"));
website.setDisableCompression(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.DisableCompression"));
website.setFilterInvalidIP(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.FilterInvalidIP"));
website.setIgnoreCertificateError(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.IgnoreCertificateError"));
website.setMonitorTimeout(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.MonitorTimeout"));
website.setRedirection(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.Redirection"));
website.setSlowElementThreshold(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.SlowElementThreshold"));
website.setWaitCompletionTime(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.WaitCompletionTime"));
website.setVerifyStringBlacklist(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.VerifyStringBlacklist"));
website.setVerifyStringWhitelist(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.VerifyStringWhitelist"));
website.setElementBlacklist(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.ElementBlacklist"));
website.setDNSHijackWhitelist(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.DNSHijackWhitelist"));
website.setPageTamper(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.PageTamper"));
website.setFlowHijackJumpTimes(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.FlowHijackJumpTimes"));
website.setFlowHijackLogo(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Website.FlowHijackLogo"));
monitorConf.setWebsite(website);
Stream stream = new Stream();
stream.setTargetUrl(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream.TargetUrl"));
stream.setStreamType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream.StreamType"));
stream.setStreamMonitorTimeout(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream.StreamMonitorTimeout"));
stream.setStreamAddressType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream.StreamAddressType"));
stream.setPlayerType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream.PlayerType"));
stream.setCustomHeaderContent(_ctx.mapValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream.CustomHeaderContent"));
stream.setWhiteList(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.MonitorConf.Stream.WhiteList"));
monitorConf.setStream(stream);
data.setMonitorConf(monitorConf);
CustomPeriod customPeriod = new CustomPeriod();
customPeriod.setEndHour(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.CustomPeriod.EndHour"));
customPeriod.setStartHour(_ctx.longValue("GetTimingSyntheticTaskResponse.Data.CustomPeriod.StartHour"));
data.setCustomPeriod(customPeriod);
CommonSetting commonSetting = new CommonSetting();
commonSetting.setIpType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.IpType"));
commonSetting.setMonitorSamples(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.MonitorSamples"));
commonSetting.setIsOpenTrace(_ctx.booleanValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.IsOpenTrace"));
commonSetting.setTraceClientType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.TraceClientType"));
commonSetting.setXtraceRegion(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.XtraceRegion"));
CustomHost customHost = new CustomHost();
customHost.setSelectType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost.SelectType"));
List<Host> hosts = new ArrayList<Host>();
for (int i = 0; i < _ctx.lengthValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost.Hosts.Length"); i++) {
Host host = new Host();
host.setDomain(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost.Hosts["+ i +"].Domain"));
host.setIpType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost.Hosts["+ i +"].IpType"));
List<String> ips = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost.Hosts["+ i +"].Ips.Length"); j++) {
ips.add(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomHost.Hosts["+ i +"].Ips["+ j +"]"));
}
host.setIps(ips);
hosts.add(host);
}
customHost.setHosts(hosts);
commonSetting.setCustomHost(customHost);
CustomVPCSetting customVPCSetting = new CustomVPCSetting();
customVPCSetting.setRegionId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomVPCSetting.RegionId"));
customVPCSetting.setVpcId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomVPCSetting.VpcId"));
customVPCSetting.setVSwitchId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomVPCSetting.VSwitchId"));
customVPCSetting.setSecureGroupId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomVPCSetting.SecureGroupId"));
commonSetting.setCustomVPCSetting(customVPCSetting);
CustomPrometheusSetting customPrometheusSetting = new CustomPrometheusSetting();
customPrometheusSetting.setPrometheusLabels(_ctx.mapValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomPrometheusSetting.PrometheusLabels"));
customPrometheusSetting.setPrometheusClusterId(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomPrometheusSetting.PrometheusClusterId"));
customPrometheusSetting.setPrometheusClusterRegion(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.CommonSetting.CustomPrometheusSetting.PrometheusClusterRegion"));
commonSetting.setCustomPrometheusSetting(customPrometheusSetting);
data.setCommonSetting(commonSetting);
List<Monitor> monitors = new ArrayList<Monitor>();
for (int i = 0; i < _ctx.lengthValue("GetTimingSyntheticTaskResponse.Data.Monitors.Length"); i++) {
Monitor monitor = new Monitor();
monitor.setCityCode(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.Monitors["+ i +"].CityCode"));
monitor.setOperatorCode(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.Monitors["+ i +"].OperatorCode"));
monitor.setClientType(_ctx.integerValue("GetTimingSyntheticTaskResponse.Data.Monitors["+ i +"].ClientType"));
monitors.add(monitor);
}
data.setMonitors(monitors);
List<AvailableAssertion> availableAssertions = new ArrayList<AvailableAssertion>();
for (int i = 0; i < _ctx.lengthValue("GetTimingSyntheticTaskResponse.Data.AvailableAssertions.Length"); i++) {
AvailableAssertion availableAssertion = new AvailableAssertion();
availableAssertion.setType(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.AvailableAssertions["+ i +"].Type"));
availableAssertion.setTarget(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.AvailableAssertions["+ i +"].Target"));
availableAssertion.setOperator(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.AvailableAssertions["+ i +"].Operator"));
availableAssertion.setExpect(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.AvailableAssertions["+ i +"].Expect"));
availableAssertions.add(availableAssertion);
}
data.setAvailableAssertions(availableAssertions);
List<Tag> tags = new ArrayList<Tag>();
for (int i = 0; i < _ctx.lengthValue("GetTimingSyntheticTaskResponse.Data.Tags.Length"); i++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.Tags["+ i +"].Key"));
tag.setValue(_ctx.stringValue("GetTimingSyntheticTaskResponse.Data.Tags["+ i +"].Value"));
tags.add(tag);
}
data.setTags(tags);
getTimingSyntheticTaskResponse.setData(data);
return getTimingSyntheticTaskResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetTraceAppConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.GetTraceAppConfigResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetTraceAppConfigResponseUnmarshaller {
public static GetTraceAppConfigResponse unmarshall(GetTraceAppConfigResponse getTraceAppConfigResponse, UnmarshallerContext _ctx) {
getTraceAppConfigResponse.setRequestId(_ctx.stringValue("GetTraceAppConfigResponse.RequestId"));
getTraceAppConfigResponse.setData(_ctx.stringValue("GetTraceAppConfigResponse.Data"));
getTraceAppConfigResponse.setMessage(_ctx.stringValue("GetTraceAppConfigResponse.Message"));
getTraceAppConfigResponse.setCode(_ctx.longValue("GetTraceAppConfigResponse.Code"));
getTraceAppConfigResponse.setSuccess(_ctx.booleanValue("GetTraceAppConfigResponse.Success"));
return getTraceAppConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetTraceAppResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetTraceAppResponse;
import com.aliyuncs.arms.model.v20190808.GetTraceAppResponse.TraceApp;
import com.aliyuncs.arms.model.v20190808.GetTraceAppResponse.TraceApp.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetTraceAppResponseUnmarshaller {
public static GetTraceAppResponse unmarshall(GetTraceAppResponse getTraceAppResponse, UnmarshallerContext _ctx) {
getTraceAppResponse.setRequestId(_ctx.stringValue("GetTraceAppResponse.RequestId"));
TraceApp traceApp = new TraceApp();
traceApp.setType(_ctx.stringValue("GetTraceAppResponse.TraceApp.Type"));
traceApp.setAppName(_ctx.stringValue("GetTraceAppResponse.TraceApp.AppName"));
traceApp.setUpdateTime(_ctx.longValue("GetTraceAppResponse.TraceApp.UpdateTime"));
traceApp.setShow(_ctx.booleanValue("GetTraceAppResponse.TraceApp.Show"));
traceApp.setCreateTime(_ctx.longValue("GetTraceAppResponse.TraceApp.CreateTime"));
traceApp.setPid(_ctx.stringValue("GetTraceAppResponse.TraceApp.Pid"));
traceApp.setAppId(_ctx.longValue("GetTraceAppResponse.TraceApp.AppId"));
traceApp.setUserId(_ctx.stringValue("GetTraceAppResponse.TraceApp.UserId"));
traceApp.setRegionId(_ctx.stringValue("GetTraceAppResponse.TraceApp.RegionId"));
traceApp.setSource(_ctx.stringValue("GetTraceAppResponse.TraceApp.Source"));
traceApp.setResourceGroupId(_ctx.stringValue("GetTraceAppResponse.TraceApp.ResourceGroupId"));
traceApp.setClusterId(_ctx.stringValue("GetTraceAppResponse.TraceApp.ClusterId"));
traceApp.setLanguage(_ctx.stringValue("GetTraceAppResponse.TraceApp.Language"));
List<String> labels = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("GetTraceAppResponse.TraceApp.Labels.Length"); i++) {
labels.add(_ctx.stringValue("GetTraceAppResponse.TraceApp.Labels["+ i +"]"));
}
traceApp.setLabels(labels);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int i = 0; i < _ctx.lengthValue("GetTraceAppResponse.TraceApp.Tags.Length"); i++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("GetTraceAppResponse.TraceApp.Tags["+ i +"].Key"));
tagsItem.setValue(_ctx.stringValue("GetTraceAppResponse.TraceApp.Tags["+ i +"].Value"));
tags.add(tagsItem);
}
traceApp.setTags(tags);
getTraceAppResponse.setTraceApp(traceApp);
return getTraceAppResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/GetTraceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.GetTraceResponse;
import com.aliyuncs.arms.model.v20190808.GetTraceResponse.Span;
import com.aliyuncs.arms.model.v20190808.GetTraceResponse.Span.LogEvent;
import com.aliyuncs.arms.model.v20190808.GetTraceResponse.Span.LogEvent.TagEntry2;
import com.aliyuncs.arms.model.v20190808.GetTraceResponse.Span.TagEntry;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetTraceResponseUnmarshaller {
public static GetTraceResponse unmarshall(GetTraceResponse getTraceResponse, UnmarshallerContext _ctx) {
getTraceResponse.setRequestId(_ctx.stringValue("GetTraceResponse.RequestId"));
List<Span> spans = new ArrayList<Span>();
for (int i = 0; i < _ctx.lengthValue("GetTraceResponse.Spans.Length"); i++) {
Span span = new Span();
span.setSpanId(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].SpanId"));
span.setOperationName(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].OperationName"));
span.setResultCode(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].ResultCode"));
span.setTimestamp(_ctx.longValue("GetTraceResponse.Spans["+ i +"].Timestamp"));
span.setRpcType(_ctx.integerValue("GetTraceResponse.Spans["+ i +"].RpcType"));
span.setServiceIp(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].ServiceIp"));
span.setHaveStack(_ctx.booleanValue("GetTraceResponse.Spans["+ i +"].HaveStack"));
span.setParentSpanId(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].ParentSpanId"));
span.setDuration(_ctx.longValue("GetTraceResponse.Spans["+ i +"].Duration"));
span.setRpcId(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].RpcId"));
span.setServiceName(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].ServiceName"));
span.setTraceID(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].TraceID"));
List<Map<Object, Object>> children = _ctx.listMapValue("GetTraceResponse.Spans["+ i +"].Children");
span.setChildren(children);
List<TagEntry> tagEntryList = new ArrayList<TagEntry>();
for (int j = 0; j < _ctx.lengthValue("GetTraceResponse.Spans["+ i +"].TagEntryList.Length"); j++) {
TagEntry tagEntry = new TagEntry();
tagEntry.setKey(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].TagEntryList["+ j +"].Key"));
tagEntry.setValue(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].TagEntryList["+ j +"].Value"));
tagEntryList.add(tagEntry);
}
span.setTagEntryList(tagEntryList);
List<LogEvent> logEventList = new ArrayList<LogEvent>();
for (int j = 0; j < _ctx.lengthValue("GetTraceResponse.Spans["+ i +"].LogEventList.Length"); j++) {
LogEvent logEvent = new LogEvent();
logEvent.setTimestamp(_ctx.longValue("GetTraceResponse.Spans["+ i +"].LogEventList["+ j +"].Timestamp"));
List<TagEntry2> tagEntryList1 = new ArrayList<TagEntry2>();
for (int k = 0; k < _ctx.lengthValue("GetTraceResponse.Spans["+ i +"].LogEventList["+ j +"].TagEntryList.Length"); k++) {
TagEntry2 tagEntry2 = new TagEntry2();
tagEntry2.setKey(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].LogEventList["+ j +"].TagEntryList["+ k +"].Key"));
tagEntry2.setValue(_ctx.stringValue("GetTraceResponse.Spans["+ i +"].LogEventList["+ j +"].TagEntryList["+ k +"].Value"));
tagEntryList1.add(tagEntry2);
}
logEvent.setTagEntryList1(tagEntryList1);
logEventList.add(logEvent);
}
span.setLogEventList(logEventList);
spans.add(span);
}
getTraceResponse.setSpans(spans);
return getTraceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ImportAppAlertRulesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.ImportAppAlertRulesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ImportAppAlertRulesResponseUnmarshaller {
public static ImportAppAlertRulesResponse unmarshall(ImportAppAlertRulesResponse importAppAlertRulesResponse, UnmarshallerContext _ctx) {
importAppAlertRulesResponse.setRequestId(_ctx.stringValue("ImportAppAlertRulesResponse.RequestId"));
importAppAlertRulesResponse.setData(_ctx.stringValue("ImportAppAlertRulesResponse.Data"));
return importAppAlertRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/InitEnvironmentResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.InitEnvironmentResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class InitEnvironmentResponseUnmarshaller {
public static InitEnvironmentResponse unmarshall(InitEnvironmentResponse initEnvironmentResponse, UnmarshallerContext _ctx) {
initEnvironmentResponse.setRequestId(_ctx.stringValue("InitEnvironmentResponse.RequestId"));
initEnvironmentResponse.setCode(_ctx.integerValue("InitEnvironmentResponse.Code"));
initEnvironmentResponse.setData(_ctx.stringValue("InitEnvironmentResponse.Data"));
initEnvironmentResponse.setMessage(_ctx.stringValue("InitEnvironmentResponse.Message"));
return initEnvironmentResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/InstallAddonResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.InstallAddonResponse;
import com.aliyuncs.arms.model.v20190808.InstallAddonResponse.Data;
import com.aliyuncs.arms.model.v20190808.InstallAddonResponse.Data.ConditionsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class InstallAddonResponseUnmarshaller {
public static InstallAddonResponse unmarshall(InstallAddonResponse installAddonResponse, UnmarshallerContext _ctx) {
installAddonResponse.setRequestId(_ctx.stringValue("InstallAddonResponse.RequestId"));
installAddonResponse.setCode(_ctx.integerValue("InstallAddonResponse.Code"));
installAddonResponse.setSuccess(_ctx.booleanValue("InstallAddonResponse.Success"));
installAddonResponse.setMessage(_ctx.stringValue("InstallAddonResponse.Message"));
Data data = new Data();
data.setAddonName(_ctx.stringValue("InstallAddonResponse.Data.AddonName"));
data.setAlertRuleCount(_ctx.longValue("InstallAddonResponse.Data.AlertRuleCount"));
data.setCreateTime(_ctx.stringValue("InstallAddonResponse.Data.CreateTime"));
data.setDashboardCount(_ctx.longValue("InstallAddonResponse.Data.DashboardCount"));
data.setExporterCount(_ctx.longValue("InstallAddonResponse.Data.ExporterCount"));
data.setHaveConfig(_ctx.booleanValue("InstallAddonResponse.Data.HaveConfig"));
data.setInstallUserId(_ctx.stringValue("InstallAddonResponse.Data.InstallUserId"));
data.setLanguage(_ctx.stringValue("InstallAddonResponse.Data.Language"));
data.setReleaseId(_ctx.stringValue("InstallAddonResponse.Data.ReleaseId"));
data.setReleaseName(_ctx.stringValue("InstallAddonResponse.Data.ReleaseName"));
data.setScene(_ctx.stringValue("InstallAddonResponse.Data.Scene"));
data.setStatus(_ctx.stringValue("InstallAddonResponse.Data.Status"));
data.setUpdateTime(_ctx.stringValue("InstallAddonResponse.Data.UpdateTime"));
data.setUserId(_ctx.stringValue("InstallAddonResponse.Data.UserId"));
data.setVersion(_ctx.stringValue("InstallAddonResponse.Data.Version"));
data.setEnvironmentId(_ctx.stringValue("InstallAddonResponse.Data.EnvironmentId"));
data.setRegionId(_ctx.stringValue("InstallAddonResponse.Data.RegionId"));
data.setManaged(_ctx.booleanValue("InstallAddonResponse.Data.Managed"));
List<ConditionsItem> conditions = new ArrayList<ConditionsItem>();
for (int i = 0; i < _ctx.lengthValue("InstallAddonResponse.Data.Conditions.Length"); i++) {
ConditionsItem conditionsItem = new ConditionsItem();
conditionsItem.setFirstTransitionTime(_ctx.stringValue("InstallAddonResponse.Data.Conditions["+ i +"].FirstTransitionTime"));
conditionsItem.setLastTransitionTime(_ctx.stringValue("InstallAddonResponse.Data.Conditions["+ i +"].LastTransitionTime"));
conditionsItem.setMessage(_ctx.stringValue("InstallAddonResponse.Data.Conditions["+ i +"].Message"));
conditionsItem.setReason(_ctx.stringValue("InstallAddonResponse.Data.Conditions["+ i +"].Reason"));
conditionsItem.setStatus(_ctx.stringValue("InstallAddonResponse.Data.Conditions["+ i +"].Status"));
conditionsItem.setType(_ctx.stringValue("InstallAddonResponse.Data.Conditions["+ i +"].Type"));
conditions.add(conditionsItem);
}
data.setConditions(conditions);
installAddonResponse.setData(data);
return installAddonResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/InstallCmsExporterResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.InstallCmsExporterResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class InstallCmsExporterResponseUnmarshaller {
public static InstallCmsExporterResponse unmarshall(InstallCmsExporterResponse installCmsExporterResponse, UnmarshallerContext _ctx) {
installCmsExporterResponse.setRequestId(_ctx.stringValue("InstallCmsExporterResponse.RequestId"));
installCmsExporterResponse.setData(_ctx.stringValue("InstallCmsExporterResponse.Data"));
return installCmsExporterResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/InstallEnvironmentFeatureResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.InstallEnvironmentFeatureResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class InstallEnvironmentFeatureResponseUnmarshaller {
public static InstallEnvironmentFeatureResponse unmarshall(InstallEnvironmentFeatureResponse installEnvironmentFeatureResponse, UnmarshallerContext _ctx) {
installEnvironmentFeatureResponse.setRequestId(_ctx.stringValue("InstallEnvironmentFeatureResponse.RequestId"));
installEnvironmentFeatureResponse.setCode(_ctx.integerValue("InstallEnvironmentFeatureResponse.Code"));
installEnvironmentFeatureResponse.setMessage(_ctx.stringValue("InstallEnvironmentFeatureResponse.Message"));
installEnvironmentFeatureResponse.setSuccess(_ctx.booleanValue("InstallEnvironmentFeatureResponse.Success"));
installEnvironmentFeatureResponse.setData(_ctx.stringValue("InstallEnvironmentFeatureResponse.Data"));
return installEnvironmentFeatureResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/InstallManagedPrometheusResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.InstallManagedPrometheusResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class InstallManagedPrometheusResponseUnmarshaller {
public static InstallManagedPrometheusResponse unmarshall(InstallManagedPrometheusResponse installManagedPrometheusResponse, UnmarshallerContext _ctx) {
installManagedPrometheusResponse.setRequestId(_ctx.stringValue("InstallManagedPrometheusResponse.RequestId"));
installManagedPrometheusResponse.setData(_ctx.stringValue("InstallManagedPrometheusResponse.Data"));
installManagedPrometheusResponse.setSuccess(_ctx.booleanValue("InstallManagedPrometheusResponse.Success"));
installManagedPrometheusResponse.setMessage(_ctx.stringValue("InstallManagedPrometheusResponse.Message"));
installManagedPrometheusResponse.setCode(_ctx.integerValue("InstallManagedPrometheusResponse.Code"));
return installManagedPrometheusResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListActivatedAlertsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListActivatedAlertsResponse;
import com.aliyuncs.arms.model.v20190808.ListActivatedAlertsResponse.Page;
import com.aliyuncs.arms.model.v20190808.ListActivatedAlertsResponse.Page.Alert;
import com.aliyuncs.arms.model.v20190808.ListActivatedAlertsResponse.Page.Alert.DispatchRule;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListActivatedAlertsResponseUnmarshaller {
public static ListActivatedAlertsResponse unmarshall(ListActivatedAlertsResponse listActivatedAlertsResponse, UnmarshallerContext _ctx) {
listActivatedAlertsResponse.setRequestId(_ctx.stringValue("ListActivatedAlertsResponse.RequestId"));
listActivatedAlertsResponse.setMessage(_ctx.stringValue("ListActivatedAlertsResponse.Message"));
Page page = new Page();
page.setPageSize(_ctx.integerValue("ListActivatedAlertsResponse.Page.PageSize"));
page.setTotal(_ctx.integerValue("ListActivatedAlertsResponse.Page.Total"));
page.setPage(_ctx.integerValue("ListActivatedAlertsResponse.Page.Page"));
List<Alert> alerts = new ArrayList<Alert>();
for (int i = 0; i < _ctx.lengthValue("ListActivatedAlertsResponse.Page.Alerts.Length"); i++) {
Alert alert = new Alert();
alert.setStatus(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].Status"));
alert.setSeverity(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].Severity"));
alert.setIntegrationName(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].IntegrationName"));
alert.setCreateTime(_ctx.longValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].CreateTime"));
alert.setMessage(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].Message"));
alert.setAlertType(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].AlertType"));
alert.setInvolvedObjectName(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].InvolvedObjectName"));
alert.setAlertName(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].AlertName"));
alert.setCount(_ctx.integerValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].Count"));
alert.setExpandFields(_ctx.mapValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].ExpandFields"));
alert.setEndsAt(_ctx.longValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].EndsAt"));
alert.setInvolvedObjectKind(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].InvolvedObjectKind"));
alert.setIntegrationType(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].IntegrationType"));
alert.setStartsAt(_ctx.longValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].StartsAt"));
alert.setAlertId(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].AlertId"));
List<DispatchRule> dispatchRules = new ArrayList<DispatchRule>();
for (int j = 0; j < _ctx.lengthValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].DispatchRules.Length"); j++) {
DispatchRule dispatchRule = new DispatchRule();
dispatchRule.setRuleId(_ctx.integerValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].DispatchRules["+ j +"].RuleId"));
dispatchRule.setRuleName(_ctx.stringValue("ListActivatedAlertsResponse.Page.Alerts["+ i +"].DispatchRules["+ j +"].RuleName"));
dispatchRules.add(dispatchRule);
}
alert.setDispatchRules(dispatchRules);
alerts.add(alert);
}
page.setAlerts(alerts);
listActivatedAlertsResponse.setPage(page);
return listActivatedAlertsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListAddonReleasesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListAddonReleasesResponse;
import com.aliyuncs.arms.model.v20190808.ListAddonReleasesResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListAddonReleasesResponse.Data.ReleasesItem;
import com.aliyuncs.arms.model.v20190808.ListAddonReleasesResponse.Data.ReleasesItem.ConditionsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAddonReleasesResponseUnmarshaller {
public static ListAddonReleasesResponse unmarshall(ListAddonReleasesResponse listAddonReleasesResponse, UnmarshallerContext _ctx) {
listAddonReleasesResponse.setRequestId(_ctx.stringValue("ListAddonReleasesResponse.RequestId"));
listAddonReleasesResponse.setCode(_ctx.integerValue("ListAddonReleasesResponse.Code"));
listAddonReleasesResponse.setSuccess(_ctx.booleanValue("ListAddonReleasesResponse.Success"));
listAddonReleasesResponse.setMessage(_ctx.stringValue("ListAddonReleasesResponse.Message"));
Data data = new Data();
data.setTotal(_ctx.longValue("ListAddonReleasesResponse.Data.Total"));
List<ReleasesItem> releases = new ArrayList<ReleasesItem>();
for (int i = 0; i < _ctx.lengthValue("ListAddonReleasesResponse.Data.Releases.Length"); i++) {
ReleasesItem releasesItem = new ReleasesItem();
releasesItem.setAddonName(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].AddonName"));
releasesItem.setAlertRuleCount(_ctx.longValue("ListAddonReleasesResponse.Data.Releases["+ i +"].AlertRuleCount"));
releasesItem.setCreateTime(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].CreateTime"));
releasesItem.setDashboardCount(_ctx.longValue("ListAddonReleasesResponse.Data.Releases["+ i +"].DashboardCount"));
releasesItem.setExporterCount(_ctx.longValue("ListAddonReleasesResponse.Data.Releases["+ i +"].ExporterCount"));
releasesItem.setHaveConfig(_ctx.booleanValue("ListAddonReleasesResponse.Data.Releases["+ i +"].HaveConfig"));
releasesItem.setInstallUserId(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].InstallUserId"));
releasesItem.setLanguage(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Language"));
releasesItem.setReleaseId(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].ReleaseId"));
releasesItem.setReleaseName(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].ReleaseName"));
releasesItem.setScene(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Scene"));
releasesItem.setStatus(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Status"));
releasesItem.setUpdateTime(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].UpdateTime"));
releasesItem.setUserId(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].UserId"));
releasesItem.setVersion(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Version"));
releasesItem.setEnvironmentId(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].EnvironmentId"));
releasesItem.setRegionId(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].RegionId"));
releasesItem.setManaged(_ctx.booleanValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Managed"));
releasesItem.setNextVersion(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].NextVersion"));
releasesItem.setConfig(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Config"));
List<ConditionsItem> conditions = new ArrayList<ConditionsItem>();
for (int j = 0; j < _ctx.lengthValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Conditions.Length"); j++) {
ConditionsItem conditionsItem = new ConditionsItem();
conditionsItem.setFirstTransitionTime(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Conditions["+ j +"].FirstTransitionTime"));
conditionsItem.setLastTransitionTime(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Conditions["+ j +"].LastTransitionTime"));
conditionsItem.setMessage(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Conditions["+ j +"].Message"));
conditionsItem.setReason(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Conditions["+ j +"].Reason"));
conditionsItem.setStatus(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Conditions["+ j +"].Status"));
conditionsItem.setType(_ctx.stringValue("ListAddonReleasesResponse.Data.Releases["+ i +"].Conditions["+ j +"].Type"));
conditions.add(conditionsItem);
}
releasesItem.setConditions(conditions);
releases.add(releasesItem);
}
data.setReleases(releases);
listAddonReleasesResponse.setData(data);
return listAddonReleasesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListAddonsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse.DataItem;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse.DataItem.DashboardsItem;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse.DataItem.EnvironmentsItem;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse.DataItem.EnvironmentsItem.Dependencies;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse.DataItem.EnvironmentsItem.Policies;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse.DataItem.EnvironmentsItem.Policies.MetricCheckRule;
import com.aliyuncs.arms.model.v20190808.ListAddonsResponse.DataItem.EnvironmentsItem.Policies.ProtocolsItem;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAddonsResponseUnmarshaller {
public static ListAddonsResponse unmarshall(ListAddonsResponse listAddonsResponse, UnmarshallerContext _ctx) {
listAddonsResponse.setRequestId(_ctx.stringValue("ListAddonsResponse.RequestId"));
listAddonsResponse.setCode(_ctx.integerValue("ListAddonsResponse.Code"));
listAddonsResponse.setMessage(_ctx.stringValue("ListAddonsResponse.Message"));
listAddonsResponse.setSuccess(_ctx.booleanValue("ListAddonsResponse.Success"));
List<DataItem> data = new ArrayList<DataItem>();
for (int i = 0; i < _ctx.lengthValue("ListAddonsResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setAlias(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Alias"));
dataItem.setDescription(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Description"));
dataItem.setIcon(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Icon"));
dataItem.setLanguage(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Language"));
dataItem.setName(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Name"));
dataItem.setOnce(_ctx.booleanValue("ListAddonsResponse.Data["+ i +"].Once"));
dataItem.setScene(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Scene"));
dataItem.setVersion(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Version"));
dataItem.setWeight(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Weight"));
dataItem.setLatestReleaseCreateTime(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].LatestReleaseCreateTime"));
List<String> categories = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Categories.Length"); j++) {
categories.add(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Categories["+ j +"]"));
}
dataItem.setCategories(categories);
List<String> keywords = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Keywords.Length"); j++) {
keywords.add(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Keywords["+ j +"]"));
}
dataItem.setKeywords(keywords);
List<DashboardsItem> dashboards = new ArrayList<DashboardsItem>();
for (int j = 0; j < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Dashboards.Length"); j++) {
DashboardsItem dashboardsItem = new DashboardsItem();
dashboardsItem.setDescription(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Dashboards["+ j +"].Description"));
dashboardsItem.setName(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Dashboards["+ j +"].Name"));
dashboardsItem.setUrl(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Dashboards["+ j +"].Url"));
dashboards.add(dashboardsItem);
}
dataItem.setDashboards(dashboards);
List<EnvironmentsItem> environments = new ArrayList<EnvironmentsItem>();
for (int j = 0; j < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Environments.Length"); j++) {
EnvironmentsItem environmentsItem = new EnvironmentsItem();
environmentsItem.setDescription(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Description"));
environmentsItem.setEnable(_ctx.booleanValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Enable"));
environmentsItem.setLabel(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Label"));
environmentsItem.setName(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Name"));
Dependencies dependencies = new Dependencies();
dependencies.setFeatures(_ctx.mapValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Dependencies.Features"));
List<String> services = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Dependencies.Services.Length"); k++) {
services.add(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Dependencies.Services["+ k +"]"));
}
dependencies.setServices(services);
List<String> clusterTypes = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Dependencies.ClusterTypes.Length"); k++) {
clusterTypes.add(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Dependencies.ClusterTypes["+ k +"]"));
}
dependencies.setClusterTypes(clusterTypes);
environmentsItem.setDependencies(dependencies);
Policies policies = new Policies();
policies.setAlertDefaultStatus(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.AlertDefaultStatus"));
policies.setDefaultInstall(_ctx.booleanValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.DefaultInstall"));
policies.setTargetAddonName(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.TargetAddonName"));
policies.setEnableServiceAccount(_ctx.booleanValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.EnableServiceAccount"));
policies.setNeedRestartAfterIntegration(_ctx.booleanValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.NeedRestartAfterIntegration"));
MetricCheckRule metricCheckRule = new MetricCheckRule();
List<String> promQL = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.MetricCheckRule.PromQL.Length"); k++) {
promQL.add(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.MetricCheckRule.PromQL["+ k +"]"));
}
metricCheckRule.setPromQL(promQL);
policies.setMetricCheckRule(metricCheckRule);
List<ProtocolsItem> protocols = new ArrayList<ProtocolsItem>();
for (int k = 0; k < _ctx.lengthValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.Protocols.Length"); k++) {
ProtocolsItem protocolsItem = new ProtocolsItem();
protocolsItem.setName(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Name"));
protocolsItem.setLabel(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Label"));
protocolsItem.setIcon(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Icon"));
protocolsItem.setDescription(_ctx.stringValue("ListAddonsResponse.Data["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Description"));
protocols.add(protocolsItem);
}
policies.setProtocols(protocols);
environmentsItem.setPolicies(policies);
environments.add(environmentsItem);
}
dataItem.setEnvironments(environments);
data.add(dataItem);
}
listAddonsResponse.setData(data);
return listAddonsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListAlertEventsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListAlertEventsResponse;
import com.aliyuncs.arms.model.v20190808.ListAlertEventsResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.ListAlertEventsResponse.PageBean.EventsItem;
import com.aliyuncs.arms.model.v20190808.ListAlertEventsResponse.PageBean.EventsItem.AlarmsItem;
import com.aliyuncs.arms.model.v20190808.ListAlertEventsResponse.PageBean.EventsItem.NotificationPolicy;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAlertEventsResponseUnmarshaller {
public static ListAlertEventsResponse unmarshall(ListAlertEventsResponse listAlertEventsResponse, UnmarshallerContext _ctx) {
listAlertEventsResponse.setRequestId(_ctx.stringValue("ListAlertEventsResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setTotal(_ctx.longValue("ListAlertEventsResponse.PageBean.Total"));
pageBean.setPage(_ctx.longValue("ListAlertEventsResponse.PageBean.Page"));
pageBean.setSize(_ctx.longValue("ListAlertEventsResponse.PageBean.Size"));
List<EventsItem> events = new ArrayList<EventsItem>();
for (int i = 0; i < _ctx.lengthValue("ListAlertEventsResponse.PageBean.Events.Length"); i++) {
EventsItem eventsItem = new EventsItem();
eventsItem.setAlertName(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].AlertName"));
eventsItem.setSeverity(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Severity"));
eventsItem.setStatus(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Status"));
eventsItem.setStartTime(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].StartTime"));
eventsItem.setEndTime(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].EndTime"));
eventsItem.setReceiveTime(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].ReceiveTime"));
eventsItem.setIntegrationName(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].IntegrationName"));
eventsItem.setIntegrationType(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].IntegrationType"));
eventsItem.setGeneratorURL(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].GeneratorURL"));
eventsItem.setDescription(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Description"));
eventsItem.setAnnotations(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Annotations"));
eventsItem.setLabels(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Labels"));
eventsItem.setHandlerName(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].HandlerName"));
eventsItem.setTriggerCount(_ctx.longValue("ListAlertEventsResponse.PageBean.Events["+ i +"].TriggerCount"));
List<AlarmsItem> alarms = new ArrayList<AlarmsItem>();
for (int j = 0; j < _ctx.lengthValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Alarms.Length"); j++) {
AlarmsItem alarmsItem = new AlarmsItem();
alarmsItem.setAlarmId(_ctx.longValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Alarms["+ j +"].AlarmId"));
alarmsItem.setAlarmName(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Alarms["+ j +"].AlarmName"));
alarmsItem.setState(_ctx.integerValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Alarms["+ j +"].State"));
alarmsItem.setCreateTime(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].Alarms["+ j +"].CreateTime"));
alarms.add(alarmsItem);
}
eventsItem.setAlarms(alarms);
List<NotificationPolicy> notificationPolicies = new ArrayList<NotificationPolicy>();
for (int j = 0; j < _ctx.lengthValue("ListAlertEventsResponse.PageBean.Events["+ i +"].NotificationPolicies.Length"); j++) {
NotificationPolicy notificationPolicy = new NotificationPolicy();
notificationPolicy.setId(_ctx.longValue("ListAlertEventsResponse.PageBean.Events["+ i +"].NotificationPolicies["+ j +"].Id"));
notificationPolicy.setName(_ctx.stringValue("ListAlertEventsResponse.PageBean.Events["+ i +"].NotificationPolicies["+ j +"].Name"));
notificationPolicies.add(notificationPolicy);
}
eventsItem.setNotificationPolicies(notificationPolicies);
events.add(eventsItem);
}
pageBean.setEvents(events);
listAlertEventsResponse.setPageBean(pageBean);
return listAlertEventsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListAlertsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListAlertsResponse;
import com.aliyuncs.arms.model.v20190808.ListAlertsResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.ListAlertsResponse.PageBean.ListAlertsItem;
import com.aliyuncs.arms.model.v20190808.ListAlertsResponse.PageBean.ListAlertsItem.ActivitiesItem;
import com.aliyuncs.arms.model.v20190808.ListAlertsResponse.PageBean.ListAlertsItem.AlertEventsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListAlertsResponseUnmarshaller {
public static ListAlertsResponse unmarshall(ListAlertsResponse listAlertsResponse, UnmarshallerContext _ctx) {
listAlertsResponse.setRequestId(_ctx.stringValue("ListAlertsResponse.RequestId"));
listAlertsResponse.setMessage(_ctx.stringValue("ListAlertsResponse.Message"));
PageBean pageBean = new PageBean();
pageBean.setTotal(_ctx.longValue("ListAlertsResponse.PageBean.Total"));
pageBean.setPage(_ctx.longValue("ListAlertsResponse.PageBean.Page"));
pageBean.setSize(_ctx.longValue("ListAlertsResponse.PageBean.Size"));
List<ListAlertsItem> listAlerts = new ArrayList<ListAlertsItem>();
for (int i = 0; i < _ctx.lengthValue("ListAlertsResponse.PageBean.ListAlerts.Length"); i++) {
ListAlertsItem listAlertsItem = new ListAlertsItem();
listAlertsItem.setAlertName(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertName"));
listAlertsItem.setSeverity(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Severity"));
listAlertsItem.setState(_ctx.longValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].State"));
listAlertsItem.setDispatchRuleId(_ctx.floatValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].DispatchRuleId"));
listAlertsItem.setDispatchRuleName(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].DispatchRuleName"));
listAlertsItem.setCreateTime(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].CreateTime"));
listAlertsItem.setAlertId(_ctx.longValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertId"));
listAlertsItem.setSolution(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Solution"));
listAlertsItem.setOwner(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Owner"));
listAlertsItem.setHandler(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Handler"));
listAlertsItem.setAcknowledgeTime(_ctx.longValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AcknowledgeTime"));
listAlertsItem.setRecoverTime(_ctx.longValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].RecoverTime"));
listAlertsItem.setNotifyRobots(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].NotifyRobots"));
listAlertsItem.setDescribe(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Describe"));
List<ActivitiesItem> activities = new ArrayList<ActivitiesItem>();
for (int j = 0; j < _ctx.lengthValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Activities.Length"); j++) {
ActivitiesItem activitiesItem = new ActivitiesItem();
activitiesItem.setTime(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Activities["+ j +"].Time"));
activitiesItem.setType(_ctx.longValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Activities["+ j +"].Type"));
activitiesItem.setHandlerName(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Activities["+ j +"].HandlerName"));
activitiesItem.setDescription(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Activities["+ j +"].Description"));
activitiesItem.setContent(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].Activities["+ j +"].Content"));
activities.add(activitiesItem);
}
listAlertsItem.setActivities(activities);
List<AlertEventsItem> alertEvents = new ArrayList<AlertEventsItem>();
for (int j = 0; j < _ctx.lengthValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents.Length"); j++) {
AlertEventsItem alertEventsItem = new AlertEventsItem();
alertEventsItem.setAlertName(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].AlertName"));
alertEventsItem.setSeverity(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].Severity"));
alertEventsItem.setState(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].State"));
alertEventsItem.setStartTime(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].StartTime"));
alertEventsItem.setEndTime(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].EndTime"));
alertEventsItem.setReceiveTime(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].ReceiveTime"));
alertEventsItem.setIntegrationName(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].IntegrationName"));
alertEventsItem.setIntegrationType(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].IntegrationType"));
alertEventsItem.setGeneratorURL(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].GeneratorURL"));
alertEventsItem.setDescription(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].Description"));
alertEventsItem.setAnnotations(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].Annotations"));
alertEventsItem.setLabels(_ctx.stringValue("ListAlertsResponse.PageBean.ListAlerts["+ i +"].AlertEvents["+ j +"].Labels"));
alertEvents.add(alertEventsItem);
}
listAlertsItem.setAlertEvents(alertEvents);
listAlerts.add(listAlertsItem);
}
pageBean.setListAlerts(listAlerts);
listAlertsResponse.setPageBean(pageBean);
return listAlertsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListClusterFromGrafanaResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListClusterFromGrafanaResponse;
import com.aliyuncs.arms.model.v20190808.ListClusterFromGrafanaResponse.PromCluster;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListClusterFromGrafanaResponseUnmarshaller {
public static ListClusterFromGrafanaResponse unmarshall(ListClusterFromGrafanaResponse listClusterFromGrafanaResponse, UnmarshallerContext _ctx) {
listClusterFromGrafanaResponse.setRequestId(_ctx.stringValue("ListClusterFromGrafanaResponse.RequestId"));
List<PromCluster> promClusterList = new ArrayList<PromCluster>();
for (int i = 0; i < _ctx.lengthValue("ListClusterFromGrafanaResponse.PromClusterList.Length"); i++) {
PromCluster promCluster = new PromCluster();
promCluster.setUpdateTime(_ctx.longValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].UpdateTime"));
promCluster.setCreateTime(_ctx.longValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].CreateTime"));
promCluster.setUserId(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].UserId"));
promCluster.setOptions(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].Options"));
promCluster.setIsControllerInstalled(_ctx.booleanValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].IsControllerInstalled"));
promCluster.setAgentStatus(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].AgentStatus"));
promCluster.setExtra(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].Extra"));
promCluster.setInstallTime(_ctx.longValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].InstallTime"));
promCluster.setRegionId(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].RegionId"));
promCluster.setControllerId(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].ControllerId"));
promCluster.setPluginsJsonArray(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].PluginsJsonArray"));
promCluster.setClusterType(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].ClusterType"));
promCluster.setClusterName(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].ClusterName"));
promCluster.setStateJson(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].StateJson"));
promCluster.setLastHeartBeatTime(_ctx.longValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].LastHeartBeatTime"));
promCluster.setNodeNum(_ctx.integerValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].NodeNum"));
promCluster.setId(_ctx.longValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].Id"));
promCluster.setClusterId(_ctx.stringValue("ListClusterFromGrafanaResponse.PromClusterList["+ i +"].ClusterId"));
promClusterList.add(promCluster);
}
listClusterFromGrafanaResponse.setPromClusterList(promClusterList);
return listClusterFromGrafanaResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListCmsInstancesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListCmsInstancesResponse;
import com.aliyuncs.arms.model.v20190808.ListCmsInstancesResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListCmsInstancesResponse.Data.ProductsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListCmsInstancesResponseUnmarshaller {
public static ListCmsInstancesResponse unmarshall(ListCmsInstancesResponse listCmsInstancesResponse, UnmarshallerContext _ctx) {
listCmsInstancesResponse.setRequestId(_ctx.stringValue("ListCmsInstancesResponse.RequestId"));
Data data = new Data();
data.setEnableTag(_ctx.booleanValue("ListCmsInstancesResponse.Data.EnableTag"));
List<ProductsItem> products = new ArrayList<ProductsItem>();
for (int i = 0; i < _ctx.lengthValue("ListCmsInstancesResponse.Data.Products.Length"); i++) {
ProductsItem productsItem = new ProductsItem();
productsItem.setDescr(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Descr"));
productsItem.setInstance(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Instance"));
productsItem.setProd(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Prod"));
productsItem.setName(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Name"));
productsItem.setId(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Id"));
productsItem.setState(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].State"));
productsItem.setTime(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Time"));
productsItem.setType(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Type"));
productsItem.setUrl(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Url"));
productsItem.setSource(_ctx.stringValue("ListCmsInstancesResponse.Data.Products["+ i +"].Source"));
products.add(productsItem);
}
data.setProducts(products);
listCmsInstancesResponse.setData(data);
return listCmsInstancesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListDashboardsByNameResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.ListDashboardsByNameResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListDashboardsByNameResponseUnmarshaller {
public static ListDashboardsByNameResponse unmarshall(ListDashboardsByNameResponse listDashboardsByNameResponse, UnmarshallerContext _ctx) {
listDashboardsByNameResponse.setRequestId(_ctx.stringValue("ListDashboardsByNameResponse.RequestId"));
listDashboardsByNameResponse.setData(_ctx.stringValue("ListDashboardsByNameResponse.Data"));
listDashboardsByNameResponse.setCode(_ctx.integerValue("ListDashboardsByNameResponse.Code"));
listDashboardsByNameResponse.setMessage(_ctx.stringValue("ListDashboardsByNameResponse.Message"));
return listDashboardsByNameResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListDashboardsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListDashboardsResponse;
import com.aliyuncs.arms.model.v20190808.ListDashboardsResponse.DashboardVosItem;
import com.aliyuncs.arms.model.v20190808.ListDashboardsResponse.DashboardVosItem.I18nChild;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListDashboardsResponseUnmarshaller {
public static ListDashboardsResponse unmarshall(ListDashboardsResponse listDashboardsResponse, UnmarshallerContext _ctx) {
listDashboardsResponse.setRequestId(_ctx.stringValue("ListDashboardsResponse.RequestId"));
listDashboardsResponse.setPrometheusServiceOpened(_ctx.stringValue("ListDashboardsResponse.PrometheusServiceOpened"));
listDashboardsResponse.setEnvironmentId(_ctx.stringValue("ListDashboardsResponse.EnvironmentId"));
listDashboardsResponse.setGrafanaServiceOpened(_ctx.stringValue("ListDashboardsResponse.GrafanaServiceOpened"));
List<DashboardVosItem> dashboardVos = new ArrayList<DashboardVosItem>();
for (int i = 0; i < _ctx.lengthValue("ListDashboardsResponse.DashboardVos.Length"); i++) {
DashboardVosItem dashboardVosItem = new DashboardVosItem();
dashboardVosItem.setType(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Type"));
dashboardVosItem.setTime(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Time"));
dashboardVosItem.setNeedUpdate(_ctx.booleanValue("ListDashboardsResponse.DashboardVos["+ i +"].NeedUpdate"));
dashboardVosItem.setKind(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Kind"));
dashboardVosItem.setLanguage(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Language"));
dashboardVosItem.setUrl(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Url"));
dashboardVosItem.setHttpsUrl(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].HttpsUrl"));
dashboardVosItem.setDashboardType(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].DashboardType"));
dashboardVosItem.setExporter(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Exporter"));
dashboardVosItem.setVersion(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Version"));
dashboardVosItem.setIsArmsExporter(_ctx.booleanValue("ListDashboardsResponse.DashboardVos["+ i +"].IsArmsExporter"));
dashboardVosItem.setHttpUrl(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].HttpUrl"));
dashboardVosItem.setTitle(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Title"));
dashboardVosItem.setName(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Name"));
dashboardVosItem.setId(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Id"));
dashboardVosItem.setUid(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Uid"));
List<String> tags = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListDashboardsResponse.DashboardVos["+ i +"].Tags.Length"); j++) {
tags.add(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].Tags["+ j +"]"));
}
dashboardVosItem.setTags(tags);
I18nChild i18nChild = new I18nChild();
i18nChild.setType(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Type"));
i18nChild.setTime(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Time"));
i18nChild.setNeedUpdate(_ctx.booleanValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.NeedUpdate"));
i18nChild.setKind(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Kind"));
i18nChild.setLanguage(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Language"));
i18nChild.setUrl(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Url"));
i18nChild.setHttpsUrl(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.HttpsUrl"));
i18nChild.setDashboardType(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.DashboardType"));
i18nChild.setExporter(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Exporter"));
i18nChild.setVersion(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Version"));
i18nChild.setIsArmsExporter(_ctx.booleanValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.IsArmsExporter"));
i18nChild.setHttpUrl(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.HttpUrl"));
i18nChild.setTitle(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Title"));
i18nChild.setName(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Name"));
i18nChild.setId(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Id"));
i18nChild.setUid(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Uid"));
List<String> tags1 = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Tags.Length"); j++) {
tags1.add(_ctx.stringValue("ListDashboardsResponse.DashboardVos["+ i +"].I18nChild.Tags["+ j +"]"));
}
i18nChild.setTags1(tags1);
dashboardVosItem.setI18nChild(i18nChild);
dashboardVos.add(dashboardVosItem);
}
listDashboardsResponse.setDashboardVos(dashboardVos);
return listDashboardsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListDispatchRuleResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListDispatchRuleResponse;
import com.aliyuncs.arms.model.v20190808.ListDispatchRuleResponse.DispatchRule;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListDispatchRuleResponseUnmarshaller {
public static ListDispatchRuleResponse unmarshall(ListDispatchRuleResponse listDispatchRuleResponse, UnmarshallerContext _ctx) {
listDispatchRuleResponse.setRequestId(_ctx.stringValue("ListDispatchRuleResponse.RequestId"));
List<DispatchRule> dispatchRules = new ArrayList<DispatchRule>();
for (int i = 0; i < _ctx.lengthValue("ListDispatchRuleResponse.DispatchRules.Length"); i++) {
DispatchRule dispatchRule = new DispatchRule();
dispatchRule.setName(_ctx.stringValue("ListDispatchRuleResponse.DispatchRules["+ i +"].Name"));
dispatchRule.setState(_ctx.stringValue("ListDispatchRuleResponse.DispatchRules["+ i +"].State"));
dispatchRule.setRuleId(_ctx.longValue("ListDispatchRuleResponse.DispatchRules["+ i +"].RuleId"));
dispatchRules.add(dispatchRule);
}
listDispatchRuleResponse.setDispatchRules(dispatchRules);
return listDispatchRuleResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvCustomJobsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvCustomJobsResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvCustomJobsResponse.Monitoring;
import com.aliyuncs.arms.model.v20190808.ListEnvCustomJobsResponse.Monitoring.ScrapeConfig;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvCustomJobsResponseUnmarshaller {
public static ListEnvCustomJobsResponse unmarshall(ListEnvCustomJobsResponse listEnvCustomJobsResponse, UnmarshallerContext _ctx) {
listEnvCustomJobsResponse.setRequestId(_ctx.stringValue("ListEnvCustomJobsResponse.RequestId"));
listEnvCustomJobsResponse.setCode(_ctx.integerValue("ListEnvCustomJobsResponse.Code"));
listEnvCustomJobsResponse.setMessage(_ctx.stringValue("ListEnvCustomJobsResponse.Message"));
List<Monitoring> data = new ArrayList<Monitoring>();
for (int i = 0; i < _ctx.lengthValue("ListEnvCustomJobsResponse.Data.Length"); i++) {
Monitoring monitoring = new Monitoring();
monitoring.setEnvironmentId(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].EnvironmentId"));
monitoring.setRegionId(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].RegionId"));
monitoring.setCustomJobName(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].CustomJobName"));
monitoring.setConfigYaml(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].ConfigYaml"));
monitoring.setStatus(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].Status"));
monitoring.setCreationTimestamp(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].CreationTimestamp"));
monitoring.setAddonName(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].AddonName"));
monitoring.setAddonReleaseName(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].AddonReleaseName"));
monitoring.setAddonVersion(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].AddonVersion"));
List<ScrapeConfig> scrapeConfigs = new ArrayList<ScrapeConfig>();
for (int j = 0; j < _ctx.lengthValue("ListEnvCustomJobsResponse.Data["+ i +"].ScrapeConfigs.Length"); j++) {
ScrapeConfig scrapeConfig = new ScrapeConfig();
scrapeConfig.setJobName(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].ScrapeConfigs["+ j +"].JobName"));
scrapeConfig.setScrapeInterval(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].ScrapeConfigs["+ j +"].ScrapeInterval"));
scrapeConfig.setMetricsPath(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].ScrapeConfigs["+ j +"].MetricsPath"));
List<String> scrapeDiscoverys = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListEnvCustomJobsResponse.Data["+ i +"].ScrapeConfigs["+ j +"].ScrapeDiscoverys.Length"); k++) {
scrapeDiscoverys.add(_ctx.stringValue("ListEnvCustomJobsResponse.Data["+ i +"].ScrapeConfigs["+ j +"].ScrapeDiscoverys["+ k +"]"));
}
scrapeConfig.setScrapeDiscoverys(scrapeDiscoverys);
scrapeConfigs.add(scrapeConfig);
}
monitoring.setScrapeConfigs(scrapeConfigs);
data.add(monitoring);
}
listEnvCustomJobsResponse.setData(data);
return listEnvCustomJobsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvPodMonitorsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvPodMonitorsResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvPodMonitorsResponse.Monitoring;
import com.aliyuncs.arms.model.v20190808.ListEnvPodMonitorsResponse.Monitoring.Endpoint;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvPodMonitorsResponseUnmarshaller {
public static ListEnvPodMonitorsResponse unmarshall(ListEnvPodMonitorsResponse listEnvPodMonitorsResponse, UnmarshallerContext _ctx) {
listEnvPodMonitorsResponse.setRequestId(_ctx.stringValue("ListEnvPodMonitorsResponse.RequestId"));
listEnvPodMonitorsResponse.setCode(_ctx.integerValue("ListEnvPodMonitorsResponse.Code"));
listEnvPodMonitorsResponse.setMessage(_ctx.stringValue("ListEnvPodMonitorsResponse.Message"));
List<Monitoring> data = new ArrayList<Monitoring>();
for (int i = 0; i < _ctx.lengthValue("ListEnvPodMonitorsResponse.Data.Length"); i++) {
Monitoring monitoring = new Monitoring();
monitoring.setRegionId(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].RegionId"));
monitoring.setEnvironmentId(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].EnvironmentId"));
monitoring.setNamespace(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].Namespace"));
monitoring.setPodMonitorName(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].PodMonitorName"));
monitoring.setConfigYaml(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].ConfigYaml"));
monitoring.setStatus(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].Status"));
monitoring.setCreationTimestamp(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].CreationTimestamp"));
monitoring.setAddonName(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].AddonName"));
monitoring.setAddonReleaseName(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].AddonReleaseName"));
monitoring.setAddonVersion(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].AddonVersion"));
List<Endpoint> endpoints = new ArrayList<Endpoint>();
for (int j = 0; j < _ctx.lengthValue("ListEnvPodMonitorsResponse.Data["+ i +"].Endpoints.Length"); j++) {
Endpoint endpoint = new Endpoint();
endpoint.setPort(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].Port"));
endpoint.setTargetPort(_ctx.integerValue("ListEnvPodMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].TargetPort"));
endpoint.setPath(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].Path"));
endpoint.setInterval(_ctx.stringValue("ListEnvPodMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].Interval"));
endpoint.setMatchedTargetCount(_ctx.integerValue("ListEnvPodMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].MatchedTargetCount"));
endpoints.add(endpoint);
}
monitoring.setEndpoints(endpoints);
data.add(monitoring);
}
listEnvPodMonitorsResponse.setData(data);
return listEnvPodMonitorsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvServiceMonitorsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvServiceMonitorsResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvServiceMonitorsResponse.Monitoring;
import com.aliyuncs.arms.model.v20190808.ListEnvServiceMonitorsResponse.Monitoring.Endpoint;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvServiceMonitorsResponseUnmarshaller {
public static ListEnvServiceMonitorsResponse unmarshall(ListEnvServiceMonitorsResponse listEnvServiceMonitorsResponse, UnmarshallerContext _ctx) {
listEnvServiceMonitorsResponse.setRequestId(_ctx.stringValue("ListEnvServiceMonitorsResponse.RequestId"));
listEnvServiceMonitorsResponse.setCode(_ctx.integerValue("ListEnvServiceMonitorsResponse.Code"));
listEnvServiceMonitorsResponse.setMessage(_ctx.stringValue("ListEnvServiceMonitorsResponse.Message"));
List<Monitoring> data = new ArrayList<Monitoring>();
for (int i = 0; i < _ctx.lengthValue("ListEnvServiceMonitorsResponse.Data.Length"); i++) {
Monitoring monitoring = new Monitoring();
monitoring.setRegionId(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].RegionId"));
monitoring.setEnvironmentId(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].EnvironmentId"));
monitoring.setNamespace(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Namespace"));
monitoring.setServiceMonitorName(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].ServiceMonitorName"));
monitoring.setConfigYaml(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].ConfigYaml"));
monitoring.setStatus(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Status"));
monitoring.setCreationTimestamp(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].CreationTimestamp"));
monitoring.setAddonName(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].AddonName"));
monitoring.setAddonReleaseName(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].AddonReleaseName"));
monitoring.setAddonVersion(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].AddonVersion"));
monitoring.setMatchedServiceCount(_ctx.integerValue("ListEnvServiceMonitorsResponse.Data["+ i +"].MatchedServiceCount"));
List<Endpoint> endpoints = new ArrayList<Endpoint>();
for (int j = 0; j < _ctx.lengthValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Endpoints.Length"); j++) {
Endpoint endpoint = new Endpoint();
endpoint.setPort(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].Port"));
endpoint.setTargetPort(_ctx.integerValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].TargetPort"));
endpoint.setPath(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].Path"));
endpoint.setInterval(_ctx.stringValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].Interval"));
endpoint.setMatchedTargetCount(_ctx.integerValue("ListEnvServiceMonitorsResponse.Data["+ i +"].Endpoints["+ j +"].MatchedTargetCount"));
endpoints.add(endpoint);
}
monitoring.setEndpoints(endpoints);
data.add(monitoring);
}
listEnvServiceMonitorsResponse.setData(data);
return listEnvServiceMonitorsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvironmentAddonsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data.AddonsItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data.AddonsItem.DashboardsItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data.AddonsItem.EnvironmentsItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data.AddonsItem.EnvironmentsItem.Dependencies;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data.AddonsItem.EnvironmentsItem.Policies;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data.AddonsItem.EnvironmentsItem.Policies.MetricCheckRule;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAddonsResponse.Data.AddonsItem.EnvironmentsItem.Policies.ProtocolsItem;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvironmentAddonsResponseUnmarshaller {
public static ListEnvironmentAddonsResponse unmarshall(ListEnvironmentAddonsResponse listEnvironmentAddonsResponse, UnmarshallerContext _ctx) {
listEnvironmentAddonsResponse.setRequestId(_ctx.stringValue("ListEnvironmentAddonsResponse.RequestId"));
listEnvironmentAddonsResponse.setCode(_ctx.integerValue("ListEnvironmentAddonsResponse.Code"));
listEnvironmentAddonsResponse.setMessage(_ctx.stringValue("ListEnvironmentAddonsResponse.Message"));
listEnvironmentAddonsResponse.setSuccess(_ctx.booleanValue("ListEnvironmentAddonsResponse.Success"));
Data data = new Data();
data.setTotal(_ctx.longValue("ListEnvironmentAddonsResponse.Data.Total"));
List<AddonsItem> addons = new ArrayList<AddonsItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons.Length"); i++) {
AddonsItem addonsItem = new AddonsItem();
addonsItem.setAlias(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Alias"));
addonsItem.setDescription(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Description"));
addonsItem.setIcon(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Icon"));
addonsItem.setLanguage(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Language"));
addonsItem.setName(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Name"));
addonsItem.setOnce(_ctx.booleanValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Once"));
addonsItem.setScene(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Scene"));
addonsItem.setVersion(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Version"));
addonsItem.setWeight(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Weight"));
addonsItem.setLatestReleaseCreateTime(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].LatestReleaseCreateTime"));
List<String> categories = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Categories.Length"); j++) {
categories.add(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Categories["+ j +"]"));
}
addonsItem.setCategories(categories);
List<String> keywords = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Keywords.Length"); j++) {
keywords.add(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Keywords["+ j +"]"));
}
addonsItem.setKeywords(keywords);
List<DashboardsItem> dashboards = new ArrayList<DashboardsItem>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Dashboards.Length"); j++) {
DashboardsItem dashboardsItem = new DashboardsItem();
dashboardsItem.setDescription(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Dashboards["+ j +"].Description"));
dashboardsItem.setName(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Dashboards["+ j +"].Name"));
dashboardsItem.setUrl(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Dashboards["+ j +"].Url"));
dashboards.add(dashboardsItem);
}
addonsItem.setDashboards(dashboards);
List<EnvironmentsItem> environments = new ArrayList<EnvironmentsItem>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments.Length"); j++) {
EnvironmentsItem environmentsItem = new EnvironmentsItem();
environmentsItem.setDescription(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Description"));
environmentsItem.setEnable(_ctx.booleanValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Enable"));
environmentsItem.setLabel(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Label"));
environmentsItem.setName(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Name"));
Dependencies dependencies = new Dependencies();
dependencies.setFeatures(_ctx.mapValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Dependencies.Features"));
List<String> services = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Dependencies.Services.Length"); k++) {
services.add(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Dependencies.Services["+ k +"]"));
}
dependencies.setServices(services);
List<String> clusterTypes = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Dependencies.ClusterTypes.Length"); k++) {
clusterTypes.add(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Dependencies.ClusterTypes["+ k +"]"));
}
dependencies.setClusterTypes(clusterTypes);
environmentsItem.setDependencies(dependencies);
Policies policies = new Policies();
policies.setAlertDefaultStatus(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.AlertDefaultStatus"));
policies.setDefaultInstall(_ctx.booleanValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.DefaultInstall"));
policies.setTargetAddonName(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.TargetAddonName"));
policies.setNeedRestartAfterIntegration(_ctx.booleanValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.NeedRestartAfterIntegration"));
policies.setEnableServiceAccount(_ctx.booleanValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.EnableServiceAccount"));
MetricCheckRule metricCheckRule = new MetricCheckRule();
List<String> promQL = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.MetricCheckRule.PromQL.Length"); k++) {
promQL.add(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.MetricCheckRule.PromQL["+ k +"]"));
}
metricCheckRule.setPromQL(promQL);
policies.setMetricCheckRule(metricCheckRule);
List<ProtocolsItem> protocols = new ArrayList<ProtocolsItem>();
for (int k = 0; k < _ctx.lengthValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.Protocols.Length"); k++) {
ProtocolsItem protocolsItem = new ProtocolsItem();
protocolsItem.setName(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Name"));
protocolsItem.setIcon(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Icon"));
protocolsItem.setLabel(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Label"));
protocolsItem.setDescription(_ctx.stringValue("ListEnvironmentAddonsResponse.Data.Addons["+ i +"].Environments["+ j +"].Policies.Protocols["+ k +"].Description"));
protocols.add(protocolsItem);
}
policies.setProtocols(protocols);
environmentsItem.setPolicies(policies);
environments.add(environmentsItem);
}
addonsItem.setEnvironments(environments);
addons.add(addonsItem);
}
data.setAddons(addons);
listEnvironmentAddonsResponse.setData(data);
return listEnvironmentAddonsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvironmentAlertRulesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAlertRulesResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAlertRulesResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentAlertRulesResponse.Data.RulesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvironmentAlertRulesResponseUnmarshaller {
public static ListEnvironmentAlertRulesResponse unmarshall(ListEnvironmentAlertRulesResponse listEnvironmentAlertRulesResponse, UnmarshallerContext _ctx) {
listEnvironmentAlertRulesResponse.setRequestId(_ctx.stringValue("ListEnvironmentAlertRulesResponse.RequestId"));
listEnvironmentAlertRulesResponse.setCode(_ctx.integerValue("ListEnvironmentAlertRulesResponse.Code"));
listEnvironmentAlertRulesResponse.setMessage(_ctx.stringValue("ListEnvironmentAlertRulesResponse.Message"));
listEnvironmentAlertRulesResponse.setSuccess(_ctx.booleanValue("ListEnvironmentAlertRulesResponse.Success"));
Data data = new Data();
data.setTotal(_ctx.longValue("ListEnvironmentAlertRulesResponse.Data.Total"));
List<String> groups = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentAlertRulesResponse.Data.Groups.Length"); i++) {
groups.add(_ctx.stringValue("ListEnvironmentAlertRulesResponse.Data.Groups["+ i +"]"));
}
data.setGroups(groups);
List<RulesItem> rules = new ArrayList<RulesItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentAlertRulesResponse.Data.Rules.Length"); i++) {
RulesItem rulesItem = new RulesItem();
rulesItem.setAlertId(_ctx.longValue("ListEnvironmentAlertRulesResponse.Data.Rules["+ i +"].AlertId"));
rulesItem.setName(_ctx.stringValue("ListEnvironmentAlertRulesResponse.Data.Rules["+ i +"].Name"));
rules.add(rulesItem);
}
data.setRules(rules);
listEnvironmentAlertRulesResponse.setData(data);
return listEnvironmentAlertRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvironmentDashboardsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentDashboardsResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentDashboardsResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentDashboardsResponse.Data.DashboardsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvironmentDashboardsResponseUnmarshaller {
public static ListEnvironmentDashboardsResponse unmarshall(ListEnvironmentDashboardsResponse listEnvironmentDashboardsResponse, UnmarshallerContext _ctx) {
listEnvironmentDashboardsResponse.setRequestId(_ctx.stringValue("ListEnvironmentDashboardsResponse.RequestId"));
listEnvironmentDashboardsResponse.setCode(_ctx.integerValue("ListEnvironmentDashboardsResponse.Code"));
listEnvironmentDashboardsResponse.setMessage(_ctx.stringValue("ListEnvironmentDashboardsResponse.Message"));
listEnvironmentDashboardsResponse.setSuccess(_ctx.booleanValue("ListEnvironmentDashboardsResponse.Success"));
Data data = new Data();
data.setTotal(_ctx.longValue("ListEnvironmentDashboardsResponse.Data.Total"));
List<DashboardsItem> dashboards = new ArrayList<DashboardsItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentDashboardsResponse.Data.Dashboards.Length"); i++) {
DashboardsItem dashboardsItem = new DashboardsItem();
dashboardsItem.setFolderUid(_ctx.stringValue("ListEnvironmentDashboardsResponse.Data.Dashboards["+ i +"].FolderUid"));
dashboardsItem.setRegion(_ctx.stringValue("ListEnvironmentDashboardsResponse.Data.Dashboards["+ i +"].Region"));
dashboardsItem.setTitle(_ctx.stringValue("ListEnvironmentDashboardsResponse.Data.Dashboards["+ i +"].Title"));
dashboardsItem.setUid(_ctx.stringValue("ListEnvironmentDashboardsResponse.Data.Dashboards["+ i +"].Uid"));
dashboardsItem.setUrl(_ctx.stringValue("ListEnvironmentDashboardsResponse.Data.Dashboards["+ i +"].Url"));
List<String> tags = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentDashboardsResponse.Data.Dashboards["+ i +"].Tags.Length"); j++) {
tags.add(_ctx.stringValue("ListEnvironmentDashboardsResponse.Data.Dashboards["+ i +"].Tags["+ j +"]"));
}
dashboardsItem.setTags(tags);
dashboards.add(dashboardsItem);
}
data.setDashboards(dashboards);
listEnvironmentDashboardsResponse.setData(data);
return listEnvironmentDashboardsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvironmentFeaturesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentFeaturesResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentFeaturesResponse.DataItem;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvironmentFeaturesResponseUnmarshaller {
public static ListEnvironmentFeaturesResponse unmarshall(ListEnvironmentFeaturesResponse listEnvironmentFeaturesResponse, UnmarshallerContext _ctx) {
listEnvironmentFeaturesResponse.setRequestId(_ctx.stringValue("ListEnvironmentFeaturesResponse.RequestId"));
listEnvironmentFeaturesResponse.setCode(_ctx.integerValue("ListEnvironmentFeaturesResponse.Code"));
listEnvironmentFeaturesResponse.setMessage(_ctx.stringValue("ListEnvironmentFeaturesResponse.Message"));
listEnvironmentFeaturesResponse.setSuccess(_ctx.booleanValue("ListEnvironmentFeaturesResponse.Success"));
List<DataItem> data = new ArrayList<DataItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentFeaturesResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setConfig(_ctx.mapValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Config"));
dataItem.setDescription(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Description"));
dataItem.setEnvironmentId(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].EnvironmentId"));
dataItem.setLanguage(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Language"));
dataItem.setLatestVersion(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].LatestVersion"));
dataItem.setName(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Name"));
dataItem.setStatus(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Status"));
dataItem.setVersion(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Version"));
dataItem.setAlias(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Alias"));
dataItem.setIcon(_ctx.stringValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Icon"));
dataItem.setManaged(_ctx.booleanValue("ListEnvironmentFeaturesResponse.Data["+ i +"].Managed"));
data.add(dataItem);
}
listEnvironmentFeaturesResponse.setData(data);
return listEnvironmentFeaturesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvironmentKubeResourcesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentKubeResourcesResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentKubeResourcesResponse.DataItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentKubeResourcesResponse.DataItem.Metadata;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvironmentKubeResourcesResponseUnmarshaller {
public static ListEnvironmentKubeResourcesResponse unmarshall(ListEnvironmentKubeResourcesResponse listEnvironmentKubeResourcesResponse, UnmarshallerContext _ctx) {
listEnvironmentKubeResourcesResponse.setRequestId(_ctx.stringValue("ListEnvironmentKubeResourcesResponse.RequestId"));
listEnvironmentKubeResourcesResponse.setCode(_ctx.integerValue("ListEnvironmentKubeResourcesResponse.Code"));
listEnvironmentKubeResourcesResponse.setSuccess(_ctx.booleanValue("ListEnvironmentKubeResourcesResponse.Success"));
listEnvironmentKubeResourcesResponse.setMessage(_ctx.stringValue("ListEnvironmentKubeResourcesResponse.Message"));
List<DataItem> data = new ArrayList<DataItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentKubeResourcesResponse.Data.Length"); i++) {
DataItem dataItem = new DataItem();
dataItem.setApiVersion(_ctx.stringValue("ListEnvironmentKubeResourcesResponse.Data["+ i +"].ApiVersion"));
dataItem.setKind(_ctx.stringValue("ListEnvironmentKubeResourcesResponse.Data["+ i +"].Kind"));
Metadata metadata = new Metadata();
metadata.setAnnotations(_ctx.mapValue("ListEnvironmentKubeResourcesResponse.Data["+ i +"].Metadata.Annotations"));
metadata.setLabels(_ctx.mapValue("ListEnvironmentKubeResourcesResponse.Data["+ i +"].Metadata.Labels"));
metadata.setName(_ctx.stringValue("ListEnvironmentKubeResourcesResponse.Data["+ i +"].Metadata.Name"));
metadata.setNamespace(_ctx.stringValue("ListEnvironmentKubeResourcesResponse.Data["+ i +"].Metadata.Namespace"));
dataItem.setMetadata(metadata);
data.add(dataItem);
}
listEnvironmentKubeResourcesResponse.setData(data);
return listEnvironmentKubeResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvironmentMetricTargetsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentMetricTargetsResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentMetricTargetsResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentMetricTargetsResponse.Data.ActiveTargetsItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentMetricTargetsResponse.Data.DroppedTargetsItem;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvironmentMetricTargetsResponseUnmarshaller {
public static ListEnvironmentMetricTargetsResponse unmarshall(ListEnvironmentMetricTargetsResponse listEnvironmentMetricTargetsResponse, UnmarshallerContext _ctx) {
listEnvironmentMetricTargetsResponse.setRequestId(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.RequestId"));
listEnvironmentMetricTargetsResponse.setCode(_ctx.integerValue("ListEnvironmentMetricTargetsResponse.Code"));
listEnvironmentMetricTargetsResponse.setMessage(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Message"));
listEnvironmentMetricTargetsResponse.setSuccess(_ctx.booleanValue("ListEnvironmentMetricTargetsResponse.Success"));
Data data = new Data();
List<ActiveTargetsItem> activeTargets = new ArrayList<ActiveTargetsItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets.Length"); i++) {
ActiveTargetsItem activeTargetsItem = new ActiveTargetsItem();
activeTargetsItem.setDiscoveredLabels(_ctx.mapValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].DiscoveredLabels"));
activeTargetsItem.setGlobalUrl(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].GlobalUrl"));
activeTargetsItem.setHealth(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].Health"));
activeTargetsItem.setLabels(_ctx.mapValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].Labels"));
activeTargetsItem.setLastError(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].LastError"));
activeTargetsItem.setLastScrape(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].LastScrape"));
activeTargetsItem.setLastScrapeDuration(_ctx.doubleValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].LastScrapeDuration"));
activeTargetsItem.setLastScrapeSeries(_ctx.longValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].LastScrapeSeries"));
activeTargetsItem.setScrapePool(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].ScrapePool"));
activeTargetsItem.setScrapeUrl(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.ActiveTargets["+ i +"].ScrapeUrl"));
activeTargets.add(activeTargetsItem);
}
data.setActiveTargets(activeTargets);
List<DroppedTargetsItem> droppedTargets = new ArrayList<DroppedTargetsItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets.Length"); i++) {
DroppedTargetsItem droppedTargetsItem = new DroppedTargetsItem();
droppedTargetsItem.setDiscoveredLabels(_ctx.mapValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].DiscoveredLabels"));
droppedTargetsItem.setGlobalUrl(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].GlobalUrl"));
droppedTargetsItem.setHealth(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].Health"));
droppedTargetsItem.setLabels(_ctx.mapValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].Labels"));
droppedTargetsItem.setLastError(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].LastError"));
droppedTargetsItem.setLastScrape(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].LastScrape"));
droppedTargetsItem.setLastScrapeDuration(_ctx.doubleValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].LastScrapeDuration"));
droppedTargetsItem.setLastScrapeSeries(_ctx.longValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].LastScrapeSeries"));
droppedTargetsItem.setScrapePool(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].ScrapePool"));
droppedTargetsItem.setScrapeUrl(_ctx.stringValue("ListEnvironmentMetricTargetsResponse.Data.DroppedTargets["+ i +"].ScrapeUrl"));
droppedTargets.add(droppedTargetsItem);
}
data.setDroppedTargets(droppedTargets);
listEnvironmentMetricTargetsResponse.setData(data);
return listEnvironmentMetricTargetsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEnvironmentsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentsResponse;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentsResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentsResponse.Data.EnvironmentsItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentsResponse.Data.EnvironmentsItem.AddonsItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentsResponse.Data.EnvironmentsItem.FeaturesItem;
import com.aliyuncs.arms.model.v20190808.ListEnvironmentsResponse.Data.EnvironmentsItem.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEnvironmentsResponseUnmarshaller {
public static ListEnvironmentsResponse unmarshall(ListEnvironmentsResponse listEnvironmentsResponse, UnmarshallerContext _ctx) {
listEnvironmentsResponse.setRequestId(_ctx.stringValue("ListEnvironmentsResponse.RequestId"));
listEnvironmentsResponse.setSuccess(_ctx.booleanValue("ListEnvironmentsResponse.Success"));
listEnvironmentsResponse.setCode(_ctx.integerValue("ListEnvironmentsResponse.Code"));
listEnvironmentsResponse.setMessage(_ctx.stringValue("ListEnvironmentsResponse.Message"));
Data data = new Data();
data.setTotal(_ctx.longValue("ListEnvironmentsResponse.Data.Total"));
List<EnvironmentsItem> environments = new ArrayList<EnvironmentsItem>();
for (int i = 0; i < _ctx.lengthValue("ListEnvironmentsResponse.Data.Environments.Length"); i++) {
EnvironmentsItem environmentsItem = new EnvironmentsItem();
environmentsItem.setUserId(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].UserId"));
environmentsItem.setBindResourceId(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].BindResourceId"));
environmentsItem.setBindResourceProfile(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].BindResourceProfile"));
environmentsItem.setBindResourceType(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].BindResourceType"));
environmentsItem.setBindVpcCidr(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].BindVpcCidr"));
environmentsItem.setCreateTime(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].CreateTime"));
environmentsItem.setCreatedUserId(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].CreatedUserId"));
environmentsItem.setEnvironmentId(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].EnvironmentId"));
environmentsItem.setEnvironmentName(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].EnvironmentName"));
environmentsItem.setEnvironmentType(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].EnvironmentType"));
environmentsItem.setGrafanaFolderTitle(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].GrafanaFolderTitle"));
environmentsItem.setGrafanaFolderUid(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].GrafanaFolderUid"));
environmentsItem.setPrometheusId(_ctx.longValue("ListEnvironmentsResponse.Data.Environments["+ i +"].PrometheusId"));
environmentsItem.setPrometheusInstanceId(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].PrometheusInstanceId"));
environmentsItem.setRegionId(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].RegionId"));
environmentsItem.setResourceGroupId(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].ResourceGroupId"));
environmentsItem.setGrafanaDatasourceUid(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].GrafanaDatasourceUid"));
environmentsItem.setReleaseCount(_ctx.integerValue("ListEnvironmentsResponse.Data.Environments["+ i +"].ReleaseCount"));
environmentsItem.setLatestReleaseCreateTime(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].LatestReleaseCreateTime"));
environmentsItem.setManagedType(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].ManagedType"));
environmentsItem.setFeePackage(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].FeePackage"));
List<AddonsItem> addons = new ArrayList<AddonsItem>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Addons.Length"); j++) {
AddonsItem addonsItem = new AddonsItem();
addonsItem.setAlias(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Addons["+ j +"].Alias"));
addonsItem.setDescription(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Addons["+ j +"].Description"));
addonsItem.setIcon(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Addons["+ j +"].Icon"));
addonsItem.setName(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Addons["+ j +"].Name"));
addons.add(addonsItem);
}
environmentsItem.setAddons(addons);
List<FeaturesItem> features = new ArrayList<FeaturesItem>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Features.Length"); j++) {
FeaturesItem featuresItem = new FeaturesItem();
featuresItem.setAlias(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Features["+ j +"].Alias"));
featuresItem.setDescription(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Features["+ j +"].Description"));
featuresItem.setIcon(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Features["+ j +"].Icon"));
featuresItem.setName(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Features["+ j +"].Name"));
features.add(featuresItem);
}
environmentsItem.setFeatures(features);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("ListEnvironmentsResponse.Data.Environments["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
environmentsItem.setTags(tags);
environments.add(environmentsItem);
}
data.setEnvironments(environments);
listEnvironmentsResponse.setData(data);
return listEnvironmentsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEscalationPoliciesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEscalationPoliciesResponse;
import com.aliyuncs.arms.model.v20190808.ListEscalationPoliciesResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.ListEscalationPoliciesResponse.PageBean.EscalationPoliciesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEscalationPoliciesResponseUnmarshaller {
public static ListEscalationPoliciesResponse unmarshall(ListEscalationPoliciesResponse listEscalationPoliciesResponse, UnmarshallerContext _ctx) {
listEscalationPoliciesResponse.setRequestId(_ctx.stringValue("ListEscalationPoliciesResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setTotal(_ctx.longValue("ListEscalationPoliciesResponse.PageBean.Total"));
pageBean.setPage(_ctx.longValue("ListEscalationPoliciesResponse.PageBean.Page"));
pageBean.setSize(_ctx.longValue("ListEscalationPoliciesResponse.PageBean.Size"));
List<EscalationPoliciesItem> escalationPolicies = new ArrayList<EscalationPoliciesItem>();
for (int i = 0; i < _ctx.lengthValue("ListEscalationPoliciesResponse.PageBean.EscalationPolicies.Length"); i++) {
EscalationPoliciesItem escalationPoliciesItem = new EscalationPoliciesItem();
escalationPoliciesItem.setId(_ctx.longValue("ListEscalationPoliciesResponse.PageBean.EscalationPolicies["+ i +"].Id"));
escalationPoliciesItem.setName(_ctx.stringValue("ListEscalationPoliciesResponse.PageBean.EscalationPolicies["+ i +"].Name"));
escalationPolicies.add(escalationPoliciesItem);
}
pageBean.setEscalationPolicies(escalationPolicies);
listEscalationPoliciesResponse.setPageBean(pageBean);
return listEscalationPoliciesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListEventBridgeIntegrationsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListEventBridgeIntegrationsResponse;
import com.aliyuncs.arms.model.v20190808.ListEventBridgeIntegrationsResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.ListEventBridgeIntegrationsResponse.PageBean.Integrations;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListEventBridgeIntegrationsResponseUnmarshaller {
public static ListEventBridgeIntegrationsResponse unmarshall(ListEventBridgeIntegrationsResponse listEventBridgeIntegrationsResponse, UnmarshallerContext _ctx) {
listEventBridgeIntegrationsResponse.setRequestId(_ctx.stringValue("ListEventBridgeIntegrationsResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setTotal(_ctx.longValue("ListEventBridgeIntegrationsResponse.PageBean.Total"));
pageBean.setPage(_ctx.longValue("ListEventBridgeIntegrationsResponse.PageBean.Page"));
pageBean.setSize(_ctx.longValue("ListEventBridgeIntegrationsResponse.PageBean.Size"));
List<Integrations> eventBridgeIntegrations = new ArrayList<Integrations>();
for (int i = 0; i < _ctx.lengthValue("ListEventBridgeIntegrationsResponse.PageBean.EventBridgeIntegrations.Length"); i++) {
Integrations integrations = new Integrations();
integrations.setId(_ctx.longValue("ListEventBridgeIntegrationsResponse.PageBean.EventBridgeIntegrations["+ i +"].Id"));
integrations.setName(_ctx.stringValue("ListEventBridgeIntegrationsResponse.PageBean.EventBridgeIntegrations["+ i +"].Name"));
integrations.setDescription(_ctx.stringValue("ListEventBridgeIntegrationsResponse.PageBean.EventBridgeIntegrations["+ i +"].Description"));
eventBridgeIntegrations.add(integrations);
}
pageBean.setEventBridgeIntegrations(eventBridgeIntegrations);
listEventBridgeIntegrationsResponse.setPageBean(pageBean);
return listEventBridgeIntegrationsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListGrafanaWorkspaceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListGrafanaWorkspaceResponse;
import com.aliyuncs.arms.model.v20190808.ListGrafanaWorkspaceResponse.GrafanaWorkspace;
import com.aliyuncs.arms.model.v20190808.ListGrafanaWorkspaceResponse.GrafanaWorkspace.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListGrafanaWorkspaceResponseUnmarshaller {
public static ListGrafanaWorkspaceResponse unmarshall(ListGrafanaWorkspaceResponse listGrafanaWorkspaceResponse, UnmarshallerContext _ctx) {
listGrafanaWorkspaceResponse.setRequestId(_ctx.stringValue("ListGrafanaWorkspaceResponse.RequestId"));
listGrafanaWorkspaceResponse.setMessage(_ctx.stringValue("ListGrafanaWorkspaceResponse.Message"));
listGrafanaWorkspaceResponse.setCode(_ctx.integerValue("ListGrafanaWorkspaceResponse.Code"));
listGrafanaWorkspaceResponse.setSuccess(_ctx.booleanValue("ListGrafanaWorkspaceResponse.Success"));
listGrafanaWorkspaceResponse.setTraceId(_ctx.stringValue("ListGrafanaWorkspaceResponse.TraceId"));
List<GrafanaWorkspace> data = new ArrayList<GrafanaWorkspace>();
for (int i = 0; i < _ctx.lengthValue("ListGrafanaWorkspaceResponse.Data.Length"); i++) {
GrafanaWorkspace grafanaWorkspace = new GrafanaWorkspace();
grafanaWorkspace.setStatus(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].status"));
grafanaWorkspace.setDescription(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].description"));
grafanaWorkspace.setGrafanaWorkspaceEdition(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].grafanaWorkspaceEdition"));
grafanaWorkspace.setEndTime(_ctx.floatValue("ListGrafanaWorkspaceResponse.Data["+ i +"].endTime"));
grafanaWorkspace.setGrafanaWorkspaceId(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].grafanaWorkspaceId"));
grafanaWorkspace.setGrafanaWorkspaceIp(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].grafanaWorkspaceIp"));
grafanaWorkspace.setSnatIp(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].snatIp"));
grafanaWorkspace.setGrafanaWorkspaceDomain(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].grafanaWorkspaceDomain"));
grafanaWorkspace.setGrafanaWorkspaceDomainStatus(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].grafanaWorkspaceDomainStatus"));
grafanaWorkspace.setCommercial(_ctx.booleanValue("ListGrafanaWorkspaceResponse.Data["+ i +"].commercial"));
grafanaWorkspace.setGrafanaWorkspaceName(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].grafanaWorkspaceName"));
grafanaWorkspace.setGrafanaVersion(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].grafanaVersion"));
grafanaWorkspace.setGmtCreate(_ctx.floatValue("ListGrafanaWorkspaceResponse.Data["+ i +"].gmtCreate"));
grafanaWorkspace.setUserId(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].userId"));
grafanaWorkspace.setMaxAccount(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].maxAccount"));
grafanaWorkspace.setRegionId(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].regionId"));
grafanaWorkspace.setBizProtocol(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].protocol"));
grafanaWorkspace.setShareSynced(_ctx.booleanValue("ListGrafanaWorkspaceResponse.Data["+ i +"].shareSynced"));
grafanaWorkspace.setNtmId(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].ntmId"));
grafanaWorkspace.setPersonalDomain(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].personalDomain"));
grafanaWorkspace.setPersonalDomainPrefix(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].personalDomainPrefix"));
grafanaWorkspace.setResourceGroupId(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].resourceGroupId"));
grafanaWorkspace.setDeployType(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].deployType"));
grafanaWorkspace.setPrivateIp(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].privateIp"));
grafanaWorkspace.setPrivateDomain(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].privateDomain"));
List<String> upgradeVersion = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListGrafanaWorkspaceResponse.Data["+ i +"].upgradeVersion.Length"); j++) {
upgradeVersion.add(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].upgradeVersion["+ j +"]"));
}
grafanaWorkspace.setUpgradeVersion(upgradeVersion);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListGrafanaWorkspaceResponse.Data["+ i +"].tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].tags["+ j +"].key"));
tagsItem.setValue(_ctx.stringValue("ListGrafanaWorkspaceResponse.Data["+ i +"].tags["+ j +"].value"));
tags.add(tagsItem);
}
grafanaWorkspace.setTags(tags);
data.add(grafanaWorkspace);
}
listGrafanaWorkspaceResponse.setData(data);
return listGrafanaWorkspaceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListInsightsEventsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListInsightsEventsResponse;
import com.aliyuncs.arms.model.v20190808.ListInsightsEventsResponse.ProblemInfos;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListInsightsEventsResponseUnmarshaller {
public static ListInsightsEventsResponse unmarshall(ListInsightsEventsResponse listInsightsEventsResponse, UnmarshallerContext _ctx) {
listInsightsEventsResponse.setRequestId(_ctx.stringValue("ListInsightsEventsResponse.RequestId"));
List<ProblemInfos> insightsEvents = new ArrayList<ProblemInfos>();
for (int i = 0; i < _ctx.lengthValue("ListInsightsEventsResponse.InsightsEvents.Length"); i++) {
ProblemInfos problemInfos = new ProblemInfos();
problemInfos.setTitle(_ctx.stringValue("ListInsightsEventsResponse.InsightsEvents["+ i +"].Title"));
problemInfos.setDesc(_ctx.stringValue("ListInsightsEventsResponse.InsightsEvents["+ i +"].Desc"));
problemInfos.setType(_ctx.stringValue("ListInsightsEventsResponse.InsightsEvents["+ i +"].Type"));
problemInfos.setPid(_ctx.stringValue("ListInsightsEventsResponse.InsightsEvents["+ i +"].Pid"));
problemInfos.setLevel(_ctx.stringValue("ListInsightsEventsResponse.InsightsEvents["+ i +"].Level"));
problemInfos.setDate(_ctx.longValue("ListInsightsEventsResponse.InsightsEvents["+ i +"].Date"));
problemInfos.setProblemId(_ctx.stringValue("ListInsightsEventsResponse.InsightsEvents["+ i +"].ProblemId"));
insightsEvents.add(problemInfos);
}
listInsightsEventsResponse.setInsightsEvents(insightsEvents);
return listInsightsEventsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListIntegrationResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListIntegrationResponse;
import com.aliyuncs.arms.model.v20190808.ListIntegrationResponse.PageInfo;
import com.aliyuncs.arms.model.v20190808.ListIntegrationResponse.PageInfo.IntegrationsItem;
import com.aliyuncs.arms.model.v20190808.ListIntegrationResponse.PageInfo.IntegrationsItem.IntegrationDetail;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListIntegrationResponseUnmarshaller {
public static ListIntegrationResponse unmarshall(ListIntegrationResponse listIntegrationResponse, UnmarshallerContext _ctx) {
listIntegrationResponse.setRequestId(_ctx.stringValue("ListIntegrationResponse.RequestId"));
PageInfo pageInfo = new PageInfo();
pageInfo.setTotal(_ctx.longValue("ListIntegrationResponse.PageInfo.Total"));
pageInfo.setSize(_ctx.longValue("ListIntegrationResponse.PageInfo.Size"));
pageInfo.setPage(_ctx.longValue("ListIntegrationResponse.PageInfo.Page"));
List<IntegrationsItem> integrations = new ArrayList<IntegrationsItem>();
for (int i = 0; i < _ctx.lengthValue("ListIntegrationResponse.PageInfo.Integrations.Length"); i++) {
IntegrationsItem integrationsItem = new IntegrationsItem();
integrationsItem.setIntegrationId(_ctx.longValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationId"));
integrationsItem.setIntegrationName(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationName"));
integrationsItem.setIntegrationProductType(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationProductType"));
integrationsItem.setApiEndpoint(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].ApiEndpoint"));
integrationsItem.setShortToken(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].ShortToken"));
integrationsItem.setState(_ctx.booleanValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].State"));
integrationsItem.setLiveness(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].Liveness"));
integrationsItem.setCreateTime(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].CreateTime"));
IntegrationDetail integrationDetail = new IntegrationDetail();
integrationDetail.setDescription(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.Description"));
integrationDetail.setDuplicateKey(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.DuplicateKey"));
integrationDetail.setAutoRecover(_ctx.booleanValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.AutoRecover"));
integrationDetail.setRecoverTime(_ctx.longValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.RecoverTime"));
integrationDetail.setInitiativeRecoverField(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.InitiativeRecoverField"));
integrationDetail.setInitiativeRecoverValue(_ctx.stringValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.InitiativeRecoverValue"));
List<Long> stat = new ArrayList<Long>();
for (int j = 0; j < _ctx.lengthValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.Stat.Length"); j++) {
stat.add(_ctx.longValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.Stat["+ j +"]"));
}
integrationDetail.setStat(stat);
List<Map<Object, Object>> fieldRedefineRules = _ctx.listMapValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.FieldRedefineRules");
integrationDetail.setFieldRedefineRules(fieldRedefineRules);
List<Map<Object, Object>> extendedFieldRedefineRules = _ctx.listMapValue("ListIntegrationResponse.PageInfo.Integrations["+ i +"].IntegrationDetail.ExtendedFieldRedefineRules");
integrationDetail.setExtendedFieldRedefineRules(extendedFieldRedefineRules);
integrationsItem.setIntegrationDetail(integrationDetail);
integrations.add(integrationsItem);
}
pageInfo.setIntegrations(integrations);
listIntegrationResponse.setPageInfo(pageInfo);
return listIntegrationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListNotificationPoliciesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean.Policies;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean.Policies.GroupRule;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean.Policies.MatchingRulesItem;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean.Policies.MatchingRulesItem.MatchingConditionsItem;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean.Policies.NotifyRule;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean.Policies.NotifyRule.NotifyObjectsItem;
import com.aliyuncs.arms.model.v20190808.ListNotificationPoliciesResponse.PageBean.Policies.NotifyTemplate;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListNotificationPoliciesResponseUnmarshaller {
public static ListNotificationPoliciesResponse unmarshall(ListNotificationPoliciesResponse listNotificationPoliciesResponse, UnmarshallerContext _ctx) {
listNotificationPoliciesResponse.setRequestId(_ctx.stringValue("ListNotificationPoliciesResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setTotal(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.Total"));
pageBean.setPage(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.Page"));
pageBean.setSize(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.Size"));
List<Policies> notificationPolicies = new ArrayList<Policies>();
for (int i = 0; i < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies.Length"); i++) {
Policies policies = new Policies();
policies.setId(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].Id"));
policies.setName(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].Name"));
policies.setSendRecoverMessage(_ctx.booleanValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].SendRecoverMessage"));
policies.setRepeat(_ctx.booleanValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].Repeat"));
policies.setRepeatInterval(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].RepeatInterval"));
policies.setEscalationPolicyId(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].EscalationPolicyId"));
policies.setIntegrationId(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].IntegrationId"));
policies.setDirectedMode(_ctx.booleanValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].DirectedMode"));
policies.setState(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].State"));
GroupRule groupRule = new GroupRule();
groupRule.setGroupWait(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].GroupRule.GroupWait"));
groupRule.setGroupInterval(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].GroupRule.GroupInterval"));
List<String> groupingFields = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].GroupRule.GroupingFields.Length"); j++) {
groupingFields.add(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].GroupRule.GroupingFields["+ j +"]"));
}
groupRule.setGroupingFields(groupingFields);
policies.setGroupRule(groupRule);
NotifyRule notifyRule = new NotifyRule();
notifyRule.setNotifyStartTime(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyStartTime"));
notifyRule.setNotifyEndTime(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyEndTime"));
List<String> notifyChannels = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyChannels.Length"); j++) {
notifyChannels.add(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyChannels["+ j +"]"));
}
notifyRule.setNotifyChannels(notifyChannels);
List<NotifyObjectsItem> notifyObjects = new ArrayList<NotifyObjectsItem>();
for (int j = 0; j < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects.Length"); j++) {
NotifyObjectsItem notifyObjectsItem = new NotifyObjectsItem();
notifyObjectsItem.setNotifyObjectType(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyObjectType"));
notifyObjectsItem.setNotifyObjectId(_ctx.longValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyObjectId"));
notifyObjectsItem.setNotifyObjectName(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyObjectName"));
List<String> notifyChannels1 = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyChannels.Length"); k++) {
notifyChannels1.add(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyRule.NotifyObjects["+ j +"].NotifyChannels["+ k +"]"));
}
notifyObjectsItem.setNotifyChannels1(notifyChannels1);
notifyObjects.add(notifyObjectsItem);
}
notifyRule.setNotifyObjects(notifyObjects);
policies.setNotifyRule(notifyRule);
NotifyTemplate notifyTemplate = new NotifyTemplate();
notifyTemplate.setEmailTitle(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.EmailTitle"));
notifyTemplate.setEmailContent(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.EmailContent"));
notifyTemplate.setEmailRecoverTitle(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.EmailRecoverTitle"));
notifyTemplate.setEmailRecoverContent(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.EmailRecoverContent"));
notifyTemplate.setSmsContent(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.SmsContent"));
notifyTemplate.setSmsRecoverContent(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.SmsRecoverContent"));
notifyTemplate.setTtsContent(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.TtsContent"));
notifyTemplate.setTtsRecoverContent(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.TtsRecoverContent"));
notifyTemplate.setRobotContent(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].NotifyTemplate.RobotContent"));
policies.setNotifyTemplate(notifyTemplate);
List<MatchingRulesItem> matchingRules = new ArrayList<MatchingRulesItem>();
for (int j = 0; j < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].MatchingRules.Length"); j++) {
MatchingRulesItem matchingRulesItem = new MatchingRulesItem();
List<MatchingConditionsItem> matchingConditions = new ArrayList<MatchingConditionsItem>();
for (int k = 0; k < _ctx.lengthValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions.Length"); k++) {
MatchingConditionsItem matchingConditionsItem = new MatchingConditionsItem();
matchingConditionsItem.setKey(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions["+ k +"].Key"));
matchingConditionsItem.setValue(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions["+ k +"].Value"));
matchingConditionsItem.setOperator(_ctx.stringValue("ListNotificationPoliciesResponse.PageBean.NotificationPolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions["+ k +"].Operator"));
matchingConditions.add(matchingConditionsItem);
}
matchingRulesItem.setMatchingConditions(matchingConditions);
matchingRules.add(matchingRulesItem);
}
policies.setMatchingRules(matchingRules);
notificationPolicies.add(policies);
}
pageBean.setNotificationPolicies(notificationPolicies);
listNotificationPoliciesResponse.setPageBean(pageBean);
return listNotificationPoliciesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListOnCallSchedulesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListOnCallSchedulesResponse;
import com.aliyuncs.arms.model.v20190808.ListOnCallSchedulesResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.ListOnCallSchedulesResponse.PageBean.OnCallSchedulesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListOnCallSchedulesResponseUnmarshaller {
public static ListOnCallSchedulesResponse unmarshall(ListOnCallSchedulesResponse listOnCallSchedulesResponse, UnmarshallerContext _ctx) {
listOnCallSchedulesResponse.setRequestId(_ctx.stringValue("ListOnCallSchedulesResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setTotal(_ctx.longValue("ListOnCallSchedulesResponse.PageBean.Total"));
pageBean.setPage(_ctx.longValue("ListOnCallSchedulesResponse.PageBean.Page"));
pageBean.setSize(_ctx.longValue("ListOnCallSchedulesResponse.PageBean.Size"));
List<OnCallSchedulesItem> onCallSchedules = new ArrayList<OnCallSchedulesItem>();
for (int i = 0; i < _ctx.lengthValue("ListOnCallSchedulesResponse.PageBean.OnCallSchedules.Length"); i++) {
OnCallSchedulesItem onCallSchedulesItem = new OnCallSchedulesItem();
onCallSchedulesItem.setId(_ctx.longValue("ListOnCallSchedulesResponse.PageBean.OnCallSchedules["+ i +"].Id"));
onCallSchedulesItem.setName(_ctx.stringValue("ListOnCallSchedulesResponse.PageBean.OnCallSchedules["+ i +"].Name"));
onCallSchedulesItem.setDescription(_ctx.stringValue("ListOnCallSchedulesResponse.PageBean.OnCallSchedules["+ i +"].Description"));
onCallSchedules.add(onCallSchedulesItem);
}
pageBean.setOnCallSchedules(onCallSchedules);
listOnCallSchedulesResponse.setPageBean(pageBean);
return listOnCallSchedulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListPrometheusAlertRulesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule.Annotation;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule.Label;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertRulesResponse.PrometheusAlertRule.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPrometheusAlertRulesResponseUnmarshaller {
public static ListPrometheusAlertRulesResponse unmarshall(ListPrometheusAlertRulesResponse listPrometheusAlertRulesResponse, UnmarshallerContext _ctx) {
listPrometheusAlertRulesResponse.setRequestId(_ctx.stringValue("ListPrometheusAlertRulesResponse.RequestId"));
listPrometheusAlertRulesResponse.setCode(_ctx.longValue("ListPrometheusAlertRulesResponse.Code"));
listPrometheusAlertRulesResponse.setMessage(_ctx.stringValue("ListPrometheusAlertRulesResponse.Message"));
listPrometheusAlertRulesResponse.setSuccess(_ctx.booleanValue("ListPrometheusAlertRulesResponse.Success"));
List<PrometheusAlertRule> prometheusAlertRules = new ArrayList<PrometheusAlertRule>();
for (int i = 0; i < _ctx.lengthValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules.Length"); i++) {
PrometheusAlertRule prometheusAlertRule = new PrometheusAlertRule();
prometheusAlertRule.setStatus(_ctx.integerValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Status"));
prometheusAlertRule.setType(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Type"));
prometheusAlertRule.setNotifyType(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].NotifyType"));
prometheusAlertRule.setExpression(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Expression"));
prometheusAlertRule.setMessage(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Message"));
prometheusAlertRule.setDuration(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Duration"));
prometheusAlertRule.setDispatchRuleId(_ctx.longValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].DispatchRuleId"));
prometheusAlertRule.setAlertName(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].AlertName"));
prometheusAlertRule.setAlertId(_ctx.longValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].AlertId"));
prometheusAlertRule.setClusterId(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].ClusterId"));
List<Label> labels = new ArrayList<Label>();
for (int j = 0; j < _ctx.lengthValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Labels.Length"); j++) {
Label label = new Label();
label.setName(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Labels["+ j +"].Name"));
label.setValue(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Labels["+ j +"].Value"));
labels.add(label);
}
prometheusAlertRule.setLabels(labels);
List<Annotation> annotations = new ArrayList<Annotation>();
for (int j = 0; j < _ctx.lengthValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Annotations.Length"); j++) {
Annotation annotation = new Annotation();
annotation.setName(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Annotations["+ j +"].Name"));
annotation.setValue(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Annotations["+ j +"].Value"));
annotations.add(annotation);
}
prometheusAlertRule.setAnnotations(annotations);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("ListPrometheusAlertRulesResponse.PrometheusAlertRules["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
prometheusAlertRule.setTags(tags);
prometheusAlertRules.add(prometheusAlertRule);
}
listPrometheusAlertRulesResponse.setPrometheusAlertRules(prometheusAlertRules);
return listPrometheusAlertRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListPrometheusAlertTemplatesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertTemplatesResponse;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplate;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplate.Annotation;
import com.aliyuncs.arms.model.v20190808.ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplate.Label;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPrometheusAlertTemplatesResponseUnmarshaller {
public static ListPrometheusAlertTemplatesResponse unmarshall(ListPrometheusAlertTemplatesResponse listPrometheusAlertTemplatesResponse, UnmarshallerContext _ctx) {
listPrometheusAlertTemplatesResponse.setRequestId(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.RequestId"));
List<PrometheusAlertTemplate> prometheusAlertTemplates = new ArrayList<PrometheusAlertTemplate>();
for (int i = 0; i < _ctx.lengthValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates.Length"); i++) {
PrometheusAlertTemplate prometheusAlertTemplate = new PrometheusAlertTemplate();
prometheusAlertTemplate.setType(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Type"));
prometheusAlertTemplate.setDescription(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Description"));
prometheusAlertTemplate.setExpression(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Expression"));
prometheusAlertTemplate.setVersion(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Version"));
prometheusAlertTemplate.setDuration(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Duration"));
prometheusAlertTemplate.setAlertName(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].AlertName"));
List<Label> labels = new ArrayList<Label>();
for (int j = 0; j < _ctx.lengthValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Labels.Length"); j++) {
Label label = new Label();
label.setName(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Labels["+ j +"].Name"));
label.setValue(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Labels["+ j +"].Value"));
labels.add(label);
}
prometheusAlertTemplate.setLabels(labels);
List<Annotation> annotations = new ArrayList<Annotation>();
for (int j = 0; j < _ctx.lengthValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Annotations.Length"); j++) {
Annotation annotation = new Annotation();
annotation.setName(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Annotations["+ j +"].Name"));
annotation.setValue(_ctx.stringValue("ListPrometheusAlertTemplatesResponse.PrometheusAlertTemplates["+ i +"].Annotations["+ j +"].Value"));
annotations.add(annotation);
}
prometheusAlertTemplate.setAnnotations(annotations);
prometheusAlertTemplates.add(prometheusAlertTemplate);
}
listPrometheusAlertTemplatesResponse.setPrometheusAlertTemplates(prometheusAlertTemplates);
return listPrometheusAlertTemplatesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListPrometheusGlobalViewResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.ListPrometheusGlobalViewResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPrometheusGlobalViewResponseUnmarshaller {
public static ListPrometheusGlobalViewResponse unmarshall(ListPrometheusGlobalViewResponse listPrometheusGlobalViewResponse, UnmarshallerContext _ctx) {
listPrometheusGlobalViewResponse.setRequestId(_ctx.stringValue("ListPrometheusGlobalViewResponse.RequestId"));
listPrometheusGlobalViewResponse.setData(_ctx.stringValue("ListPrometheusGlobalViewResponse.Data"));
listPrometheusGlobalViewResponse.setCode(_ctx.integerValue("ListPrometheusGlobalViewResponse.Code"));
listPrometheusGlobalViewResponse.setMessage(_ctx.stringValue("ListPrometheusGlobalViewResponse.Message"));
return listPrometheusGlobalViewResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListPrometheusInstanceByTagAndResourceGroupIdResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListPrometheusInstanceByTagAndResourceGroupIdResponse;
import com.aliyuncs.arms.model.v20190808.ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstancesItem;
import com.aliyuncs.arms.model.v20190808.ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstancesItem.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPrometheusInstanceByTagAndResourceGroupIdResponseUnmarshaller {
public static ListPrometheusInstanceByTagAndResourceGroupIdResponse unmarshall(ListPrometheusInstanceByTagAndResourceGroupIdResponse listPrometheusInstanceByTagAndResourceGroupIdResponse, UnmarshallerContext _ctx) {
listPrometheusInstanceByTagAndResourceGroupIdResponse.setRequestId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.RequestId"));
listPrometheusInstanceByTagAndResourceGroupIdResponse.setCode(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Code"));
listPrometheusInstanceByTagAndResourceGroupIdResponse.setMessage(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Message"));
Data data = new Data();
List<PrometheusInstancesItem> prometheusInstances = new ArrayList<PrometheusInstancesItem>();
for (int i = 0; i < _ctx.lengthValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances.Length"); i++) {
PrometheusInstancesItem prometheusInstancesItem = new PrometheusInstancesItem();
prometheusInstancesItem.setClusterId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].ClusterId"));
prometheusInstancesItem.setRegionId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].RegionId"));
prometheusInstancesItem.setUserId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].UserId"));
prometheusInstancesItem.setClusterName(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].ClusterName"));
prometheusInstancesItem.setClusterType(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].ClusterType"));
prometheusInstancesItem.setVpcId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].VpcId"));
prometheusInstancesItem.setVSwitchId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].VSwitchId"));
prometheusInstancesItem.setSecurityGroupId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].SecurityGroupId"));
prometheusInstancesItem.setSubClustersJson(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].SubClustersJson"));
prometheusInstancesItem.setRemoteReadIntraUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].RemoteReadIntraUrl"));
prometheusInstancesItem.setRemoteReadInterUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].RemoteReadInterUrl"));
prometheusInstancesItem.setRemoteWriteIntraUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].RemoteWriteIntraUrl"));
prometheusInstancesItem.setRemoteWriteInterUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].RemoteWriteInterUrl"));
prometheusInstancesItem.setPushGatewayIntraUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].PushGatewayIntraUrl"));
prometheusInstancesItem.setPushGatewayInterUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].PushGatewayInterUrl"));
prometheusInstancesItem.setHttpApiIntraUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].HttpApiIntraUrl"));
prometheusInstancesItem.setHttpApiInterUrl(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].HttpApiInterUrl"));
prometheusInstancesItem.setAuthToken(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].AuthToken"));
prometheusInstancesItem.setPaymentType(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].PaymentType"));
prometheusInstancesItem.setGrafanaInstanceId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].GrafanaInstanceId"));
prometheusInstancesItem.setResourceGroupId(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].ResourceGroupId"));
prometheusInstancesItem.setResourceType(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].ResourceType"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setTagKey(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].Tags["+ j +"].TagKey"));
tagsItem.setTagValue(_ctx.stringValue("ListPrometheusInstanceByTagAndResourceGroupIdResponse.Data.PrometheusInstances["+ i +"].Tags["+ j +"].TagValue"));
tags.add(tagsItem);
}
prometheusInstancesItem.setTags(tags);
prometheusInstances.add(prometheusInstancesItem);
}
data.setPrometheusInstances(prometheusInstances);
listPrometheusInstanceByTagAndResourceGroupIdResponse.setData(data);
return listPrometheusInstanceByTagAndResourceGroupIdResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListPrometheusInstancesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.ListPrometheusInstancesResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPrometheusInstancesResponseUnmarshaller {
public static ListPrometheusInstancesResponse unmarshall(ListPrometheusInstancesResponse listPrometheusInstancesResponse, UnmarshallerContext _ctx) {
listPrometheusInstancesResponse.setRequestId(_ctx.stringValue("ListPrometheusInstancesResponse.RequestId"));
listPrometheusInstancesResponse.setData(_ctx.stringValue("ListPrometheusInstancesResponse.Data"));
listPrometheusInstancesResponse.setCode(_ctx.integerValue("ListPrometheusInstancesResponse.Code"));
listPrometheusInstancesResponse.setMessage(_ctx.stringValue("ListPrometheusInstancesResponse.Message"));
return listPrometheusInstancesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListPrometheusIntegrationResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListPrometheusIntegrationResponse;
import com.aliyuncs.arms.model.v20190808.ListPrometheusIntegrationResponse.Instance;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPrometheusIntegrationResponseUnmarshaller {
public static ListPrometheusIntegrationResponse unmarshall(ListPrometheusIntegrationResponse listPrometheusIntegrationResponse, UnmarshallerContext _ctx) {
listPrometheusIntegrationResponse.setRequestId(_ctx.stringValue("ListPrometheusIntegrationResponse.RequestId"));
listPrometheusIntegrationResponse.setMessage(_ctx.stringValue("ListPrometheusIntegrationResponse.Message"));
listPrometheusIntegrationResponse.setCode(_ctx.integerValue("ListPrometheusIntegrationResponse.Code"));
List<Instance> data = new ArrayList<Instance>();
for (int i = 0; i < _ctx.lengthValue("ListPrometheusIntegrationResponse.Data.Length"); i++) {
Instance instance = new Instance();
instance.setClusterId(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].ClusterId"));
instance.setShowDescribe(_ctx.booleanValue("ListPrometheusIntegrationResponse.Data["+ i +"].ShowDescribe"));
instance.setNeedUpgrade(_ctx.booleanValue("ListPrometheusIntegrationResponse.Data["+ i +"].NeedUpgrade"));
instance.setInstanceName(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].InstanceName"));
instance.setExporterType(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].ExporterType"));
instance.setIntegrationType(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].IntegrationType"));
instance.setInstanceId(_ctx.longValue("ListPrometheusIntegrationResponse.Data["+ i +"].InstanceId"));
instance.setVersion(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].Version"));
instance.setTarget(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].Target"));
instance.setCanDelete(_ctx.booleanValue("ListPrometheusIntegrationResponse.Data["+ i +"].CanDelete"));
instance.setCanEditor(_ctx.booleanValue("ListPrometheusIntegrationResponse.Data["+ i +"].CanEditor"));
instance.setStatus(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].Status"));
instance.setContainerName(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].ContainerName"));
instance.setNamespace(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].Namespace"));
instance.setPodName(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].PodName"));
instance.setDescribe(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].Describe"));
instance.setShowLog(_ctx.booleanValue("ListPrometheusIntegrationResponse.Data["+ i +"].ShowLog"));
instance.setParam(_ctx.stringValue("ListPrometheusIntegrationResponse.Data["+ i +"].Param"));
data.add(instance);
}
listPrometheusIntegrationResponse.setData(data);
return listPrometheusIntegrationResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListPrometheusMonitoringResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListPrometheusMonitoringResponse;
import com.aliyuncs.arms.model.v20190808.ListPrometheusMonitoringResponse.Monitoring;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListPrometheusMonitoringResponseUnmarshaller {
public static ListPrometheusMonitoringResponse unmarshall(ListPrometheusMonitoringResponse listPrometheusMonitoringResponse, UnmarshallerContext _ctx) {
listPrometheusMonitoringResponse.setRequestId(_ctx.stringValue("ListPrometheusMonitoringResponse.RequestId"));
listPrometheusMonitoringResponse.setCode(_ctx.integerValue("ListPrometheusMonitoringResponse.Code"));
listPrometheusMonitoringResponse.setMessage(_ctx.stringValue("ListPrometheusMonitoringResponse.Message"));
List<Monitoring> data = new ArrayList<Monitoring>();
for (int i = 0; i < _ctx.lengthValue("ListPrometheusMonitoringResponse.Data.Length"); i++) {
Monitoring monitoring = new Monitoring();
monitoring.setClusterId(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].ClusterId"));
monitoring.setMonitoringName(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].MonitoringName"));
monitoring.setType(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].Type"));
monitoring.setConfigYaml(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].ConfigYaml"));
monitoring.setStatus(_ctx.stringValue("ListPrometheusMonitoringResponse.Data["+ i +"].Status"));
data.add(monitoring);
}
listPrometheusMonitoringResponse.setData(data);
return listPrometheusMonitoringResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListRetcodeAppsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListRetcodeAppsResponse;
import com.aliyuncs.arms.model.v20190808.ListRetcodeAppsResponse.RetcodeApp;
import com.aliyuncs.arms.model.v20190808.ListRetcodeAppsResponse.RetcodeApp.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListRetcodeAppsResponseUnmarshaller {
public static ListRetcodeAppsResponse unmarshall(ListRetcodeAppsResponse listRetcodeAppsResponse, UnmarshallerContext _ctx) {
listRetcodeAppsResponse.setRequestId(_ctx.stringValue("ListRetcodeAppsResponse.RequestId"));
List<RetcodeApp> retcodeApps = new ArrayList<RetcodeApp>();
for (int i = 0; i < _ctx.lengthValue("ListRetcodeAppsResponse.RetcodeApps.Length"); i++) {
RetcodeApp retcodeApp = new RetcodeApp();
retcodeApp.setAppName(_ctx.stringValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].AppName"));
retcodeApp.setRetcodeAppType(_ctx.stringValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].RetcodeAppType"));
retcodeApp.setAppId(_ctx.longValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].AppId"));
retcodeApp.setPid(_ctx.stringValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].Pid"));
retcodeApp.setNickName(_ctx.stringValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].NickName"));
retcodeApp.setResourceGroupId(_ctx.stringValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].ResourceGroupId"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("ListRetcodeAppsResponse.RetcodeApps["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
retcodeApp.setTags(tags);
retcodeApps.add(retcodeApp);
}
listRetcodeAppsResponse.setRetcodeApps(retcodeApps);
return listRetcodeAppsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListScenarioResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListScenarioResponse;
import com.aliyuncs.arms.model.v20190808.ListScenarioResponse.ArmsScenariosItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListScenarioResponseUnmarshaller {
public static ListScenarioResponse unmarshall(ListScenarioResponse listScenarioResponse, UnmarshallerContext _ctx) {
listScenarioResponse.setRequestId(_ctx.stringValue("ListScenarioResponse.RequestId"));
List<ArmsScenariosItem> armsScenarios = new ArrayList<ArmsScenariosItem>();
for (int i = 0; i < _ctx.lengthValue("ListScenarioResponse.ArmsScenarios.Length"); i++) {
ArmsScenariosItem armsScenariosItem = new ArmsScenariosItem();
armsScenariosItem.setUpdateTime(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].UpdateTime"));
armsScenariosItem.setAppId(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].AppId"));
armsScenariosItem.setSign(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].Sign"));
armsScenariosItem.setCreateTime(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].CreateTime"));
armsScenariosItem.setUserId(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].UserId"));
armsScenariosItem.setExtensions(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].Extensions"));
armsScenariosItem.setName(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].Name"));
armsScenariosItem.setId(_ctx.longValue("ListScenarioResponse.ArmsScenarios["+ i +"].Id"));
armsScenariosItem.setRegionId(_ctx.stringValue("ListScenarioResponse.ArmsScenarios["+ i +"].RegionId"));
armsScenarios.add(armsScenariosItem);
}
listScenarioResponse.setArmsScenarios(armsScenarios);
return listScenarioResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListSilencePoliciesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListSilencePoliciesResponse;
import com.aliyuncs.arms.model.v20190808.ListSilencePoliciesResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.ListSilencePoliciesResponse.PageBean.Policies;
import com.aliyuncs.arms.model.v20190808.ListSilencePoliciesResponse.PageBean.Policies.MatchingRulesItem;
import com.aliyuncs.arms.model.v20190808.ListSilencePoliciesResponse.PageBean.Policies.MatchingRulesItem.MatchingConditionsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListSilencePoliciesResponseUnmarshaller {
public static ListSilencePoliciesResponse unmarshall(ListSilencePoliciesResponse listSilencePoliciesResponse, UnmarshallerContext _ctx) {
listSilencePoliciesResponse.setRequestId(_ctx.stringValue("ListSilencePoliciesResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setTotal(_ctx.longValue("ListSilencePoliciesResponse.PageBean.Total"));
pageBean.setPage(_ctx.longValue("ListSilencePoliciesResponse.PageBean.Page"));
pageBean.setSize(_ctx.longValue("ListSilencePoliciesResponse.PageBean.Size"));
List<Policies> silencePolicies = new ArrayList<Policies>();
for (int i = 0; i < _ctx.lengthValue("ListSilencePoliciesResponse.PageBean.SilencePolicies.Length"); i++) {
Policies policies = new Policies();
policies.setId(_ctx.longValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].Id"));
policies.setName(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].Name"));
policies.setState(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].State"));
policies.setTimeSlots(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].TimeSlots"));
policies.setTimePeriod(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].TimePeriod"));
policies.setEffectiveTimeType(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].EffectiveTimeType"));
List<MatchingRulesItem> matchingRules = new ArrayList<MatchingRulesItem>();
for (int j = 0; j < _ctx.lengthValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].MatchingRules.Length"); j++) {
MatchingRulesItem matchingRulesItem = new MatchingRulesItem();
List<MatchingConditionsItem> matchingConditions = new ArrayList<MatchingConditionsItem>();
for (int k = 0; k < _ctx.lengthValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions.Length"); k++) {
MatchingConditionsItem matchingConditionsItem = new MatchingConditionsItem();
matchingConditionsItem.setKey(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions["+ k +"].Key"));
matchingConditionsItem.setValue(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions["+ k +"].Value"));
matchingConditionsItem.setOperator(_ctx.stringValue("ListSilencePoliciesResponse.PageBean.SilencePolicies["+ i +"].MatchingRules["+ j +"].MatchingConditions["+ k +"].Operator"));
matchingConditions.add(matchingConditionsItem);
}
matchingRulesItem.setMatchingConditions(matchingConditions);
matchingRules.add(matchingRulesItem);
}
policies.setMatchingRules(matchingRules);
silencePolicies.add(policies);
}
pageBean.setSilencePolicies(silencePolicies);
listSilencePoliciesResponse.setPageBean(pageBean);
return listSilencePoliciesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListSyntheticDetailResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListSyntheticDetailResponse;
import com.aliyuncs.arms.model.v20190808.ListSyntheticDetailResponse.Data;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListSyntheticDetailResponseUnmarshaller {
public static ListSyntheticDetailResponse unmarshall(ListSyntheticDetailResponse listSyntheticDetailResponse, UnmarshallerContext _ctx) {
listSyntheticDetailResponse.setRequestId(_ctx.stringValue("ListSyntheticDetailResponse.RequestId"));
listSyntheticDetailResponse.setCode(_ctx.longValue("ListSyntheticDetailResponse.Code"));
listSyntheticDetailResponse.setMessage(_ctx.stringValue("ListSyntheticDetailResponse.Message"));
Data data = new Data();
data.setTotal(_ctx.integerValue("ListSyntheticDetailResponse.Data.Total"));
data.setPage(_ctx.integerValue("ListSyntheticDetailResponse.Data.Page"));
data.setPageSize(_ctx.integerValue("ListSyntheticDetailResponse.Data.PageSize"));
data.setTaskCreateTime(_ctx.longValue("ListSyntheticDetailResponse.Data.TaskCreateTime"));
List<Map<Object, Object>> items = _ctx.listMapValue("ListSyntheticDetailResponse.Data.Items");
data.setItems(items);
listSyntheticDetailResponse.setData(data);
return listSyntheticDetailResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListTimingSyntheticTasksResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data.Item;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data.Item.CommonSetting;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data.Item.CommonSetting.CustomHost;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data.Item.CommonSetting.CustomHost.Host;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data.Item.CommonSetting.CustomPrometheusSetting;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data.Item.CommonSetting.CustomVPCSetting;
import com.aliyuncs.arms.model.v20190808.ListTimingSyntheticTasksResponse.Data.Item.Tag;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListTimingSyntheticTasksResponseUnmarshaller {
public static ListTimingSyntheticTasksResponse unmarshall(ListTimingSyntheticTasksResponse listTimingSyntheticTasksResponse, UnmarshallerContext _ctx) {
listTimingSyntheticTasksResponse.setRequestId(_ctx.stringValue("ListTimingSyntheticTasksResponse.RequestId"));
listTimingSyntheticTasksResponse.setCode(_ctx.longValue("ListTimingSyntheticTasksResponse.Code"));
listTimingSyntheticTasksResponse.setMessage(_ctx.stringValue("ListTimingSyntheticTasksResponse.Message"));
Data data = new Data();
data.setTotal(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Total"));
data.setPage(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Page"));
data.setPageSize(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.PageSize"));
List<Item> items = new ArrayList<Item>();
for (int i = 0; i < _ctx.lengthValue("ListTimingSyntheticTasksResponse.Data.Items.Length"); i++) {
Item item = new Item();
item.setTaskId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].TaskId"));
item.setRegionId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].RegionId"));
item.setName(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].Name"));
item.setTaskType(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].TaskType"));
item.setUrl(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].Url"));
item.setMonitorCategory(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].MonitorCategory"));
item.setFrequency(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].Frequency"));
item.setMonitorNum(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].MonitorNum"));
item.setStatus(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].Status"));
item.setGmtCreate(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].GmtCreate"));
item.setGmtModified(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].GmtModified"));
item.setResourceGroupId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].ResourceGroupId"));
CommonSetting commonSetting = new CommonSetting();
commonSetting.setIpType(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.IpType"));
commonSetting.setMonitorSamples(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.MonitorSamples"));
commonSetting.setIsOpenTrace(_ctx.booleanValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.IsOpenTrace"));
commonSetting.setTraceClientType(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.TraceClientType"));
commonSetting.setXtraceRegion(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.XtraceRegion"));
CustomHost customHost = new CustomHost();
customHost.setSelectType(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomHost.SelectType"));
List<Host> hosts = new ArrayList<Host>();
for (int j = 0; j < _ctx.lengthValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomHost.Hosts.Length"); j++) {
Host host = new Host();
host.setDomain(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomHost.Hosts["+ j +"].Domain"));
host.setIpType(_ctx.integerValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomHost.Hosts["+ j +"].IpType"));
List<String> ips = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomHost.Hosts["+ j +"].Ips.Length"); k++) {
ips.add(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomHost.Hosts["+ j +"].Ips["+ k +"]"));
}
host.setIps(ips);
hosts.add(host);
}
customHost.setHosts(hosts);
commonSetting.setCustomHost(customHost);
CustomVPCSetting customVPCSetting = new CustomVPCSetting();
customVPCSetting.setRegionId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomVPCSetting.RegionId"));
customVPCSetting.setVpcId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomVPCSetting.VpcId"));
customVPCSetting.setVSwitchId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomVPCSetting.VSwitchId"));
customVPCSetting.setSecureGroupId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomVPCSetting.SecureGroupId"));
commonSetting.setCustomVPCSetting(customVPCSetting);
CustomPrometheusSetting customPrometheusSetting = new CustomPrometheusSetting();
customPrometheusSetting.setPrometheusLabels(_ctx.mapValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomPrometheusSetting.PrometheusLabels"));
customPrometheusSetting.setPrometheusClusterId(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomPrometheusSetting.PrometheusClusterId"));
customPrometheusSetting.setPrometheusClusterRegion(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].CommonSetting.CustomPrometheusSetting.PrometheusClusterRegion"));
commonSetting.setCustomPrometheusSetting(customPrometheusSetting);
item.setCommonSetting(commonSetting);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("ListTimingSyntheticTasksResponse.Data.Items["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
item.setTags(tags);
items.add(item);
}
data.setItems(items);
listTimingSyntheticTasksResponse.setData(data);
return listTimingSyntheticTasksResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/ListTraceAppsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.ListTraceAppsResponse;
import com.aliyuncs.arms.model.v20190808.ListTraceAppsResponse.TraceApp;
import com.aliyuncs.arms.model.v20190808.ListTraceAppsResponse.TraceApp.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class ListTraceAppsResponseUnmarshaller {
public static ListTraceAppsResponse unmarshall(ListTraceAppsResponse listTraceAppsResponse, UnmarshallerContext _ctx) {
listTraceAppsResponse.setRequestId(_ctx.stringValue("ListTraceAppsResponse.RequestId"));
listTraceAppsResponse.setCode(_ctx.integerValue("ListTraceAppsResponse.Code"));
listTraceAppsResponse.setMessage(_ctx.stringValue("ListTraceAppsResponse.Message"));
listTraceAppsResponse.setSuccess(_ctx.booleanValue("ListTraceAppsResponse.Success"));
List<TraceApp> traceApps = new ArrayList<TraceApp>();
for (int i = 0; i < _ctx.lengthValue("ListTraceAppsResponse.TraceApps.Length"); i++) {
TraceApp traceApp = new TraceApp();
traceApp.setType(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Type"));
traceApp.setAppName(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].AppName"));
traceApp.setUpdateTime(_ctx.longValue("ListTraceAppsResponse.TraceApps["+ i +"].UpdateTime"));
traceApp.setShow(_ctx.booleanValue("ListTraceAppsResponse.TraceApps["+ i +"].Show"));
traceApp.setCreateTime(_ctx.longValue("ListTraceAppsResponse.TraceApps["+ i +"].CreateTime"));
traceApp.setPid(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Pid"));
traceApp.setAppId(_ctx.longValue("ListTraceAppsResponse.TraceApps["+ i +"].AppId"));
traceApp.setUserId(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].UserId"));
traceApp.setRegionId(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].RegionId"));
traceApp.setResourceGroupId(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].ResourceGroupId"));
traceApp.setSource(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Source"));
traceApp.setWorkloadName(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].WorkloadName"));
traceApp.setWorkloadKind(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].WorkloadKind"));
traceApp.setNamespace(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Namespace"));
traceApp.setClusterId(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].ClusterId"));
traceApp.setLanguage(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Language"));
List<String> labels = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("ListTraceAppsResponse.TraceApps["+ i +"].Labels.Length"); j++) {
labels.add(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Labels["+ j +"]"));
}
traceApp.setLabels(labels);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("ListTraceAppsResponse.TraceApps["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("ListTraceAppsResponse.TraceApps["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
traceApp.setTags(tags);
traceApps.add(traceApp);
}
listTraceAppsResponse.setTraceApps(traceApps);
return listTraceAppsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/OpenArmsDefaultSLRResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.OpenArmsDefaultSLRResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class OpenArmsDefaultSLRResponseUnmarshaller {
public static OpenArmsDefaultSLRResponse unmarshall(OpenArmsDefaultSLRResponse openArmsDefaultSLRResponse, UnmarshallerContext _ctx) {
openArmsDefaultSLRResponse.setRequestId(_ctx.stringValue("OpenArmsDefaultSLRResponse.RequestId"));
openArmsDefaultSLRResponse.setData(_ctx.stringValue("OpenArmsDefaultSLRResponse.Data"));
return openArmsDefaultSLRResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/OpenArmsServiceSecondVersionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.OpenArmsServiceSecondVersionResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class OpenArmsServiceSecondVersionResponseUnmarshaller {
public static OpenArmsServiceSecondVersionResponse unmarshall(OpenArmsServiceSecondVersionResponse openArmsServiceSecondVersionResponse, UnmarshallerContext _ctx) {
openArmsServiceSecondVersionResponse.setRequestId(_ctx.stringValue("OpenArmsServiceSecondVersionResponse.RequestId"));
openArmsServiceSecondVersionResponse.setOrderId(_ctx.stringValue("OpenArmsServiceSecondVersionResponse.OrderId"));
return openArmsServiceSecondVersionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/OpenVClusterResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.OpenVClusterResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class OpenVClusterResponseUnmarshaller {
public static OpenVClusterResponse unmarshall(OpenVClusterResponse openVClusterResponse, UnmarshallerContext _ctx) {
openVClusterResponse.setRequestId(_ctx.stringValue("OpenVClusterResponse.RequestId"));
openVClusterResponse.setData(_ctx.stringValue("OpenVClusterResponse.Data"));
return openVClusterResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/OpenXtraceDefaultSLRResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.OpenXtraceDefaultSLRResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class OpenXtraceDefaultSLRResponseUnmarshaller {
public static OpenXtraceDefaultSLRResponse unmarshall(OpenXtraceDefaultSLRResponse openXtraceDefaultSLRResponse, UnmarshallerContext _ctx) {
openXtraceDefaultSLRResponse.setRequestId(_ctx.stringValue("OpenXtraceDefaultSLRResponse.RequestId"));
openXtraceDefaultSLRResponse.setData(_ctx.stringValue("OpenXtraceDefaultSLRResponse.Data"));
return openXtraceDefaultSLRResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/QueryAppMetadataResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.QueryAppMetadataResponse;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class QueryAppMetadataResponseUnmarshaller {
public static QueryAppMetadataResponse unmarshall(QueryAppMetadataResponse queryAppMetadataResponse, UnmarshallerContext _ctx) {
queryAppMetadataResponse.setRequestId(_ctx.stringValue("QueryAppMetadataResponse.RequestId"));
queryAppMetadataResponse.setData(_ctx.mapValue("QueryAppMetadataResponse.Data"));
queryAppMetadataResponse.setCode(_ctx.integerValue("QueryAppMetadataResponse.Code"));
queryAppMetadataResponse.setHttpStatusCode(_ctx.integerValue("QueryAppMetadataResponse.HttpStatusCode"));
queryAppMetadataResponse.setSuccess(_ctx.booleanValue("QueryAppMetadataResponse.Success"));
return queryAppMetadataResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/QueryAppTopologyResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.QueryAppTopologyResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class QueryAppTopologyResponseUnmarshaller {
public static QueryAppTopologyResponse unmarshall(QueryAppTopologyResponse queryAppTopologyResponse, UnmarshallerContext _ctx) {
return queryAppTopologyResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/QueryCommercialUsageResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.QueryCommercialUsageResponse;
import com.aliyuncs.arms.model.v20190808.QueryCommercialUsageResponse.Data;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class QueryCommercialUsageResponseUnmarshaller {
public static QueryCommercialUsageResponse unmarshall(QueryCommercialUsageResponse queryCommercialUsageResponse, UnmarshallerContext _ctx) {
queryCommercialUsageResponse.setRequestId(_ctx.stringValue("QueryCommercialUsageResponse.RequestId"));
queryCommercialUsageResponse.setCode(_ctx.integerValue("QueryCommercialUsageResponse.Code"));
queryCommercialUsageResponse.setHttpStatusCode(_ctx.integerValue("QueryCommercialUsageResponse.HttpStatusCode"));
queryCommercialUsageResponse.setMessage(_ctx.stringValue("QueryCommercialUsageResponse.Message"));
queryCommercialUsageResponse.setSuccess(_ctx.booleanValue("QueryCommercialUsageResponse.Success"));
Data data = new Data();
data.setComplete(_ctx.booleanValue("QueryCommercialUsageResponse.Data.Complete"));
List<Map<Object, Object>> items = _ctx.listMapValue("QueryCommercialUsageResponse.Data.Items");
data.setItems(items);
queryCommercialUsageResponse.setData(data);
return queryCommercialUsageResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/QueryMetricByPageResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.QueryMetricByPageResponse;
import com.aliyuncs.arms.model.v20190808.QueryMetricByPageResponse.Data;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class QueryMetricByPageResponseUnmarshaller {
public static QueryMetricByPageResponse unmarshall(QueryMetricByPageResponse queryMetricByPageResponse, UnmarshallerContext _ctx) {
queryMetricByPageResponse.setRequestId(_ctx.stringValue("QueryMetricByPageResponse.RequestId"));
queryMetricByPageResponse.setCode(_ctx.stringValue("QueryMetricByPageResponse.Code"));
queryMetricByPageResponse.setMessage(_ctx.stringValue("QueryMetricByPageResponse.Message"));
queryMetricByPageResponse.setSuccess(_ctx.booleanValue("QueryMetricByPageResponse.Success"));
Data data = new Data();
data.setPageSize(_ctx.integerValue("QueryMetricByPageResponse.Data.PageSize"));
data.setTotal(_ctx.integerValue("QueryMetricByPageResponse.Data.Total"));
data.setPage(_ctx.integerValue("QueryMetricByPageResponse.Data.Page"));
data.setCompleted(_ctx.booleanValue("QueryMetricByPageResponse.Data.Completed"));
List<Map<Object, Object>> items = _ctx.listMapValue("QueryMetricByPageResponse.Data.Items");
data.setItems(items);
queryMetricByPageResponse.setData(data);
return queryMetricByPageResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/QueryPromInstallStatusResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.QueryPromInstallStatusResponse;
import com.aliyuncs.arms.model.v20190808.QueryPromInstallStatusResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;
public class QueryPromInstallStatusResponseUnmarshaller {
public static QueryPromInstallStatusResponse unmarshall(QueryPromInstallStatusResponse queryPromInstallStatusResponse, UnmarshallerContext _ctx) {
queryPromInstallStatusResponse.setRequestId(_ctx.stringValue("QueryPromInstallStatusResponse.RequestId"));
Data data = new Data();
data.setIsControllerInstalled(_ctx.booleanValue("QueryPromInstallStatusResponse.Data.isControllerInstalled"));
queryPromInstallStatusResponse.setData(data);
return queryPromInstallStatusResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/QueryReleaseMetricResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.QueryReleaseMetricResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class QueryReleaseMetricResponseUnmarshaller {
public static QueryReleaseMetricResponse unmarshall(QueryReleaseMetricResponse queryReleaseMetricResponse, UnmarshallerContext _ctx) {
queryReleaseMetricResponse.setRequestId(_ctx.stringValue("QueryReleaseMetricResponse.RequestId"));
queryReleaseMetricResponse.setData(_ctx.stringValue("QueryReleaseMetricResponse.Data"));
return queryReleaseMetricResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/RemoveAliClusterIdsFromPrometheusGlobalViewResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.RemoveAliClusterIdsFromPrometheusGlobalViewResponse;
import com.aliyuncs.arms.model.v20190808.RemoveAliClusterIdsFromPrometheusGlobalViewResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;
public class RemoveAliClusterIdsFromPrometheusGlobalViewResponseUnmarshaller {
public static RemoveAliClusterIdsFromPrometheusGlobalViewResponse unmarshall(RemoveAliClusterIdsFromPrometheusGlobalViewResponse removeAliClusterIdsFromPrometheusGlobalViewResponse, UnmarshallerContext _ctx) {
removeAliClusterIdsFromPrometheusGlobalViewResponse.setRequestId(_ctx.stringValue("RemoveAliClusterIdsFromPrometheusGlobalViewResponse.RequestId"));
removeAliClusterIdsFromPrometheusGlobalViewResponse.setMessage(_ctx.stringValue("RemoveAliClusterIdsFromPrometheusGlobalViewResponse.Message"));
removeAliClusterIdsFromPrometheusGlobalViewResponse.setCode(_ctx.integerValue("RemoveAliClusterIdsFromPrometheusGlobalViewResponse.Code"));
Data data = new Data();
data.setSuccess(_ctx.booleanValue("RemoveAliClusterIdsFromPrometheusGlobalViewResponse.Data.Success"));
data.setMsg(_ctx.stringValue("RemoveAliClusterIdsFromPrometheusGlobalViewResponse.Data.Msg"));
data.setInfo(_ctx.stringValue("RemoveAliClusterIdsFromPrometheusGlobalViewResponse.Data.Info"));
removeAliClusterIdsFromPrometheusGlobalViewResponse.setData(data);
return removeAliClusterIdsFromPrometheusGlobalViewResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/RemoveSourcesFromPrometheusGlobalViewResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.RemoveSourcesFromPrometheusGlobalViewResponse;
import com.aliyuncs.arms.model.v20190808.RemoveSourcesFromPrometheusGlobalViewResponse.Data;
import com.aliyuncs.transform.UnmarshallerContext;
public class RemoveSourcesFromPrometheusGlobalViewResponseUnmarshaller {
public static RemoveSourcesFromPrometheusGlobalViewResponse unmarshall(RemoveSourcesFromPrometheusGlobalViewResponse removeSourcesFromPrometheusGlobalViewResponse, UnmarshallerContext _ctx) {
removeSourcesFromPrometheusGlobalViewResponse.setRequestId(_ctx.stringValue("RemoveSourcesFromPrometheusGlobalViewResponse.RequestId"));
removeSourcesFromPrometheusGlobalViewResponse.setMessage(_ctx.stringValue("RemoveSourcesFromPrometheusGlobalViewResponse.Message"));
removeSourcesFromPrometheusGlobalViewResponse.setCode(_ctx.integerValue("RemoveSourcesFromPrometheusGlobalViewResponse.Code"));
Data data = new Data();
data.setSuccess(_ctx.booleanValue("RemoveSourcesFromPrometheusGlobalViewResponse.Data.Success"));
data.setMsg(_ctx.stringValue("RemoveSourcesFromPrometheusGlobalViewResponse.Data.Msg"));
data.setInfo(_ctx.stringValue("RemoveSourcesFromPrometheusGlobalViewResponse.Data.Info"));
removeSourcesFromPrometheusGlobalViewResponse.setData(data);
return removeSourcesFromPrometheusGlobalViewResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/RestartEnvironmentFeatureResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.RestartEnvironmentFeatureResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class RestartEnvironmentFeatureResponseUnmarshaller {
public static RestartEnvironmentFeatureResponse unmarshall(RestartEnvironmentFeatureResponse restartEnvironmentFeatureResponse, UnmarshallerContext _ctx) {
restartEnvironmentFeatureResponse.setRequestId(_ctx.stringValue("RestartEnvironmentFeatureResponse.RequestId"));
restartEnvironmentFeatureResponse.setCode(_ctx.integerValue("RestartEnvironmentFeatureResponse.Code"));
restartEnvironmentFeatureResponse.setMessage(_ctx.stringValue("RestartEnvironmentFeatureResponse.Message"));
restartEnvironmentFeatureResponse.setSuccess(_ctx.booleanValue("RestartEnvironmentFeatureResponse.Success"));
restartEnvironmentFeatureResponse.setData(_ctx.stringValue("RestartEnvironmentFeatureResponse.Data"));
return restartEnvironmentFeatureResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SaveTraceAppConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.SaveTraceAppConfigResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class SaveTraceAppConfigResponseUnmarshaller {
public static SaveTraceAppConfigResponse unmarshall(SaveTraceAppConfigResponse saveTraceAppConfigResponse, UnmarshallerContext _ctx) {
saveTraceAppConfigResponse.setRequestId(_ctx.stringValue("SaveTraceAppConfigResponse.RequestId"));
saveTraceAppConfigResponse.setData(_ctx.stringValue("SaveTraceAppConfigResponse.Data"));
saveTraceAppConfigResponse.setMessage(_ctx.stringValue("SaveTraceAppConfigResponse.Message"));
saveTraceAppConfigResponse.setCode(_ctx.longValue("SaveTraceAppConfigResponse.Code"));
saveTraceAppConfigResponse.setSuccess(_ctx.booleanValue("SaveTraceAppConfigResponse.Success"));
return saveTraceAppConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchAlertContactGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchAlertContactGroupResponse;
import com.aliyuncs.arms.model.v20190808.SearchAlertContactGroupResponse.ContactGroup;
import com.aliyuncs.arms.model.v20190808.SearchAlertContactGroupResponse.ContactGroup.Contact;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchAlertContactGroupResponseUnmarshaller {
public static SearchAlertContactGroupResponse unmarshall(SearchAlertContactGroupResponse searchAlertContactGroupResponse, UnmarshallerContext _ctx) {
searchAlertContactGroupResponse.setRequestId(_ctx.stringValue("SearchAlertContactGroupResponse.RequestId"));
List<ContactGroup> contactGroups = new ArrayList<ContactGroup>();
for (int i = 0; i < _ctx.lengthValue("SearchAlertContactGroupResponse.ContactGroups.Length"); i++) {
ContactGroup contactGroup = new ContactGroup();
contactGroup.setUpdateTime(_ctx.longValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].UpdateTime"));
contactGroup.setContactGroupName(_ctx.stringValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].ContactGroupName"));
contactGroup.setContactGroupId(_ctx.longValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].ContactGroupId"));
contactGroup.setCreateTime(_ctx.longValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].CreateTime"));
contactGroup.setUserId(_ctx.stringValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].UserId"));
List<Contact> contacts = new ArrayList<Contact>();
for (int j = 0; j < _ctx.lengthValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts.Length"); j++) {
Contact contact = new Contact();
contact.setUpdateTime(_ctx.longValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].UpdateTime"));
contact.setDingRobot(_ctx.stringValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].DingRobot"));
contact.setEmail(_ctx.stringValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].Email"));
contact.setContactId(_ctx.longValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].ContactId"));
contact.setCreateTime(_ctx.longValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].CreateTime"));
contact.setUserId(_ctx.stringValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].UserId"));
contact.setContactName(_ctx.stringValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].ContactName"));
contact.setSystemNoc(_ctx.booleanValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].SystemNoc"));
contact.setPhone(_ctx.stringValue("SearchAlertContactGroupResponse.ContactGroups["+ i +"].Contacts["+ j +"].Phone"));
contacts.add(contact);
}
contactGroup.setContacts(contacts);
contactGroups.add(contactGroup);
}
searchAlertContactGroupResponse.setContactGroups(contactGroups);
return searchAlertContactGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchAlertContactResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchAlertContactResponse;
import com.aliyuncs.arms.model.v20190808.SearchAlertContactResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.SearchAlertContactResponse.PageBean.Contact;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchAlertContactResponseUnmarshaller {
public static SearchAlertContactResponse unmarshall(SearchAlertContactResponse searchAlertContactResponse, UnmarshallerContext _ctx) {
searchAlertContactResponse.setRequestId(_ctx.stringValue("SearchAlertContactResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setPageNumber(_ctx.integerValue("SearchAlertContactResponse.PageBean.PageNumber"));
pageBean.setPageSize(_ctx.integerValue("SearchAlertContactResponse.PageBean.PageSize"));
pageBean.setTotalCount(_ctx.integerValue("SearchAlertContactResponse.PageBean.TotalCount"));
List<Contact> contacts = new ArrayList<Contact>();
for (int i = 0; i < _ctx.lengthValue("SearchAlertContactResponse.PageBean.Contacts.Length"); i++) {
Contact contact = new Contact();
contact.setUpdateTime(_ctx.longValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].UpdateTime"));
contact.setDingRobot(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].DingRobot"));
contact.setWebhook(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].Webhook"));
contact.setEmail(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].Email"));
contact.setContactId(_ctx.longValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].ContactId"));
contact.setCreateTime(_ctx.longValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].CreateTime"));
contact.setUserId(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].UserId"));
contact.setContactName(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].ContactName"));
contact.setSystemNoc(_ctx.booleanValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].SystemNoc"));
contact.setContent(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].Content"));
contact.setPhone(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].Phone"));
contact.setResourceGroupId(_ctx.stringValue("SearchAlertContactResponse.PageBean.Contacts["+ i +"].ResourceGroupId"));
contacts.add(contact);
}
pageBean.setContacts(contacts);
searchAlertContactResponse.setPageBean(pageBean);
return searchAlertContactResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchAlertHistoriesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchAlertHistoriesResponse;
import com.aliyuncs.arms.model.v20190808.SearchAlertHistoriesResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.SearchAlertHistoriesResponse.PageBean.AlarmHistory;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchAlertHistoriesResponseUnmarshaller {
public static SearchAlertHistoriesResponse unmarshall(SearchAlertHistoriesResponse searchAlertHistoriesResponse, UnmarshallerContext _ctx) {
searchAlertHistoriesResponse.setRequestId(_ctx.stringValue("SearchAlertHistoriesResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setPageNumber(_ctx.integerValue("SearchAlertHistoriesResponse.PageBean.PageNumber"));
pageBean.setPageSize(_ctx.integerValue("SearchAlertHistoriesResponse.PageBean.PageSize"));
pageBean.setTotalCount(_ctx.integerValue("SearchAlertHistoriesResponse.PageBean.TotalCount"));
List<AlarmHistory> alarmHistories = new ArrayList<AlarmHistory>();
for (int i = 0; i < _ctx.lengthValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories.Length"); i++) {
AlarmHistory alarmHistory = new AlarmHistory();
alarmHistory.setAlarmTime(_ctx.longValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].AlarmTime"));
alarmHistory.setStrategyId(_ctx.stringValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].StrategyId"));
alarmHistory.setAlarmResponseCode(_ctx.integerValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].AlarmResponseCode"));
alarmHistory.setEmails(_ctx.stringValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].Emails"));
alarmHistory.setUserId(_ctx.stringValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].UserId"));
alarmHistory.setAlarmSources(_ctx.stringValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].AlarmSources"));
alarmHistory.setAlarmContent(_ctx.stringValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].AlarmContent"));
alarmHistory.setPhones(_ctx.stringValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].Phones"));
alarmHistory.setAlarmType(_ctx.integerValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].AlarmType"));
alarmHistory.setTarget(_ctx.stringValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].Target"));
alarmHistory.setId(_ctx.longValue("SearchAlertHistoriesResponse.PageBean.AlarmHistories["+ i +"].Id"));
alarmHistories.add(alarmHistory);
}
pageBean.setAlarmHistories(alarmHistories);
searchAlertHistoriesResponse.setPageBean(pageBean);
return searchAlertHistoriesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchAlertRulesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean.AlertRuleEntity;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean.AlertRuleEntity.AlarmContext;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean.AlertRuleEntity.AlertRule;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean.AlertRuleEntity.AlertRule.Rule;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean.AlertRuleEntity.MetricParam;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean.AlertRuleEntity.MetricParam.Dimension;
import com.aliyuncs.arms.model.v20190808.SearchAlertRulesResponse.PageBean.AlertRuleEntity.Notice;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchAlertRulesResponseUnmarshaller {
public static SearchAlertRulesResponse unmarshall(SearchAlertRulesResponse searchAlertRulesResponse, UnmarshallerContext _ctx) {
searchAlertRulesResponse.setRequestId(_ctx.stringValue("SearchAlertRulesResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setPageNumber(_ctx.integerValue("SearchAlertRulesResponse.PageBean.PageNumber"));
pageBean.setPageSize(_ctx.integerValue("SearchAlertRulesResponse.PageBean.PageSize"));
pageBean.setTotalCount(_ctx.integerValue("SearchAlertRulesResponse.PageBean.TotalCount"));
List<AlertRuleEntity> alertRules = new ArrayList<AlertRuleEntity>();
for (int i = 0; i < _ctx.lengthValue("SearchAlertRulesResponse.PageBean.AlertRules.Length"); i++) {
AlertRuleEntity alertRuleEntity = new AlertRuleEntity();
alertRuleEntity.setStatus(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Status"));
alertRuleEntity.setUpdateTime(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].UpdateTime"));
alertRuleEntity.setContactGroupIdList(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].ContactGroupIdList"));
alertRuleEntity.setCreateTime(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].CreateTime"));
alertRuleEntity.setAlertTitle(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertTitle"));
alertRuleEntity.setUserId(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].UserId"));
alertRuleEntity.setAlertVersion(_ctx.integerValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertVersion"));
alertRuleEntity.setHostByAlertManager(_ctx.booleanValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].HostByAlertManager"));
alertRuleEntity.setAlertType(_ctx.integerValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertType"));
alertRuleEntity.setContactGroupIds(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].ContactGroupIds"));
alertRuleEntity.setConfig(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Config"));
alertRuleEntity.setRegionId(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].RegionId"));
alertRuleEntity.setAlertLevel(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertLevel"));
alertRuleEntity.setTaskStatus(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].TaskStatus"));
alertRuleEntity.setTitle(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Title"));
alertRuleEntity.setTaskId(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].TaskId"));
alertRuleEntity.setId(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Id"));
alertRuleEntity.setResourceGroupId(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].ResourceGroupId"));
List<String> alertWays = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertWays.Length"); j++) {
alertWays.add(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertWays["+ j +"]"));
}
alertRuleEntity.setAlertWays(alertWays);
List<String> alertWay = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertWay.Length"); j++) {
alertWay.add(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertWay["+ j +"]"));
}
alertRuleEntity.setAlertWay(alertWay);
AlarmContext alarmContext = new AlarmContext();
alarmContext.setAlarmContentTemplate(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlarmContext.AlarmContentTemplate"));
alarmContext.setSubTitle(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlarmContext.SubTitle"));
alarmContext.setAlarmContentSubTitle(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlarmContext.AlarmContentSubTitle"));
alarmContext.setContent(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlarmContext.Content"));
alertRuleEntity.setAlarmContext(alarmContext);
AlertRule alertRule = new AlertRule();
alertRule.setOperator(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Operator"));
List<Rule> rules = new ArrayList<Rule>();
for (int j = 0; j < _ctx.lengthValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Rules.Length"); j++) {
Rule rule = new Rule();
rule.setMeasure(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Rules["+ j +"].Measure"));
rule.setValue(_ctx.floatValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Rules["+ j +"].Value"));
rule.setAggregates(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Rules["+ j +"].Aggregates"));
rule.setNValue(_ctx.integerValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Rules["+ j +"].NValue"));
rule.setOperator(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Rules["+ j +"].Operator"));
rule.setAlias(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].AlertRule.Rules["+ j +"].Alias"));
rules.add(rule);
}
alertRule.setRules(rules);
alertRuleEntity.setAlertRule(alertRule);
MetricParam metricParam = new MetricParam();
metricParam.setType(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.Type"));
metricParam.setAppGroupId(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.AppGroupId"));
metricParam.setAppId(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.AppId"));
metricParam.setPid(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.Pid"));
List<Dimension> dimensions = new ArrayList<Dimension>();
for (int j = 0; j < _ctx.lengthValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.Dimensions.Length"); j++) {
Dimension dimension = new Dimension();
dimension.setKey(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.Dimensions["+ j +"].Key"));
dimension.setType(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.Dimensions["+ j +"].Type"));
dimension.setValue(_ctx.stringValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].MetricParam.Dimensions["+ j +"].Value"));
dimensions.add(dimension);
}
metricParam.setDimensions(dimensions);
alertRuleEntity.setMetricParam(metricParam);
Notice notice = new Notice();
notice.setEndTime(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Notice.EndTime"));
notice.setNoticeEndTime(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Notice.NoticeEndTime"));
notice.setStartTime(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Notice.StartTime"));
notice.setNoticeStartTime(_ctx.longValue("SearchAlertRulesResponse.PageBean.AlertRules["+ i +"].Notice.NoticeStartTime"));
alertRuleEntity.setNotice(notice);
alertRules.add(alertRuleEntity);
}
pageBean.setAlertRules(alertRules);
searchAlertRulesResponse.setPageBean(pageBean);
return searchAlertRulesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchEventsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchEventsResponse;
import com.aliyuncs.arms.model.v20190808.SearchEventsResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.SearchEventsResponse.PageBean.EventItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchEventsResponseUnmarshaller {
public static SearchEventsResponse unmarshall(SearchEventsResponse searchEventsResponse, UnmarshallerContext _ctx) {
searchEventsResponse.setRequestId(_ctx.stringValue("SearchEventsResponse.RequestId"));
searchEventsResponse.setIsTrigger(_ctx.integerValue("SearchEventsResponse.IsTrigger"));
PageBean pageBean = new PageBean();
pageBean.setPageNumber(_ctx.integerValue("SearchEventsResponse.PageBean.PageNumber"));
pageBean.setPageSize(_ctx.integerValue("SearchEventsResponse.PageBean.PageSize"));
pageBean.setTotalCount(_ctx.integerValue("SearchEventsResponse.PageBean.TotalCount"));
List<EventItem> event = new ArrayList<EventItem>();
for (int i = 0; i < _ctx.lengthValue("SearchEventsResponse.PageBean.Event.Length"); i++) {
EventItem eventItem = new EventItem();
eventItem.setEventTime(_ctx.longValue("SearchEventsResponse.PageBean.Event["+ i +"].EventTime"));
eventItem.setEventLevel(_ctx.stringValue("SearchEventsResponse.PageBean.Event["+ i +"].EventLevel"));
eventItem.setAlertRule(_ctx.stringValue("SearchEventsResponse.PageBean.Event["+ i +"].AlertRule"));
eventItem.setMessage(_ctx.stringValue("SearchEventsResponse.PageBean.Event["+ i +"].Message"));
eventItem.setAlertType(_ctx.integerValue("SearchEventsResponse.PageBean.Event["+ i +"].AlertType"));
eventItem.setAlertName(_ctx.stringValue("SearchEventsResponse.PageBean.Event["+ i +"].AlertName"));
eventItem.setId(_ctx.longValue("SearchEventsResponse.PageBean.Event["+ i +"].Id"));
eventItem.setAlertId(_ctx.longValue("SearchEventsResponse.PageBean.Event["+ i +"].AlertId"));
List<String> links = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("SearchEventsResponse.PageBean.Event["+ i +"].Links.Length"); j++) {
links.add(_ctx.stringValue("SearchEventsResponse.PageBean.Event["+ i +"].Links["+ j +"]"));
}
eventItem.setLinks(links);
event.add(eventItem);
}
pageBean.setEvent(event);
searchEventsResponse.setPageBean(pageBean);
return searchEventsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchRetcodeAppByPageResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchRetcodeAppByPageResponse;
import com.aliyuncs.arms.model.v20190808.SearchRetcodeAppByPageResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.SearchRetcodeAppByPageResponse.PageBean.RetcodeApp;
import com.aliyuncs.arms.model.v20190808.SearchRetcodeAppByPageResponse.PageBean.RetcodeApp.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchRetcodeAppByPageResponseUnmarshaller {
public static SearchRetcodeAppByPageResponse unmarshall(SearchRetcodeAppByPageResponse searchRetcodeAppByPageResponse, UnmarshallerContext _ctx) {
searchRetcodeAppByPageResponse.setRequestId(_ctx.stringValue("SearchRetcodeAppByPageResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setPageNumber(_ctx.integerValue("SearchRetcodeAppByPageResponse.PageBean.PageNumber"));
pageBean.setPageSize(_ctx.integerValue("SearchRetcodeAppByPageResponse.PageBean.PageSize"));
pageBean.setTotalCount(_ctx.integerValue("SearchRetcodeAppByPageResponse.PageBean.TotalCount"));
List<RetcodeApp> retcodeApps = new ArrayList<RetcodeApp>();
for (int i = 0; i < _ctx.lengthValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps.Length"); i++) {
RetcodeApp retcodeApp = new RetcodeApp();
retcodeApp.setType(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].Type"));
retcodeApp.setAppName(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].AppName"));
retcodeApp.setRetcodeAppType(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].RetcodeAppType"));
retcodeApp.setUpdateTime(_ctx.longValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].UpdateTime"));
retcodeApp.setCreateTime(_ctx.longValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].CreateTime"));
retcodeApp.setPid(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].Pid"));
retcodeApp.setAppId(_ctx.longValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].AppId"));
retcodeApp.setUserId(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].UserId"));
retcodeApp.setRegionId(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].RegionId"));
retcodeApp.setNickName(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].NickName"));
retcodeApp.setResourceGroupId(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].ResourceGroupId"));
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("SearchRetcodeAppByPageResponse.PageBean.RetcodeApps["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
retcodeApp.setTags(tags);
retcodeApps.add(retcodeApp);
}
pageBean.setRetcodeApps(retcodeApps);
searchRetcodeAppByPageResponse.setPageBean(pageBean);
return searchRetcodeAppByPageResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchTraceAppByNameResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchTraceAppByNameResponse;
import com.aliyuncs.arms.model.v20190808.SearchTraceAppByNameResponse.TraceApp;
import com.aliyuncs.arms.model.v20190808.SearchTraceAppByNameResponse.TraceApp.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchTraceAppByNameResponseUnmarshaller {
public static SearchTraceAppByNameResponse unmarshall(SearchTraceAppByNameResponse searchTraceAppByNameResponse, UnmarshallerContext _ctx) {
searchTraceAppByNameResponse.setRequestId(_ctx.stringValue("SearchTraceAppByNameResponse.RequestId"));
List<TraceApp> traceApps = new ArrayList<TraceApp>();
for (int i = 0; i < _ctx.lengthValue("SearchTraceAppByNameResponse.TraceApps.Length"); i++) {
TraceApp traceApp = new TraceApp();
traceApp.setType(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Type"));
traceApp.setAppName(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].AppName"));
traceApp.setUpdateTime(_ctx.longValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].UpdateTime"));
traceApp.setShow(_ctx.booleanValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Show"));
traceApp.setCreateTime(_ctx.longValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].CreateTime"));
traceApp.setPid(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Pid"));
traceApp.setAppId(_ctx.longValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].AppId"));
traceApp.setUserId(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].UserId"));
traceApp.setRegionId(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].RegionId"));
traceApp.setResourceGroupId(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].ResourceGroupId"));
List<String> labels = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Labels.Length"); j++) {
labels.add(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Labels["+ j +"]"));
}
traceApp.setLabels(labels);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("SearchTraceAppByNameResponse.TraceApps["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
traceApp.setTags(tags);
traceApps.add(traceApp);
}
searchTraceAppByNameResponse.setTraceApps(traceApps);
return searchTraceAppByNameResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchTraceAppByPageResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchTraceAppByPageResponse;
import com.aliyuncs.arms.model.v20190808.SearchTraceAppByPageResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.SearchTraceAppByPageResponse.PageBean.TraceApp;
import com.aliyuncs.arms.model.v20190808.SearchTraceAppByPageResponse.PageBean.TraceApp.TagsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchTraceAppByPageResponseUnmarshaller {
public static SearchTraceAppByPageResponse unmarshall(SearchTraceAppByPageResponse searchTraceAppByPageResponse, UnmarshallerContext _ctx) {
searchTraceAppByPageResponse.setRequestId(_ctx.stringValue("SearchTraceAppByPageResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setPageNumber(_ctx.integerValue("SearchTraceAppByPageResponse.PageBean.PageNumber"));
pageBean.setPageSize(_ctx.integerValue("SearchTraceAppByPageResponse.PageBean.PageSize"));
pageBean.setTotalCount(_ctx.integerValue("SearchTraceAppByPageResponse.PageBean.TotalCount"));
List<TraceApp> traceApps = new ArrayList<TraceApp>();
for (int i = 0; i < _ctx.lengthValue("SearchTraceAppByPageResponse.PageBean.TraceApps.Length"); i++) {
TraceApp traceApp = new TraceApp();
traceApp.setType(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Type"));
traceApp.setAppName(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].AppName"));
traceApp.setUpdateTime(_ctx.longValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].UpdateTime"));
traceApp.setShow(_ctx.booleanValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Show"));
traceApp.setCreateTime(_ctx.longValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].CreateTime"));
traceApp.setPid(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Pid"));
traceApp.setAppId(_ctx.longValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].AppId"));
traceApp.setUserId(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].UserId"));
traceApp.setRegionId(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].RegionId"));
traceApp.setResourceGroupId(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].ResourceGroupId"));
List<String> labels = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Labels.Length"); j++) {
labels.add(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Labels["+ j +"]"));
}
traceApp.setLabels(labels);
List<TagsItem> tags = new ArrayList<TagsItem>();
for (int j = 0; j < _ctx.lengthValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Tags.Length"); j++) {
TagsItem tagsItem = new TagsItem();
tagsItem.setKey(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Tags["+ j +"].Key"));
tagsItem.setValue(_ctx.stringValue("SearchTraceAppByPageResponse.PageBean.TraceApps["+ i +"].Tags["+ j +"].Value"));
tags.add(tagsItem);
}
traceApp.setTags(tags);
traceApps.add(traceApp);
}
pageBean.setTraceApps(traceApps);
searchTraceAppByPageResponse.setPageBean(pageBean);
return searchTraceAppByPageResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchTracesByPageResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchTracesByPageResponse;
import com.aliyuncs.arms.model.v20190808.SearchTracesByPageResponse.PageBean;
import com.aliyuncs.arms.model.v20190808.SearchTracesByPageResponse.PageBean.TraceInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchTracesByPageResponseUnmarshaller {
public static SearchTracesByPageResponse unmarshall(SearchTracesByPageResponse searchTracesByPageResponse, UnmarshallerContext _ctx) {
searchTracesByPageResponse.setRequestId(_ctx.stringValue("SearchTracesByPageResponse.RequestId"));
PageBean pageBean = new PageBean();
pageBean.setPageNumber(_ctx.integerValue("SearchTracesByPageResponse.PageBean.PageNumber"));
pageBean.setPageSize(_ctx.integerValue("SearchTracesByPageResponse.PageBean.PageSize"));
pageBean.setTotal(_ctx.integerValue("SearchTracesByPageResponse.PageBean.Total"));
List<TraceInfo> traceInfos = new ArrayList<TraceInfo>();
for (int i = 0; i < _ctx.lengthValue("SearchTracesByPageResponse.PageBean.TraceInfos.Length"); i++) {
TraceInfo traceInfo = new TraceInfo();
traceInfo.setOperationName(_ctx.stringValue("SearchTracesByPageResponse.PageBean.TraceInfos["+ i +"].OperationName"));
traceInfo.setServiceIp(_ctx.stringValue("SearchTracesByPageResponse.PageBean.TraceInfos["+ i +"].ServiceIp"));
traceInfo.setDuration(_ctx.longValue("SearchTracesByPageResponse.PageBean.TraceInfos["+ i +"].Duration"));
traceInfo.setTimestamp(_ctx.longValue("SearchTracesByPageResponse.PageBean.TraceInfos["+ i +"].Timestamp"));
traceInfo.setServiceName(_ctx.stringValue("SearchTracesByPageResponse.PageBean.TraceInfos["+ i +"].ServiceName"));
traceInfo.setTraceID(_ctx.stringValue("SearchTracesByPageResponse.PageBean.TraceInfos["+ i +"].TraceID"));
traceInfo.setSpanID(_ctx.stringValue("SearchTracesByPageResponse.PageBean.TraceInfos["+ i +"].SpanID"));
traceInfos.add(traceInfo);
}
pageBean.setTraceInfos(traceInfos);
searchTracesByPageResponse.setPageBean(pageBean);
return searchTracesByPageResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SearchTracesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.arms.model.v20190808.SearchTracesResponse;
import com.aliyuncs.arms.model.v20190808.SearchTracesResponse.TraceInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class SearchTracesResponseUnmarshaller {
public static SearchTracesResponse unmarshall(SearchTracesResponse searchTracesResponse, UnmarshallerContext _ctx) {
searchTracesResponse.setRequestId(_ctx.stringValue("SearchTracesResponse.RequestId"));
List<TraceInfo> traceInfos = new ArrayList<TraceInfo>();
for (int i = 0; i < _ctx.lengthValue("SearchTracesResponse.TraceInfos.Length"); i++) {
TraceInfo traceInfo = new TraceInfo();
traceInfo.setOperationName(_ctx.stringValue("SearchTracesResponse.TraceInfos["+ i +"].OperationName"));
traceInfo.setServiceIp(_ctx.stringValue("SearchTracesResponse.TraceInfos["+ i +"].ServiceIp"));
traceInfo.setDuration(_ctx.longValue("SearchTracesResponse.TraceInfos["+ i +"].Duration"));
traceInfo.setTimestamp(_ctx.longValue("SearchTracesResponse.TraceInfos["+ i +"].Timestamp"));
traceInfo.setServiceName(_ctx.stringValue("SearchTracesResponse.TraceInfos["+ i +"].ServiceName"));
traceInfo.setTraceID(_ctx.stringValue("SearchTracesResponse.TraceInfos["+ i +"].TraceID"));
traceInfo.setSpanID(_ctx.stringValue("SearchTracesResponse.TraceInfos["+ i +"].SpanID"));
traceInfos.add(traceInfo);
}
searchTracesResponse.setTraceInfos(traceInfos);
return searchTracesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SendTTSVerifyLinkResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.SendTTSVerifyLinkResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class SendTTSVerifyLinkResponseUnmarshaller {
public static SendTTSVerifyLinkResponse unmarshall(SendTTSVerifyLinkResponse sendTTSVerifyLinkResponse, UnmarshallerContext _ctx) {
sendTTSVerifyLinkResponse.setRequestId(_ctx.stringValue("SendTTSVerifyLinkResponse.RequestId"));
sendTTSVerifyLinkResponse.setIsSuccess(_ctx.booleanValue("SendTTSVerifyLinkResponse.IsSuccess"));
return sendTTSVerifyLinkResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform
|
java-sources/com/aliyun/aliyun-java-sdk-arms/10.0.3/com/aliyuncs/arms/transform/v20190808/SetRetcodeShareStatusResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.transform.v20190808;
import com.aliyuncs.arms.model.v20190808.SetRetcodeShareStatusResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class SetRetcodeShareStatusResponseUnmarshaller {
public static SetRetcodeShareStatusResponse unmarshall(SetRetcodeShareStatusResponse setRetcodeShareStatusResponse, UnmarshallerContext _ctx) {
setRetcodeShareStatusResponse.setRequestId(_ctx.stringValue("SetRetcodeShareStatusResponse.RequestId"));
setRetcodeShareStatusResponse.setIsSuccess(_ctx.booleanValue("SetRetcodeShareStatusResponse.IsSuccess"));
return setRetcodeShareStatusResponse;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.