/*
* Copyright (c) 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.
*/
namespace TencentCloud.Cdn.V20180606.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ListTopDataRequest : AbstractModel
{
///
/// 查询起始日期,如:2018-09-09
/// 仅支持按天粒度的数据查询,取入参中的天信息作为起始日期
/// 返回大于等于起始日期当天 00:00:00 点产生的数据
/// 仅支持 90 天内数据查询
///
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
///
/// 查询结束日期,如:2018-09-10
/// 仅支持按天粒度的数据查询,取入参中的天信息作为结束日期
/// 返回小于等于结束日期当天 23:59:59 产生的数据
/// EndTime 需要大于等于 StartTime
///
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
///
/// 排序对象,支持以下几种形式:
/// url:访问 URL 排序,带参数统计,支持的 Filter 为 flux、request
/// path:访问 URL 排序,不带参数统计,支持的 Filter 为 flux、request(白名单功能)
/// district:省份、国家/地区排序,支持的 Filter 为 flux、request
/// isp:运营商排序,支持的 Filter 为 flux、request
/// host:域名访问数据排序,支持的 Filter 为:flux、request、bandwidth、fluxHitRate、2XX、3XX、4XX、5XX、statusCode
/// originHost:域名回源数据排序,支持的 Filter 为 flux、request、bandwidth、origin_2XX、origin_3XX、origin_4XX、origin_5XX、OriginStatusCode
///
[JsonProperty("Metric")]
public string Metric{ get; set; }
///
/// 排序使用的指标名称:
/// flux:Metric 为 host 时指代访问流量,originHost 时指代回源流量
/// bandwidth:Metric 为 host 时指代访问带宽,originHost 时指代回源带宽
/// request:Metric 为 host 时指代访问请求数,originHost 时指代回源请求数
/// fluxHitRate:平均流量命中率
/// 2XX:访问 2XX 状态码
/// 3XX:访问 3XX 状态码
/// 4XX:访问 4XX 状态码
/// 5XX:访问 5XX 状态码
/// origin_2XX:回源 2XX 状态码
/// origin_3XX:回源 3XX 状态码
/// origin_4XX:回源 4XX 状态码
/// origin_5XX:回源 5XX 状态码
/// statusCode:指定访问状态码统计,在 Code 参数中填充指定状态码
/// OriginStatusCode:指定回源状态码统计,在 Code 参数中填充指定状态码
///
[JsonProperty("Filter")]
public string Filter{ get; set; }
///
/// 指定查询域名列表,最多可一次性查询 30 个加速域名明细
///
[JsonProperty("Domains")]
public string[] Domains{ get; set; }
///
/// 指定要查询的项目 ID,[前往查看项目 ID](https://console.cloud.tencent.com/project)
/// 未填充域名情况下,指定项目查询,若填充了具体域名信息,以域名为主
///
[JsonProperty("Project")]
public long? Project{ get; set; }
///
/// 多域名查询时,默认(false)返回所有域名汇总排序结果
/// Metric 为 url、path、district、isp,Filter 为 flux、request 时,可设置为 true,返回每一个 Domain 的排序数据
///
[JsonProperty("Detail")]
public bool? Detail{ get; set; }
///
/// Filter 为 statusCode、OriginStatusCode 时,填充指定状态码查询排序结果
///
[JsonProperty("Code")]
public string Code{ get; set; }
///
/// 指定服务地域查询,不填充表示查询中国境内 CDN 数据
/// mainland:指定查询中国境内 CDN 数据
/// overseas:指定查询中国境外 CDN 数据,支持的 Metric 为 url、district、host、originHost,当 Metric 为 originHost 时仅支持 flux、request、bandwidth Filter
///
[JsonProperty("Area")]
public string Area{ get; set; }
///
/// 查询中国境外CDN数据,且仅当 Metric 为 district 或 host 时,可指定地区类型查询,不填充表示查询服务地区数据(仅在 Area 为 overseas,且 Metric 是 district 或 host 时可用)
/// server:指定查询服务地区(腾讯云 CDN 节点服务器所在地区)数据
/// client:指定查询客户端地区(用户请求终端所在地区)数据,当 Metric 为 host 时仅支持 flux、request、bandwidth Filter
///
[JsonProperty("AreaType")]
public string AreaType{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Metric", this.Metric);
this.SetParamSimple(map, prefix + "Filter", this.Filter);
this.SetParamArraySimple(map, prefix + "Domains.", this.Domains);
this.SetParamSimple(map, prefix + "Project", this.Project);
this.SetParamSimple(map, prefix + "Detail", this.Detail);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "Area", this.Area);
this.SetParamSimple(map, prefix + "AreaType", this.AreaType);
}
}
}