Partager via


AnalysisData Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.AnalysisData

Implements

public final class AnalysisData
implements JsonSerializable<AnalysisData>

Class Representing Detector Evidence used for analysis.

Constructor Summary

Constructor Description
AnalysisData()

Creates an instance of AnalysisData class.

Method Summary

Modifier and Type Method and Description
List<List<NameValuePair>> data()

Get the data property: Additional Source Data.

DetectorDefinition detectorDefinition()

Get the detectorDefinition property: Detector Definition.

ResponseMetadata detectorMetadata()

Get the detectorMetadata property: Detector Meta Data.

static AnalysisData fromJson(JsonReader jsonReader)

Reads an instance of AnalysisData from the JsonReader.

List<DiagnosticMetricSet> metrics()

Get the metrics property: Source Metrics.

String source()

Get the source property: Name of the Detector.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AnalysisData withData(List<List<NameValuePair>> data)

Set the data property: Additional Source Data.

AnalysisData withDetectorDefinition(DetectorDefinition detectorDefinition)

Set the detectorDefinition property: Detector Definition.

AnalysisData withDetectorMetadata(ResponseMetadata detectorMetadata)

Set the detectorMetadata property: Detector Meta Data.

AnalysisData withMetrics(List<DiagnosticMetricSet> metrics)

Set the metrics property: Source Metrics.

AnalysisData withSource(String source)

Set the source property: Name of the Detector.

Methods inherited from java.lang.Object

Constructor Details

AnalysisData

public AnalysisData()

Creates an instance of AnalysisData class.

Method Details

data

public List> data()

Get the data property: Additional Source Data.

Returns:

the data value.

detectorDefinition

public DetectorDefinition detectorDefinition()

Get the detectorDefinition property: Detector Definition.

Returns:

the detectorDefinition value.

detectorMetadata

public ResponseMetadata detectorMetadata()

Get the detectorMetadata property: Detector Meta Data.

Returns:

the detectorMetadata value.

fromJson

public static AnalysisData fromJson(JsonReader jsonReader)

Reads an instance of AnalysisData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AnalysisData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AnalysisData.

metrics

public List metrics()

Get the metrics property: Source Metrics.

Returns:

the metrics value.

source

public String source()

Get the source property: Name of the Detector.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withData

public AnalysisData withData(List> data)

Set the data property: Additional Source Data.

Parameters:

data - the data value to set.

Returns:

the AnalysisData object itself.

withDetectorDefinition

public AnalysisData withDetectorDefinition(DetectorDefinition detectorDefinition)

Set the detectorDefinition property: Detector Definition.

Parameters:

detectorDefinition - the detectorDefinition value to set.

Returns:

the AnalysisData object itself.

withDetectorMetadata

public AnalysisData withDetectorMetadata(ResponseMetadata detectorMetadata)

Set the detectorMetadata property: Detector Meta Data.

Parameters:

detectorMetadata - the detectorMetadata value to set.

Returns:

the AnalysisData object itself.

withMetrics

public AnalysisData withMetrics(List metrics)

Set the metrics property: Source Metrics.

Parameters:

metrics - the metrics value to set.

Returns:

the AnalysisData object itself.

withSource

public AnalysisData withSource(String source)

Set the source property: Name of the Detector.

Parameters:

source - the source value to set.

Returns:

the AnalysisData object itself.

Applies to