SyslogDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. SyslogDataSource
- com.
Implements
public final class SyslogDataSource
implements JsonSerializable<SyslogDataSource>
Definition of which syslog data will be collected and how it will be collected. Only collected from Linux machines.
Constructor Summary
Constructor | Description |
---|---|
SyslogDataSource() |
Creates an instance of Syslog |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Known |
facilityNames()
Get the facility |
static
Syslog |
fromJson(JsonReader jsonReader)
Reads an instance of Syslog |
List<Known |
logLevels()
Get the log |
String |
name()
Get the name property: A friendly name for the data source. |
List<Known |
streams()
Get the streams property: List of streams that this data source will be sent to. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Syslog |
withFacilityNames(List<KnownSyslogDataSourceFacilityNames> facilityNames)
Set the facility |
Syslog |
withLogLevels(List<KnownSyslogDataSourceLogLevels> logLevels)
Set the log |
Syslog |
withName(String name)
Set the name property: A friendly name for the data source. |
Syslog |
withStreams(List<KnownSyslogDataSourceStreams> streams)
Set the streams property: List of streams that this data source will be sent to. |
Methods inherited from java.lang.Object
Constructor Details
SyslogDataSource
public SyslogDataSource()
Creates an instance of SyslogDataSource class.
Method Details
facilityNames
public List
Get the facilityNames property: The list of facility names.
Returns:
fromJson
public static SyslogDataSource fromJson(JsonReader jsonReader)
Reads an instance of SyslogDataSource from the JsonReader.
Parameters:
Returns:
Throws:
logLevels
public List
Get the logLevels property: The log levels to collect.
Returns:
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:
streams
public List
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:
toJson
validate
public void validate()
Validates the instance.
withFacilityNames
public SyslogDataSource withFacilityNames(List
Set the facilityNames property: The list of facility names.
Parameters:
Returns:
withLogLevels
public SyslogDataSource withLogLevels(List
Set the logLevels property: The log levels to collect.
Parameters:
Returns:
withName
public SyslogDataSource 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:
Returns:
withStreams
public SyslogDataSource withStreams(List
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:
Returns:
Applies to
Azure SDK for Java