/* * 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 FunctionLog : AbstractModel { /// /// 函数的名称 /// [JsonProperty("FunctionName")] public string FunctionName{ get; set; } /// /// 函数执行完成后的返回值 /// [JsonProperty("RetMsg")] public string RetMsg{ get; set; } /// /// 执行该函数对应的requestId /// [JsonProperty("RequestId")] public string RequestId{ get; set; } /// /// 函数开始执行时的时间点 /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 函数执行结果,如果是 0 表示执行成功,其他值表示失败 /// [JsonProperty("RetCode")] public long? RetCode{ get; set; } /// /// 函数调用是否结束,如果是 1 表示执行结束,其他值表示调用异常 /// [JsonProperty("InvokeFinished")] public long? InvokeFinished{ get; set; } /// /// 函数执行耗时,单位为 ms /// [JsonProperty("Duration")] public float? Duration{ get; set; } /// /// 函数计费时间,根据 duration 向上取最近的 100ms,单位为ms /// [JsonProperty("BillDuration")] public long? BillDuration{ get; set; } /// /// 函数执行时消耗实际内存大小,单位为 Byte /// [JsonProperty("MemUsage")] public long? MemUsage{ get; set; } /// /// 函数执行过程中的日志输出 /// [JsonProperty("Log")] public string Log{ get; set; } /// /// 日志等级 /// [JsonProperty("Level")] public string Level{ get; set; } /// /// 日志来源 /// [JsonProperty("Source")] public string Source{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "FunctionName", this.FunctionName); this.SetParamSimple(map, prefix + "RetMsg", this.RetMsg); this.SetParamSimple(map, prefix + "RequestId", this.RequestId); this.SetParamSimple(map, prefix + "StartTime", this.StartTime); this.SetParamSimple(map, prefix + "RetCode", this.RetCode); this.SetParamSimple(map, prefix + "InvokeFinished", this.InvokeFinished); this.SetParamSimple(map, prefix + "Duration", this.Duration); this.SetParamSimple(map, prefix + "BillDuration", this.BillDuration); this.SetParamSimple(map, prefix + "MemUsage", this.MemUsage); this.SetParamSimple(map, prefix + "Log", this.Log); this.SetParamSimple(map, prefix + "Level", this.Level); this.SetParamSimple(map, prefix + "Source", this.Source); } } }