Share via


LogFilesDataSource Class

Definition

Definition of which custom log files will be collected by this data collection rule

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.LogFilesDataSourceTypeConverter))]
public class LogFilesDataSource : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ILogFilesDataSource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.LogFilesDataSourceTypeConverter))>]
type LogFilesDataSource = class
    interface ILogFilesDataSource
    interface IJsonSerializable
Public Class LogFilesDataSource
Implements ILogFilesDataSource
Inheritance
LogFilesDataSource
Attributes
Implements

Constructors

LogFilesDataSource()

Creates an new LogFilesDataSource instance.

Properties

FilePattern

File Patterns where the log files are located

Format

The data format of the log files

Name

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

SettingTextRecordStartTimestampFormat

One of the supported timestamp formats

Stream

List of streams that this data source will be sent to. A stream indicates what schema will be used for this data source

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of LogFilesDataSource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of LogFilesDataSource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ILogFilesDataSource.

FromJsonString(String)

Creates a new instance of LogFilesDataSource, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of LogFilesDataSource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to