Class Source
java.lang.Object
com.microsoft.azure.management.monitor.Source
Specifies the log search query.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet list of Resource referred into query.Get the resource uri over which log search query is to be run.query()
Get log search query.Get set value to 'ResultCount'.withAuthorizedResources
(List<String> authorizedResources) Set list of Resource referred into query.withDataSourceId
(String dataSourceId) Set the resource uri over which log search query is to be run.Set log search query.withQueryType
(QueryType queryType) Set set value to 'ResultCount'.
-
Constructor Details
-
Source
public Source()
-
-
Method Details
-
query
Get log search query. Required for action type - AlertingAction.- Returns:
- the query value
-
withQuery
Set log search query. Required for action type - AlertingAction.- Parameters:
query
- the query value to set- Returns:
- the Source object itself.
-
authorizedResources
Get list of Resource referred into query.- Returns:
- the authorizedResources value
-
withAuthorizedResources
Set list of Resource referred into query.- Parameters:
authorizedResources
- the authorizedResources value to set- Returns:
- the Source object itself.
-
dataSourceId
Get the resource uri over which log search query is to be run.- Returns:
- the dataSourceId value
-
withDataSourceId
Set the resource uri over which log search query is to be run.- Parameters:
dataSourceId
- the dataSourceId value to set- Returns:
- the Source object itself.
-
queryType
Get set value to 'ResultCount'. Possible values include: 'ResultCount'.- Returns:
- the queryType value
-
withQueryType
Set set value to 'ResultCount'. Possible values include: 'ResultCount'.- Parameters:
queryType
- the queryType value to set- Returns:
- the Source object itself.
-