Class SearchMetadata

java.lang.Object
com.azure.resourcemanager.loganalytics.models.SearchMetadata
All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchMetadata>

public final class SearchMetadata extends Object implements com.azure.json.JsonSerializable<SearchMetadata>
Metadata for search results.
  • Method Details

    • searchId

      public String searchId()
      Get the searchId property: The request id of the search.
      Returns:
      the searchId value.
    • resultType

      public String resultType()
      Get the resultType property: The search result type.
      Returns:
      the resultType value.
    • total

      public Long total()
      Get the total property: The total number of search results.
      Returns:
      the total value.
    • top

      public Long top()
      Get the top property: The number of top search results.
      Returns:
      the top value.
    • id

      public String id()
      Get the id property: The id of the search results request.
      Returns:
      the id value.
    • coreSummaries

      public List<CoreSummary> coreSummaries()
      Get the coreSummaries property: The core summaries.
      Returns:
      the coreSummaries value.
    • status

      public String status()
      Get the status property: The status of the search results.
      Returns:
      the status value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The start time for the search.
      Returns:
      the startTime value.
    • lastUpdated

      public OffsetDateTime lastUpdated()
      Get the lastUpdated property: The time of last update.
      Returns:
      the lastUpdated value.
    • etag

      public String etag()
      Get the etag property: The ETag of the search results.
      Returns:
      the etag value.
    • sort

      public List<SearchSort> sort()
      Get the sort property: How the results are sorted.
      Returns:
      the sort value.
    • requestTime

      public Long requestTime()
      Get the requestTime property: The request time.
      Returns:
      the requestTime value.
    • aggregatedValueField

      public String aggregatedValueField()
      Get the aggregatedValueField property: The aggregated value field.
      Returns:
      the aggregatedValueField value.
    • aggregatedGroupingFields

      public String aggregatedGroupingFields()
      Get the aggregatedGroupingFields property: The aggregated grouping fields.
      Returns:
      the aggregatedGroupingFields value.
    • sum

      public Long sum()
      Get the sum property: The sum of all aggregates returned in the result set.
      Returns:
      the sum value.
    • max

      public Long max()
      Get the max property: The max of all aggregates returned in the result set.
      Returns:
      the max value.
    • schema

      public SearchMetadataSchema schema()
      Get the schema property: The schema.
      Returns:
      the schema value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SearchMetadata>
      Throws:
      IOException
    • fromJson

      public static SearchMetadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SearchMetadata from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SearchMetadata if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SearchMetadata.