com.tencentcloudapi.teo.v20220901.models.DescribeTimingL4DataRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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.tencentcloudapi.teo.v20220901.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeTimingL4DataRequest extends AbstractModel {
/**
* The start time.
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* The end time.
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* Query indicator. Values:
l4Flow_connections: Number of access connections;
l4Flow_flux: Total access traffic;
l4Flow_inFlux: Ingress access traffic;
l4Flow_outFlux: Egress access traffic.
*/
@SerializedName("MetricNames")
@Expose
private String [] MetricNames;
/**
* ZoneId set. This parameter is required.
*/
@SerializedName("ZoneIds")
@Expose
private String [] ZoneIds;
/**
* List of L4 proxy IDs. All L4 proxies will be selected if this field is not specified.
*/
@SerializedName("ProxyIds")
@Expose
private String [] ProxyIds;
/**
* The query granularity. Values:
`min`: 1 minute;
`5min`: 5 minutes;
`hour`: 1 hour;
`day`: 1 day. If this field is not specified, the granularity will be determined based on the query period.
Period ≤ 1 hour: `min`;
1 hour < Period ≤ 2 days: `5min`;
2 days < period ≤ 7 days: `hour`;
Period > 7 days: `day`.
*/
@SerializedName("Interval")
@Expose
private String Interval;
/**
* Filters
ruleId
Filter by the specified forwarding rule ID
proxyId
Filter by the specified L4 agent ID
*/
@SerializedName("Filters")
@Expose
private QueryCondition [] Filters;
/**
* Geolocation scope. Values:
`overseas`: Regions outside the Chinese mainland
`mainland`: Chinese mainland
`global`: Global If this field is not specified, the default value `global` is used.
*/
@SerializedName("Area")
@Expose
private String Area;
/**
* Get The start time.
* @return StartTime The start time.
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set The start time.
* @param StartTime The start time.
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get The end time.
* @return EndTime The end time.
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set The end time.
* @param EndTime The end time.
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get Query indicator. Values:
l4Flow_connections: Number of access connections;
l4Flow_flux: Total access traffic;
l4Flow_inFlux: Ingress access traffic;
l4Flow_outFlux: Egress access traffic.
* @return MetricNames Query indicator. Values:
l4Flow_connections: Number of access connections;
l4Flow_flux: Total access traffic;
l4Flow_inFlux: Ingress access traffic;
l4Flow_outFlux: Egress access traffic.
*/
public String [] getMetricNames() {
return this.MetricNames;
}
/**
* Set Query indicator. Values:
l4Flow_connections: Number of access connections;
l4Flow_flux: Total access traffic;
l4Flow_inFlux: Ingress access traffic;
l4Flow_outFlux: Egress access traffic.
* @param MetricNames Query indicator. Values:
l4Flow_connections: Number of access connections;
l4Flow_flux: Total access traffic;
l4Flow_inFlux: Ingress access traffic;
l4Flow_outFlux: Egress access traffic.
*/
public void setMetricNames(String [] MetricNames) {
this.MetricNames = MetricNames;
}
/**
* Get ZoneId set. This parameter is required.
* @return ZoneIds ZoneId set. This parameter is required.
*/
public String [] getZoneIds() {
return this.ZoneIds;
}
/**
* Set ZoneId set. This parameter is required.
* @param ZoneIds ZoneId set. This parameter is required.
*/
public void setZoneIds(String [] ZoneIds) {
this.ZoneIds = ZoneIds;
}
/**
* Get List of L4 proxy IDs. All L4 proxies will be selected if this field is not specified.
* @return ProxyIds List of L4 proxy IDs. All L4 proxies will be selected if this field is not specified.
*/
public String [] getProxyIds() {
return this.ProxyIds;
}
/**
* Set List of L4 proxy IDs. All L4 proxies will be selected if this field is not specified.
* @param ProxyIds List of L4 proxy IDs. All L4 proxies will be selected if this field is not specified.
*/
public void setProxyIds(String [] ProxyIds) {
this.ProxyIds = ProxyIds;
}
/**
* Get The query granularity. Values:
`min`: 1 minute;
`5min`: 5 minutes;
`hour`: 1 hour;
`day`: 1 day. If this field is not specified, the granularity will be determined based on the query period.
Period ≤ 1 hour: `min`;
1 hour < Period ≤ 2 days: `5min`;
2 days < period ≤ 7 days: `hour`;
Period > 7 days: `day`.
* @return Interval The query granularity. Values:
`min`: 1 minute;
`5min`: 5 minutes;
`hour`: 1 hour;
`day`: 1 day. If this field is not specified, the granularity will be determined based on the query period.
Period ≤ 1 hour: `min`;
1 hour < Period ≤ 2 days: `5min`;
2 days < period ≤ 7 days: `hour`;
Period > 7 days: `day`.
*/
public String getInterval() {
return this.Interval;
}
/**
* Set The query granularity. Values:
`min`: 1 minute;
`5min`: 5 minutes;
`hour`: 1 hour;
`day`: 1 day. If this field is not specified, the granularity will be determined based on the query period.
Period ≤ 1 hour: `min`;
1 hour < Period ≤ 2 days: `5min`;
2 days < period ≤ 7 days: `hour`;
Period > 7 days: `day`.
* @param Interval The query granularity. Values:
`min`: 1 minute;
`5min`: 5 minutes;
`hour`: 1 hour;
`day`: 1 day. If this field is not specified, the granularity will be determined based on the query period.
Period ≤ 1 hour: `min`;
1 hour < Period ≤ 2 days: `5min`;
2 days < period ≤ 7 days: `hour`;
Period > 7 days: `day`.
*/
public void setInterval(String Interval) {
this.Interval = Interval;
}
/**
* Get Filters
ruleId
Filter by the specified forwarding rule ID
proxyId
Filter by the specified L4 agent ID
* @return Filters Filters
ruleId
Filter by the specified forwarding rule ID
proxyId
Filter by the specified L4 agent ID
*/
public QueryCondition [] getFilters() {
return this.Filters;
}
/**
* Set Filters
ruleId
Filter by the specified forwarding rule ID
proxyId
Filter by the specified L4 agent ID
* @param Filters Filters
ruleId
Filter by the specified forwarding rule ID
proxyId
Filter by the specified L4 agent ID
*/
public void setFilters(QueryCondition [] Filters) {
this.Filters = Filters;
}
/**
* Get Geolocation scope. Values:
`overseas`: Regions outside the Chinese mainland
`mainland`: Chinese mainland
`global`: Global If this field is not specified, the default value `global` is used.
* @return Area Geolocation scope. Values:
`overseas`: Regions outside the Chinese mainland
`mainland`: Chinese mainland
`global`: Global If this field is not specified, the default value `global` is used.
*/
public String getArea() {
return this.Area;
}
/**
* Set Geolocation scope. Values:
`overseas`: Regions outside the Chinese mainland
`mainland`: Chinese mainland
`global`: Global If this field is not specified, the default value `global` is used.
* @param Area Geolocation scope. Values:
`overseas`: Regions outside the Chinese mainland
`mainland`: Chinese mainland
`global`: Global If this field is not specified, the default value `global` is used.
*/
public void setArea(String Area) {
this.Area = Area;
}
public DescribeTimingL4DataRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeTimingL4DataRequest(DescribeTimingL4DataRequest source) {
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.MetricNames != null) {
this.MetricNames = new String[source.MetricNames.length];
for (int i = 0; i < source.MetricNames.length; i++) {
this.MetricNames[i] = new String(source.MetricNames[i]);
}
}
if (source.ZoneIds != null) {
this.ZoneIds = new String[source.ZoneIds.length];
for (int i = 0; i < source.ZoneIds.length; i++) {
this.ZoneIds[i] = new String(source.ZoneIds[i]);
}
}
if (source.ProxyIds != null) {
this.ProxyIds = new String[source.ProxyIds.length];
for (int i = 0; i < source.ProxyIds.length; i++) {
this.ProxyIds[i] = new String(source.ProxyIds[i]);
}
}
if (source.Interval != null) {
this.Interval = new String(source.Interval);
}
if (source.Filters != null) {
this.Filters = new QueryCondition[source.Filters.length];
for (int i = 0; i < source.Filters.length; i++) {
this.Filters[i] = new QueryCondition(source.Filters[i]);
}
}
if (source.Area != null) {
this.Area = new String(source.Area);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamArraySimple(map, prefix + "MetricNames.", this.MetricNames);
this.setParamArraySimple(map, prefix + "ZoneIds.", this.ZoneIds);
this.setParamArraySimple(map, prefix + "ProxyIds.", this.ProxyIds);
this.setParamSimple(map, prefix + "Interval", this.Interval);
this.setParamArrayObj(map, prefix + "Filters.", this.Filters);
this.setParamSimple(map, prefix + "Area", this.Area);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy