Class IisLogsDataSource
java.lang.Object
com.azure.resourcemanager.monitor.models.IisLogsDataSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IisLogsDataSource>
public final class IisLogsDataSource
extends Object
implements com.azure.json.JsonSerializable<IisLogsDataSource>
Enables IIS logs to be collected by this data collection rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IisLogsDataSource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of IisLogsDataSource from the JsonReader.Get the logDirectories property: Absolute paths file location.name()
Get the name property: A friendly name for the data source.streams()
Get the streams property: IIS streams.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withLogDirectories
(List<String> logDirectories) Set the logDirectories property: Absolute paths file location.Set the name property: A friendly name for the data source.withStreams
(List<String> streams) Set the streams property: IIS streams.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
IisLogsDataSource
public IisLogsDataSource()Creates an instance of IisLogsDataSource class.
-
-
Method Details
-
streams
Get the streams property: IIS streams.- Returns:
- the streams value.
-
withStreams
Set the streams property: IIS streams.- Parameters:
streams
- the streams value to set.- Returns:
- the IisLogsDataSource object itself.
-
logDirectories
Get the logDirectories property: Absolute paths file location.- Returns:
- the logDirectories value.
-
withLogDirectories
Set the logDirectories property: Absolute paths file location.- Parameters:
logDirectories
- the logDirectories value to set.- Returns:
- the IisLogsDataSource object itself.
-
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.
-
withName
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<IisLogsDataSource>
- Throws:
IOException
-
fromJson
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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the IisLogsDataSource.
-