Class Source
Specifies the log search query.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class Source
Constructors
Source()
Initializes a new instance of the Source class.
Declaration
public Source ();
Source(String, String, IList<String>, String)
Initializes a new instance of the Source class.
Declaration
public Source (string dataSourceId, string query = null, System.Collections.Generic.IList<string> authorizedResources = null, string queryType = null);
Parameters
|
String
dataSourceId
The resource uri over which log search query is to be run. |
|
String
query
Log search query. Required for action type - AlertingAction |
|
IList<String>
authorizedResources
List of Resource referred into query |
|
String
queryType
Set value to 'ResultCount'. Possible values include: 'ResultCount' |
Properties
AuthorizedResources
Gets or sets list of Resource referred into query
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="authorizedResources")]
public System.Collections.Generic.IList<string> AuthorizedResources { get; set; }
Property Value
|
IList<String>
|
DataSourceId
Gets or sets the resource uri over which log search query is to be run.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="dataSourceId")]
public string DataSourceId { get; set; }
Property Value
|
String
|
Query
Gets or sets log search query. Required for action type - AlertingAction
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="query")]
public string Query { get; set; }
Property Value
|
String
|
QueryType
Gets or sets set value to 'ResultCount'. Possible values include: 'ResultCount'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="queryType")]
public string QueryType { get; set; }
Property Value
|
String
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |