Compartilhar via


IisLogsDataSource Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.IisLogsDataSource

Implements

public final class IisLogsDataSource
implements JsonSerializable<IisLogsDataSource>

Enables IIS logs to be collected by this data collection rule.

Constructor Summary

Constructor Description
IisLogsDataSource()

Creates an instance of IisLogsDataSource class.

Method Summary

Modifier and Type Method and Description
static IisLogsDataSource fromJson(JsonReader jsonReader)

Reads an instance of IisLogsDataSource from the JsonReader.

List<String> logDirectories()

Get the logDirectories property: Absolute paths file location.

String name()

Get the name property: A friendly name for the data source.

List<String> streams()

Get the streams property: IIS streams.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IisLogsDataSource withLogDirectories(List<String> logDirectories)

Set the logDirectories property: Absolute paths file location.

IisLogsDataSource withName(String name)

Set the name property: A friendly name for the data source.

IisLogsDataSource withStreams(List<String> streams)

Set the streams property: IIS streams.

Methods inherited from java.lang.Object

Constructor Details

IisLogsDataSource

public IisLogsDataSource()

Creates an instance of IisLogsDataSource class.

Method Details

fromJson

public static IisLogsDataSource fromJson(JsonReader jsonReader)

Reads an instance of IisLogsDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

logDirectories

public List logDirectories()

Get the logDirectories property: Absolute paths file location.

Returns:

the logDirectories value.

name

public String name()

Get the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.

Returns:

the name value.

streams

public List streams()

Get the streams property: IIS streams.

Returns:

the streams value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLogDirectories

public IisLogsDataSource withLogDirectories(List logDirectories)

Set the logDirectories property: Absolute paths file location.

Parameters:

logDirectories - the logDirectories value to set.

Returns:

the IisLogsDataSource object itself.

withName

public IisLogsDataSource withName(String name)

Set the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.

Parameters:

name - the name value to set.

Returns:

the IisLogsDataSource object itself.

withStreams

public IisLogsDataSource withStreams(List streams)

Set the streams property: IIS streams.

Parameters:

streams - the streams value to set.

Returns:

the IisLogsDataSource object itself.

Applies to