Class ModelInfo
java.lang.Object
com.azure.ai.anomalydetector.models.ModelInfo
Training result of a model including its status, errors and diagnostics information.
-
Constructor Summary
ConstructorDescriptionModelInfo
(String dataSource, OffsetDateTime startTime, OffsetDateTime endTime) Creates an instance of ModelInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the alignPolicy property: An optional field, indicating the manner to align multiple variables.Get the dataSchema property: Data schema of input data source: OneTable or MultiTable.Get the dataSource property: Source link to the input data to indicate an accessible Azure storage Uri, either pointed to an Azure blob storage folder, or pointed to a CSV file in Azure blob storage based on you data schema selection.Get the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.Get the displayName property: An optional field.Get the endTime property: A required field, indicating the end time of training data, which should be date-time of ISO 8601 format.Get the errors property: Error messages when failed to create a model.Get the slidingWindow property: An optional field, indicating how many previous timestamps will be used to detect whether the timestamp is anomaly or not.Get the startTime property: A required field, indicating the start time of training data, which should be date-time of ISO 8601 format.Get the status property: Model status.setAlignPolicy
(AlignPolicy alignPolicy) Set the alignPolicy property: An optional field, indicating the manner to align multiple variables.setDataSchema
(DataSchema dataSchema) Set the dataSchema property: Data schema of input data source: OneTable or MultiTable.setDiagnosticsInfo
(DiagnosticsInfo diagnosticsInfo) Set the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.setDisplayName
(String displayName) Set the displayName property: An optional field.setSlidingWindow
(Integer slidingWindow) Set the slidingWindow property: An optional field, indicating how many previous timestamps will be used to detect whether the timestamp is anomaly or not.setStatus
(ModelStatus status) Set the status property: Model status.
-
Constructor Details
-
ModelInfo
Creates an instance of ModelInfo class.- Parameters:
dataSource
- the dataSource value to set.startTime
- the startTime value to set.endTime
- the endTime value to set.
-
-
Method Details
-
getDataSource
Get the dataSource property: Source link to the input data to indicate an accessible Azure storage Uri, either pointed to an Azure blob storage folder, or pointed to a CSV file in Azure blob storage based on you data schema selection.- Returns:
- the dataSource value.
-
getDataSchema
Get the dataSchema property: Data schema of input data source: OneTable or MultiTable. The default DataSchema is OneTable.- Returns:
- the dataSchema value.
-
setDataSchema
Set the dataSchema property: Data schema of input data source: OneTable or MultiTable. The default DataSchema is OneTable.- Parameters:
dataSchema
- the dataSchema value to set.- Returns:
- the ModelInfo object itself.
-
getStartTime
Get the startTime property: A required field, indicating the start time of training data, which should be date-time of ISO 8601 format.- Returns:
- the startTime value.
-
getEndTime
Get the endTime property: A required field, indicating the end time of training data, which should be date-time of ISO 8601 format.- Returns:
- the endTime value.
-
getDisplayName
Get the displayName property: An optional field. The display name of the model whose maximum length is 24 characters.- Returns:
- the displayName value.
-
setDisplayName
Set the displayName property: An optional field. The display name of the model whose maximum length is 24 characters.- Parameters:
displayName
- the displayName value to set.- Returns:
- the ModelInfo object itself.
-
getSlidingWindow
Get the slidingWindow property: An optional field, indicating how many previous timestamps will be used to detect whether the timestamp is anomaly or not.- Returns:
- the slidingWindow value.
-
setSlidingWindow
Set the slidingWindow property: An optional field, indicating how many previous timestamps will be used to detect whether the timestamp is anomaly or not.- Parameters:
slidingWindow
- the slidingWindow value to set.- Returns:
- the ModelInfo object itself.
-
getAlignPolicy
Get the alignPolicy property: An optional field, indicating the manner to align multiple variables.- Returns:
- the alignPolicy value.
-
setAlignPolicy
Set the alignPolicy property: An optional field, indicating the manner to align multiple variables.- Parameters:
alignPolicy
- the alignPolicy value to set.- Returns:
- the ModelInfo object itself.
-
getStatus
Get the status property: Model status. One of CREATED, RUNNING, READY, and FAILED.- Returns:
- the status value.
-
setStatus
Set the status property: Model status. One of CREATED, RUNNING, READY, and FAILED.- Parameters:
status
- the status value to set.- Returns:
- the ModelInfo object itself.
-
getErrors
Get the errors property: Error messages when failed to create a model.- Returns:
- the errors value.
-
getDiagnosticsInfo
Get the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.- Returns:
- the diagnosticsInfo value.
-
setDiagnosticsInfo
Set the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.- Parameters:
diagnosticsInfo
- the diagnosticsInfo value to set.- Returns:
- the ModelInfo object itself.
-