Class SearchMetadata
java.lang.Object
com.azure.resourcemanager.loganalytics.models.SearchMetadata
Metadata for search results.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregatedGroupingFields property: The aggregated grouping fields.Get the aggregatedValueField property: The aggregated value field.Get the coreSummaries property: The core summaries.etag()
Get the etag property: The ETag of the search results.id()
Get the id property: The id of the search results request.Get the lastUpdated property: The time of last update.max()
Get the max property: The max of all aggregates returned in the result set.Get the requestTime property: The request time.Get the resultType property: The search result type.schema()
Get the schema property: The schema.searchId()
Get the searchId property: The request id of the search.sort()
Get the sort property: How the results are sorted.Get the startTime property: The start time for the search.status()
Get the status property: The status of the search results.sum()
Get the sum property: The sum of all aggregates returned in the result set.top()
Get the top property: The number of top search results.total()
Get the total property: The total number of search results.void
validate()
Validates the instance.withAggregatedGroupingFields
(String aggregatedGroupingFields) Set the aggregatedGroupingFields property: The aggregated grouping fields.withAggregatedValueField
(String aggregatedValueField) Set the aggregatedValueField property: The aggregated value field.withCoreSummaries
(List<CoreSummary> coreSummaries) Set the coreSummaries property: The core summaries.Set the etag property: The ETag of the search results.Set the id property: The id of the search results request.withLastUpdated
(OffsetDateTime lastUpdated) Set the lastUpdated property: The time of last update.Set the max property: The max of all aggregates returned in the result set.withRequestTime
(Long requestTime) Set the requestTime property: The request time.withResultType
(String resultType) Set the resultType property: The search result type.withSchema
(SearchMetadataSchema schema) Set the schema property: The schema.withSearchId
(String searchId) Set the searchId property: The request id of the search.withSort
(List<SearchSort> sort) Set the sort property: How the results are sorted.withStartTime
(OffsetDateTime startTime) Set the startTime property: The start time for the search.withStatus
(String status) Set the status property: The status of the search results.Set the sum property: The sum of all aggregates returned in the result set.Set the top property: The number of top search results.Set the total property: The total number of search results.
-
Constructor Details
-
SearchMetadata
public SearchMetadata()
-
-
Method Details
-
searchId
Get the searchId property: The request id of the search.- Returns:
- the searchId value.
-
withSearchId
Set the searchId property: The request id of the search.- Parameters:
searchId
- the searchId value to set.- Returns:
- the SearchMetadata object itself.
-
resultType
Get the resultType property: The search result type.- Returns:
- the resultType value.
-
withResultType
Set the resultType property: The search result type.- Parameters:
resultType
- the resultType value to set.- Returns:
- the SearchMetadata object itself.
-
total
Get the total property: The total number of search results.- Returns:
- the total value.
-
withTotal
Set the total property: The total number of search results.- Parameters:
total
- the total value to set.- Returns:
- the SearchMetadata object itself.
-
top
Get the top property: The number of top search results.- Returns:
- the top value.
-
withTop
Set the top property: The number of top search results.- Parameters:
top
- the top value to set.- Returns:
- the SearchMetadata object itself.
-
id
Get the id property: The id of the search results request.- Returns:
- the id value.
-
withId
Set the id property: The id of the search results request.- Parameters:
id
- the id value to set.- Returns:
- the SearchMetadata object itself.
-
coreSummaries
Get the coreSummaries property: The core summaries.- Returns:
- the coreSummaries value.
-
withCoreSummaries
Set the coreSummaries property: The core summaries.- Parameters:
coreSummaries
- the coreSummaries value to set.- Returns:
- the SearchMetadata object itself.
-
status
Get the status property: The status of the search results.- Returns:
- the status value.
-
withStatus
Set the status property: The status of the search results.- Parameters:
status
- the status value to set.- Returns:
- the SearchMetadata object itself.
-
startTime
Get the startTime property: The start time for the search.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The start time for the search.- Parameters:
startTime
- the startTime value to set.- Returns:
- the SearchMetadata object itself.
-
lastUpdated
Get the lastUpdated property: The time of last update.- Returns:
- the lastUpdated value.
-
withLastUpdated
Set the lastUpdated property: The time of last update.- Parameters:
lastUpdated
- the lastUpdated value to set.- Returns:
- the SearchMetadata object itself.
-
etag
Get the etag property: The ETag of the search results.- Returns:
- the etag value.
-
withEtag
Set the etag property: The ETag of the search results.- Parameters:
etag
- the etag value to set.- Returns:
- the SearchMetadata object itself.
-
sort
Get the sort property: How the results are sorted.- Returns:
- the sort value.
-
withSort
Set the sort property: How the results are sorted.- Parameters:
sort
- the sort value to set.- Returns:
- the SearchMetadata object itself.
-
requestTime
Get the requestTime property: The request time.- Returns:
- the requestTime value.
-
withRequestTime
Set the requestTime property: The request time.- Parameters:
requestTime
- the requestTime value to set.- Returns:
- the SearchMetadata object itself.
-
aggregatedValueField
Get the aggregatedValueField property: The aggregated value field.- Returns:
- the aggregatedValueField value.
-
withAggregatedValueField
Set the aggregatedValueField property: The aggregated value field.- Parameters:
aggregatedValueField
- the aggregatedValueField value to set.- Returns:
- the SearchMetadata object itself.
-
aggregatedGroupingFields
Get the aggregatedGroupingFields property: The aggregated grouping fields.- Returns:
- the aggregatedGroupingFields value.
-
withAggregatedGroupingFields
Set the aggregatedGroupingFields property: The aggregated grouping fields.- Parameters:
aggregatedGroupingFields
- the aggregatedGroupingFields value to set.- Returns:
- the SearchMetadata object itself.
-
sum
Get the sum property: The sum of all aggregates returned in the result set.- Returns:
- the sum value.
-
withSum
Set the sum property: The sum of all aggregates returned in the result set.- Parameters:
sum
- the sum value to set.- Returns:
- the SearchMetadata object itself.
-
max
Get the max property: The max of all aggregates returned in the result set.- Returns:
- the max value.
-
withMax
Set the max property: The max of all aggregates returned in the result set.- Parameters:
max
- the max value to set.- Returns:
- the SearchMetadata object itself.
-
schema
Get the schema property: The schema.- Returns:
- the schema value.
-
withSchema
Set the schema property: The schema.- Parameters:
schema
- the schema value to set.- Returns:
- the SearchMetadata object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-