Class ModelInfo

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

public final class ModelInfo extends Object
Training result of a model including its status, errors and diagnostics information.
  • 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

    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • getAlignPolicy

      public AlignPolicy getAlignPolicy()
      Get the alignPolicy property: An optional field, indicating the manner to align multiple variables.
      Returns:
      the alignPolicy 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.
    • getStatus

      public ModelStatus getStatus()
      Get the status property: Model status. One of CREATED, RUNNING, READY, and FAILED.
      Returns:
      the status value.
    • 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.
    • getErrors

      public List<ErrorResponse> getErrors()
      Get the errors property: Error messages when failed to create a model.
      Returns:
      the errors value.
    • getDiagnosticsInfo

      public DiagnosticsInfo getDiagnosticsInfo()
      Get the diagnosticsInfo property: Diagnostics information to help inspect the states of model or variable.
      Returns:
      the diagnosticsInfo value.
    • 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.