Compartilhar via


ModelInfo Class

  • java.lang.Object
    • com.azure.ai.anomalydetector.models.ModelInfo

public final class ModelInfo

Training result of a model including its status, errors and diagnostics information.

Constructor Summary

Constructor Description
ModelInfo(String dataSource, OffsetDateTime startTime, OffsetDateTime endTime)

Creates an instance of ModelInfo class.

Method Summary

Modifier and Type Method and Description
AlignPolicy getAlignPolicy()

Get the alignPolicy property: An optional field, indicating the manner to align multiple variables.

DataSchema getDataSchema()

Get the dataSchema property: Data schema of input data source: OneTable or MultiTable.

String 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.

DiagnosticsInfo getDiagnosticsInfo()

Get the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.

String getDisplayName()

Get the displayName property: An optional field.

OffsetDateTime getEndTime()

Get the endTime property: A required field, indicating the end time of training data, which should be date-time of ISO 8601 format.

List<ErrorResponse> getErrors()

Get the errors property: Error messages when failed to create a model.

Integer 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.

OffsetDateTime getStartTime()

Get the startTime property: A required field, indicating the start time of training data, which should be date-time of ISO 8601 format.

ModelStatus getStatus()

Get the status property: Model status.

ModelInfo setAlignPolicy(AlignPolicy alignPolicy)

Set the alignPolicy property: An optional field, indicating the manner to align multiple variables.

ModelInfo setDataSchema(DataSchema dataSchema)

Set the dataSchema property: Data schema of input data source: OneTable or MultiTable.

ModelInfo setDiagnosticsInfo(DiagnosticsInfo diagnosticsInfo)

Set the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.

ModelInfo setDisplayName(String displayName)

Set the displayName property: An optional field.

ModelInfo 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.

ModelInfo setStatus(ModelStatus status)

Set the status property: Model status.

Methods inherited from java.lang.Object

Constructor Details

ModelInfo

public ModelInfo(String dataSource, OffsetDateTime startTime, OffsetDateTime endTime)

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

getAlignPolicy

public AlignPolicy getAlignPolicy()

Get the alignPolicy property: An optional field, indicating the manner to align multiple variables.

Returns:

the alignPolicy value.

getDataSchema

public DataSchema getDataSchema()

Get the dataSchema property: Data schema of input data source: OneTable or MultiTable. The default DataSchema is OneTable.

Returns:

the dataSchema value.

getDataSource

public String 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.

getDiagnosticsInfo

public DiagnosticsInfo getDiagnosticsInfo()

Get the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.

Returns:

the diagnosticsInfo value.

getDisplayName

public String getDisplayName()

Get the displayName property: An optional field. The display name of the model whose maximum length is 24 characters.

Returns:

the displayName value.

getEndTime

public OffsetDateTime 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.

getErrors

public List getErrors()

Get the errors property: Error messages when failed to create a model.

Returns:

the errors value.

getSlidingWindow

public Integer 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.

getStartTime

public OffsetDateTime 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.

getStatus

public ModelStatus getStatus()

Get the status property: Model status. One of CREATED, RUNNING, READY, and FAILED.

Returns:

the status value.

setAlignPolicy

public ModelInfo setAlignPolicy(AlignPolicy alignPolicy)

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.

setDataSchema

public ModelInfo setDataSchema(DataSchema dataSchema)

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.

setDiagnosticsInfo

public ModelInfo setDiagnosticsInfo(DiagnosticsInfo diagnosticsInfo)

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.

setDisplayName

public ModelInfo setDisplayName(String displayName)

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.

setSlidingWindow

public ModelInfo 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.

Parameters:

slidingWindow - the slidingWindow value to set.

Returns:

the ModelInfo object itself.

setStatus

public ModelInfo setStatus(ModelStatus status)

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.

Applies to