Class SyslogDataSource
java.lang.Object
com.azure.resourcemanager.monitor.models.SyslogDataSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SyslogDataSource>
public final class SyslogDataSource
extends Object
implements com.azure.json.JsonSerializable<SyslogDataSource>
Definition of which syslog data will be collected and how it will be collected.
Only collected from Linux machines.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the facilityNames property: The list of facility names.static SyslogDataSource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SyslogDataSource from the JsonReader.Get the logLevels property: The log levels to collect.name()
Get the name property: A friendly name for the data source.streams()
Get the streams property: List of streams that this data source will be sent to.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withFacilityNames
(List<KnownSyslogDataSourceFacilityNames> facilityNames) Set the facilityNames property: The list of facility names.withLogLevels
(List<KnownSyslogDataSourceLogLevels> logLevels) Set the logLevels property: The log levels to collect.Set the name property: A friendly name for the data source.withStreams
(List<KnownSyslogDataSourceStreams> streams) Set the streams property: List of streams that this data source will be sent to.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
-
SyslogDataSource
public SyslogDataSource()Creates an instance of SyslogDataSource class.
-
-
Method Details
-
streams
Get the streams property: List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.- Returns:
- the streams value.
-
withStreams
Set the streams property: List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.- Parameters:
streams
- the streams value to set.- Returns:
- the SyslogDataSource object itself.
-
facilityNames
Get the facilityNames property: The list of facility names.- Returns:
- the facilityNames value.
-
withFacilityNames
Set the facilityNames property: The list of facility names.- Parameters:
facilityNames
- the facilityNames value to set.- Returns:
- the SyslogDataSource object itself.
-
logLevels
Get the logLevels property: The log levels to collect.- Returns:
- the logLevels value.
-
withLogLevels
Set the logLevels property: The log levels to collect.- Parameters:
logLevels
- the logLevels value to set.- Returns:
- the SyslogDataSource 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 SyslogDataSource 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<SyslogDataSource>
- Throws:
IOException
-
fromJson
Reads an instance of SyslogDataSource from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SyslogDataSource 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 SyslogDataSource.
-