Class Analytics


  • public class Analytics
    extends Object
    Allows you to group/tag requests for analytics
    • Constructor Detail

      • Analytics

        public Analytics()
    • Method Detail

      • addTag

        public Analytics addTag​(@Max(64L)
                                @Max(64L) String tag)
        Add a tag to the request
        Parameters:
        tag - The tag to add. Maximum length of 64
        Returns:
        The Analytics object
      • withTags

        public Analytics withTags​(String... tags)
        Submit tags with the analytics parameter. Tags can be used to enrich each query with unique information. Once added, a tag cannot be removed. Supports arrays.
        Parameters:
        tags - Array of strings representing the tags you’d like to apply to the query. You may submit up to 16 tags, and each may be up to 64 characters in length.
        Returns:
        the tags
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getTags

        public Set<String> getTags()
        Submit tags with the analytics parameter. Tags can be used to enrich each query with unique information. Once added, a tag cannot be removed. Supports arrays.
        Returns:
        the tags
      • setTags

        public Analytics setTags​(Set<String> tags)
        Submit tags with the analytics parameter. Tags can be used to enrich each query with unique information. Once added, a tag cannot be removed. Supports arrays.
        Parameters:
        tags - Array of strings representing the tags you’d like to apply to the query. You may submit up to 16 tags, and each may be up to 64 characters in length.
        Returns:
        this.