API Reference
Class
BenchmarkRolloutPlanSerializer
Reads, writes, and verifies portable benchmark rollout plans.
Inheritance
- Object
- BenchmarkRolloutPlanSerializer
Methods
public static String CalculateHash(BenchmarkRolloutPlan plan) #Returns:
StringCalculates the canonical SHA-256 hash while excluding the mutable hash property.
Parameters
- plan TestimoX.Benchmarks.Deployment.BenchmarkRolloutPlan
public static BenchmarkRolloutPlan Deserialize(String json, Boolean verifyHash = true, String sourceName = null) #Returns:
BenchmarkRolloutPlanDeserializes and integrity-checks a rollout plan from JSON.
Parameters
- json System.String
- verifyHash System.Boolean = true
- sourceName System.String = null
public static BenchmarkRolloutPlan Load(String path, Boolean verifyHash = true) #Returns:
BenchmarkRolloutPlanLoads and integrity-checks a rollout plan.
Parameters
- path System.String
- verifyHash System.Boolean = true
public static Void Save(BenchmarkRolloutPlan plan, String path) #Returns:
VoidUpdates the plan hash and writes the plan atomically.
Parameters
- plan TestimoX.Benchmarks.Deployment.BenchmarkRolloutPlan
- path System.String
public static String Serialize(BenchmarkRolloutPlan plan) #Returns:
StringSerializes a rollout plan after refreshing its integrity hash.
Parameters
- plan TestimoX.Benchmarks.Deployment.BenchmarkRolloutPlan