Class ModelStatus
The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. This data type is not supported in Vertex AI.
public record ModelStatus : IEquatable<ModelStatus>
- Inheritance
-
ModelStatus
- Implements
- Inherited Members
Properties
Message
A message explaining the model status.
[JsonPropertyName("message")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Message { get; set; }
Property Value
ModelStage
The stage of the underlying model.
[JsonPropertyName("modelStage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ModelStage? ModelStage { get; set; }
Property Value
RetirementTime
The time at which the model will be retired.
[JsonPropertyName("retirementTime")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTime? RetirementTime { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a ModelStatus object.
public static ModelStatus? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ModelStatus
The deserialized ModelStatus object, or null if deserialization fails.