LogFilesDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. LogFilesDataSource
- com.
Implements
public final class LogFilesDataSource
implements JsonSerializable<LogFilesDataSource>
Definition of which custom log files will be collected by this data collection rule.
Constructor Summary
Constructor | Description |
---|---|
LogFilesDataSource() |
Creates an instance of Log |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
filePatterns()
Get the file |
Known |
format()
Get the format property: The data format of the log files. |
static
Log |
fromJson(JsonReader jsonReader)
Reads an instance of Log |
String |
name()
Get the name property: A friendly name for the data source. |
Log |
settings()
Get the settings property: The log files specific settings. |
List<String> |
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. |
Log |
withFilePatterns(List<String> filePatterns)
Set the file |
Log |
withFormat(KnownLogFilesDataSourceFormat format)
Set the format property: The data format of the log files. |
Log |
withName(String name)
Set the name property: A friendly name for the data source. |
Log |
withSettings(LogFilesDataSourceSettings settings)
Set the settings property: The log files specific settings. |
Log |
withStreams(List<String> streams)
Set the streams property: List of streams that this data source will be sent to. |
Methods inherited from java.lang.Object
Constructor Details
LogFilesDataSource
public LogFilesDataSource()
Creates an instance of LogFilesDataSource class.
Method Details
filePatterns
public List
Get the filePatterns property: File Patterns where the log files are located.
Returns:
format
public KnownLogFilesDataSourceFormat format()
Get the format property: The data format of the log files.
Returns:
fromJson
public static LogFilesDataSource fromJson(JsonReader jsonReader)
Reads an instance of LogFilesDataSource from the JsonReader.
Parameters:
Returns:
Throws:
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:
settings
public LogFilesDataSourceSettings settings()
Get the settings property: The log files specific settings.
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 source.
Returns:
toJson
validate
public void validate()
Validates the instance.
withFilePatterns
public LogFilesDataSource withFilePatterns(List
Set the filePatterns property: File Patterns where the log files are located.
Parameters:
Returns:
withFormat
public LogFilesDataSource withFormat(KnownLogFilesDataSourceFormat format)
Set the format property: The data format of the log files.
Parameters:
Returns:
withName
public LogFilesDataSource 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:
withSettings
public LogFilesDataSource withSettings(LogFilesDataSourceSettings settings)
Set the settings property: The log files specific settings.
Parameters:
Returns:
withStreams
public LogFilesDataSource 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 source.
Parameters:
Returns:
Applies to
Azure SDK for Java