/* * 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 { /// /// 事件类型,包括:
  • “JOB_RUNNING”:作业运行,适用于"SubmitJob"。
  • “JOB_SUCCEED”:作业成功,适用于"SubmitJob"。
  • “JOB_FAILED”:作业失败,适用于"SubmitJob"。
  • “JOB_FAILED_INTERRUPTED”:作业失败,保留实例,适用于"SubmitJob"。
  • “TASK_RUNNING”:任务运行,适用于"SubmitJob"。
  • “TASK_SUCCEED”:任务成功,适用于"SubmitJob"。
  • “TASK_FAILED”:任务失败,适用于"SubmitJob"。
  • “TASK_FAILED_INTERRUPTED”:任务失败,保留实例,适用于"SubmitJob"。
  • “TASK_INSTANCE_RUNNING”:任务实例运行,适用于"SubmitJob"。
  • “TASK_INSTANCE_SUCCEED”:任务实例成功,适用于"SubmitJob"。
  • “TASK_INSTANCE_FAILED”:任务实例失败,适用于"SubmitJob"。
  • “TASK_INSTANCE_FAILED_INTERRUPTED”:任务实例失败,保留实例,适用于"SubmitJob"。
  • “COMPUTE_ENV_CREATED”:计算环境已创建,适用于"CreateComputeEnv"。
  • “COMPUTE_ENV_DELETED”:计算环境已删除,适用于"CreateComputeEnv"。
  • “COMPUTE_NODE_CREATED”:计算节点已创建,适用于"CreateComputeEnv"和"SubmitJob"。
  • “COMPUTE_NODE_CREATION_FAILED”:计算节点创建失败,适用于"CreateComputeEnv"和"SubmitJob"。
  • “COMPUTE_NODE_RUNNING”:计算节点运行中,适用于"CreateComputeEnv"和"SubmitJob"。
  • “COMPUTE_NODE_ABNORMAL”:计算节点异常,适用于"CreateComputeEnv"和"SubmitJob"。
  • “COMPUTE_NODE_DELETING”:计算节点已删除,适用于"CreateComputeEnv"和"SubmitJob"。
  • ///
    [JsonProperty("EventName")] public string EventName{ get; set; } /// /// 自定义键值对 /// [JsonProperty("EventVars")] public EventVar[] EventVars{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "EventName", this.EventName); this.SetParamArrayObj(map, prefix + "EventVars.", this.EventVars); } } }