你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChaosScheduleJob 类

定义

表示何时以及如何运行 Chaos 的规则。

[System.Runtime.Serialization.DataContract]
[System.Serializable]
public sealed class ChaosScheduleJob : System.Fabric.ByteSerializable
[<System.Runtime.Serialization.DataContract>]
[<System.Serializable>]
type ChaosScheduleJob = class
    inherit ByteSerializable
Public NotInheritable Class ChaosScheduleJob
Inherits ByteSerializable
继承
ChaosScheduleJob
属性

构造函数

ChaosScheduleJob(String, ChaosScheduleJobActiveDays, List<ChaosScheduleTimeRangeUtc>)

初始化 ChaosScheduleJob 类的新实例。

属性

ChaosParameters

获取对 中存储的 ChaosSchedule的命名引用ChaosParameters。 此作业定义的 Chaos 的自动运行将使用这些参数运行。

Days

获取此 ChaosScheduleJobActiveDays 作业将自动启动 Chaos 运行的天数。

Times

获取表示一天中将计划运行混沌测试的时间范围的列表 ChaosScheduleTimeRangeUtc 。 时间范围被视为 UTC 时间。

方法

FromBytes(Byte[])

这是从字节数组中掩盖对象的默认实现

(继承自 ByteSerializable)
Read(BinaryReader)

从字节数组中读取此对象的状态。

ToBytes()

这是将对象转换为字节数组的默认实现

(继承自 ByteSerializable)
ToString()

获取 ChaosStatus 对象的字符串表示形式。

Write(BinaryWriter)

将此 对象的状态写入字节数组。

适用于