Files
g.hnyhua.cn/TencentCloud/Batch/V20170312/Models/EventConfig.cs

51 lines
3.1 KiB
C#
Raw Normal View History

/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EventConfig : AbstractModel
{
/// <summary>
/// 事件类型,包括:<br/><li>“JOB_RUNNING”作业运行适用于"SubmitJob"。</li><li>“JOB_SUCCEED”作业成功适用于"SubmitJob"。</li><li>“JOB_FAILED”作业失败适用于"SubmitJob"。</li><li>“JOB_FAILED_INTERRUPTED”作业失败保留实例适用于"SubmitJob"。</li><li>“TASK_RUNNING”任务运行适用于"SubmitJob"。</li><li>“TASK_SUCCEED”任务成功适用于"SubmitJob"。</li><li>“TASK_FAILED”任务失败适用于"SubmitJob"。</li><li>“TASK_FAILED_INTERRUPTED”任务失败保留实例适用于"SubmitJob"。</li><li>“TASK_INSTANCE_RUNNING”任务实例运行适用于"SubmitJob"。</li><li>“TASK_INSTANCE_SUCCEED”任务实例成功适用于"SubmitJob"。</li><li>“TASK_INSTANCE_FAILED”任务实例失败适用于"SubmitJob"。</li><li>“TASK_INSTANCE_FAILED_INTERRUPTED”任务实例失败保留实例适用于"SubmitJob"。</li><li>“COMPUTE_ENV_CREATED”计算环境已创建适用于"CreateComputeEnv"。</li><li>“COMPUTE_ENV_DELETED”计算环境已删除适用于"CreateComputeEnv"。</li><li>“COMPUTE_NODE_CREATED”计算节点已创建适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_CREATION_FAILED”计算节点创建失败适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_RUNNING”计算节点运行中适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_ABNORMAL”计算节点异常适用于"CreateComputeEnv"和"SubmitJob"。</li><li>“COMPUTE_NODE_DELETING”计算节点已删除适用于"CreateComputeEnv"和"SubmitJob"。</li>
/// </summary>
[JsonProperty("EventName")]
public string EventName{ get; set; }
/// <summary>
/// 自定义键值对
/// </summary>
[JsonProperty("EventVars")]
public EventVar[] EventVars{ 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 + "EventName", this.EventName);
this.SetParamArrayObj(map, prefix + "EventVars.", this.EventVars);
}
}
}