/* * 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 DescribeBillingDataRequest : AbstractModel { /// /// 查询起始时间,如:2018-09-04 10:40:00,返回结果大于等于指定时间 /// 根据指定时间粒度参数不同,会进行向前取整,如指定起始时间为 2018-09-04 10:40:00 按小时粒度查询,返回的第一个数据对应时间点为 2018-09-04 10:00:00 /// 起始时间与结束时间间隔小于等于 90 天 /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 查询结束时间,如:2018-09-04 10:40:00,返回结果小于等于指定时间 /// 根据指定时间粒度参数不同,会进行向前取整,如指定结束时间为 2018-09-04 10:40:00 按小时粒度查询时,返回的最后一个数据对应时间点为 2018-09-04 10:00:00 /// 起始时间与结束时间间隔小于等于 90 天 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// 时间粒度,支持模式如下: /// min:1 分钟粒度,查询区间需要小于等于 24 小时 /// 5min:5 分钟粒度,查询区间需要小于等于 31 天 /// hour:1 小时粒度,查询区间需要小于等于 31 天内 /// day:天粒度,查询区间需要大于 31 天 /// /// Area 字段为 overseas 时暂不支持1分钟粒度数据查询 /// [JsonProperty("Interval")] public string Interval{ get; set; } /// /// 指定域名查询计费数据 /// [JsonProperty("Domain")] public string Domain{ get; set; } /// /// 指定项目 ID 查询,[前往查看项目 ID](https://console.cloud.tencent.com/project) /// 若 Domain 参数填充了具体域名信息,则返回该域名的计费数据,而非指定项目计费数据 /// [JsonProperty("Project")] public long? Project{ get; set; } /// /// 指定加速区域查询计费数据: /// mainland:中国境内 /// overseas:中国境外 /// 不填充时,默认为 mainland /// [JsonProperty("Area")] public string Area{ get; set; } /// /// Area 为 overseas 时,指定国家/地区查询 /// 省份、国家/地区编码可以查看 [省份编码映射](https://cloud.tencent.com/document/product/228/6316#.E7.9C.81.E4.BB.BD.E6.98.A0.E5.B0.84) /// 不填充时,查询所有国家/地区 /// [JsonProperty("District")] public long? District{ get; set; } /// /// 计费统计类型 /// flux:计费流量 /// bandwidth:计费带宽 /// 默认为 bandwidth /// [JsonProperty("Metric")] public string Metric{ 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 + "Interval", this.Interval); this.SetParamSimple(map, prefix + "Domain", this.Domain); this.SetParamSimple(map, prefix + "Project", this.Project); this.SetParamSimple(map, prefix + "Area", this.Area); this.SetParamSimple(map, prefix + "District", this.District); this.SetParamSimple(map, prefix + "Metric", this.Metric); } } }