Class Source
- java.lang.Object
-
- com.microsoft.azure.management.monitor.Source
-
public class Source extends Object
Specifies the log search query.
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>authorizedResources()Get list of Resource referred into query.StringdataSourceId()Get the resource uri over which log search query is to be run.Stringquery()Get log search query.QueryTypequeryType()Get set value to 'ResultCount'.SourcewithAuthorizedResources(List<String> authorizedResources)Set list of Resource referred into query.SourcewithDataSourceId(String dataSourceId)Set the resource uri over which log search query is to be run.SourcewithQuery(String query)Set log search query.SourcewithQueryType(QueryType queryType)Set set value to 'ResultCount'.
-
-
-
Method Detail
-
query
public String query()
Get log search query.- Returns:
- the query value
-
withQuery
public Source withQuery(String query)
Set log search query.- Parameters:
query- the query value to set- Returns:
- the Source object itself.
-
authorizedResources
public List<String> authorizedResources()
Get list of Resource referred into query.- Returns:
- the authorizedResources value
-
withAuthorizedResources
public Source withAuthorizedResources(List<String> authorizedResources)
Set list of Resource referred into query.- Parameters:
authorizedResources- the authorizedResources value to set- Returns:
- the Source object itself.
-
dataSourceId
public String dataSourceId()
Get the resource uri over which log search query is to be run.- Returns:
- the dataSourceId value
-
withDataSourceId
public Source withDataSourceId(String dataSourceId)
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
public QueryType queryType()
Get set value to 'ResultCount'. Possible values include: 'ResultCount'.- Returns:
- the queryType value
-
-