121 lines
4.4 KiB
C#
121 lines
4.4 KiB
C#
/*
|
||
* 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.Scf.V20180416.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class GetFunctionLogsRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 函数的名称
|
||
/// </summary>
|
||
[JsonProperty("FunctionName")]
|
||
public string FunctionName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 数据的偏移量,Offset+Limit不能大于10000
|
||
/// </summary>
|
||
[JsonProperty("Offset")]
|
||
public long? Offset{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 返回数据的长度,Offset+Limit不能大于10000
|
||
/// </summary>
|
||
[JsonProperty("Limit")]
|
||
public long? Limit{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 以升序还是降序的方式对日志进行排序,可选值 desc和 asc
|
||
/// </summary>
|
||
[JsonProperty("Order")]
|
||
public string Order{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 根据某个字段排序日志,支持以下字段:function_name, duration, mem_usage, start_time
|
||
/// </summary>
|
||
[JsonProperty("OrderBy")]
|
||
public string OrderBy{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 日志过滤条件。可用来区分正确和错误日志,filter.RetCode=not0 表示只返回错误日志,filter.RetCode=is0 表示只返回正确日志,不传,则返回所有日志
|
||
/// </summary>
|
||
[JsonProperty("Filter")]
|
||
public LogFilter Filter{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 函数的命名空间
|
||
/// </summary>
|
||
[JsonProperty("Namespace")]
|
||
public string Namespace{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 函数的版本
|
||
/// </summary>
|
||
[JsonProperty("Qualifier")]
|
||
public string Qualifier{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 执行该函数对应的requestId
|
||
/// </summary>
|
||
[JsonProperty("FunctionRequestId")]
|
||
public string FunctionRequestId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 查询的具体日期,例如:2017-05-16 20:00:00,只能与endtime相差一天之内
|
||
/// </summary>
|
||
[JsonProperty("StartTime")]
|
||
public string StartTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 查询的具体日期,例如:2017-05-16 20:59:59,只能与startTime相差一天之内
|
||
/// </summary>
|
||
[JsonProperty("EndTime")]
|
||
public string EndTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 服务日志相关参数,第一页日志 Offset 为空字符串,后续分页按响应字段里的SearchContext填写
|
||
/// </summary>
|
||
[JsonProperty("SearchContext")]
|
||
public LogSearchContext SearchContext{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||
{
|
||
this.SetParamSimple(map, prefix + "FunctionName", this.FunctionName);
|
||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||
this.SetParamSimple(map, prefix + "Order", this.Order);
|
||
this.SetParamSimple(map, prefix + "OrderBy", this.OrderBy);
|
||
this.SetParamObj(map, prefix + "Filter.", this.Filter);
|
||
this.SetParamSimple(map, prefix + "Namespace", this.Namespace);
|
||
this.SetParamSimple(map, prefix + "Qualifier", this.Qualifier);
|
||
this.SetParamSimple(map, prefix + "FunctionRequestId", this.FunctionRequestId);
|
||
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
|
||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||
this.SetParamObj(map, prefix + "SearchContext.", this.SearchContext);
|
||
}
|
||
}
|
||
}
|
||
|