Class ExpandedMetric


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2026-03-05T10:45:26.516033Z[Etc/UTC]",
               comments="Generator version: 7.18.0")
    public class ExpandedMetric
    extends java.lang.Object
    Metric representation for Views API - contains only fields actually used by the Views service
    • Field Detail

      • SERIALIZED_NAME_KEY

        public static final java.lang.String SERIALIZED_NAME_KEY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CREATION_DATE

        public static final java.lang.String SERIALIZED_NAME_CREATION_DATE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_LAST_MODIFIED

        public static final java.lang.String SERIALIZED_NAME_LAST_MODIFIED
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_IS_ACTIVE

        public static final java.lang.String SERIALIZED_NAME_IS_ACTIVE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_EVENT_KEY

        public static final java.lang.String SERIALIZED_NAME_EVENT_KEY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ID

        public static final java.lang.String SERIALIZED_NAME_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_VERSION_ID

        public static final java.lang.String SERIALIZED_NAME_VERSION_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_KIND

        public static final java.lang.String SERIALIZED_NAME_KIND
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CATEGORY

        public static final java.lang.String SERIALIZED_NAME_CATEGORY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_DESCRIPTION

        public static final java.lang.String SERIALIZED_NAME_DESCRIPTION
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_IS_NUMERIC

        public static final java.lang.String SERIALIZED_NAME_IS_NUMERIC
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_LAST_SEEN

        public static final java.lang.String SERIALIZED_NAME_LAST_SEEN
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_LINKS

        public static final java.lang.String SERIALIZED_NAME_LINKS
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • ExpandedMetric

        public ExpandedMetric()
    • Method Detail

      • getKey

        @Nullable
        public java.lang.String getKey()
        A unique key used to reference the metric
        Returns:
        key
      • setKey

        public void setKey​(@Nullable
                           java.lang.String key)
      • name

        public ExpandedMetric name​(@Nullable
                                   java.lang.String name)
      • getName

        @Nullable
        public java.lang.String getName()
        A human-friendly name for the metric
        Returns:
        name
      • setName

        public void setName​(@Nullable
                            java.lang.String name)
      • creationDate

        public ExpandedMetric creationDate​(@Nullable
                                           java.lang.Long creationDate)
      • getCreationDate

        @Nullable
        public java.lang.Long getCreationDate()
        Creation date in milliseconds
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(@Nullable
                                    java.lang.Long creationDate)
      • lastModified

        public ExpandedMetric lastModified​(@Nullable
                                           java.lang.Long lastModified)
      • getLastModified

        @Nullable
        public java.lang.Long getLastModified()
        Last modification date in milliseconds
        Returns:
        lastModified
      • setLastModified

        public void setLastModified​(@Nullable
                                    java.lang.Long lastModified)
      • isActive

        public ExpandedMetric isActive​(@Nullable
                                       java.lang.Boolean isActive)
      • getIsActive

        @Nullable
        public java.lang.Boolean getIsActive()
        Whether the metric is active
        Returns:
        isActive
      • setIsActive

        public void setIsActive​(@Nullable
                                java.lang.Boolean isActive)
      • eventKey

        public ExpandedMetric eventKey​(@Nullable
                                       java.lang.String eventKey)
      • getEventKey

        @Nullable
        public java.lang.String getEventKey()
        Event key for the metric
        Returns:
        eventKey
      • setEventKey

        public void setEventKey​(@Nullable
                                java.lang.String eventKey)
      • getId

        @Nullable
        public java.lang.String getId()
        ID of the metric
        Returns:
        id
      • setId

        public void setId​(@Nullable
                          java.lang.String id)
      • versionId

        public ExpandedMetric versionId​(@Nullable
                                        java.lang.String versionId)
      • getVersionId

        @Nullable
        public java.lang.String getVersionId()
        Version ID of the metric
        Returns:
        versionId
      • setVersionId

        public void setVersionId​(@Nullable
                                 java.lang.String versionId)
      • kind

        public ExpandedMetric kind​(@Nullable
                                   java.lang.String kind)
      • getKind

        @Nullable
        public java.lang.String getKind()
        Kind of the Metric
        Returns:
        kind
      • setKind

        public void setKind​(@Nullable
                            java.lang.String kind)
      • category

        public ExpandedMetric category​(@Nullable
                                       java.lang.String category)
      • getCategory

        @Nullable
        public java.lang.String getCategory()
        Category of the Metric
        Returns:
        category
      • setCategory

        public void setCategory​(@Nullable
                                java.lang.String category)
      • description

        public ExpandedMetric description​(@Nullable
                                          java.lang.String description)
      • getDescription

        @Nullable
        public java.lang.String getDescription()
        Description of the Metric
        Returns:
        description
      • setDescription

        public void setDescription​(@Nullable
                                   java.lang.String description)
      • isNumeric

        public ExpandedMetric isNumeric​(@Nullable
                                        java.lang.Boolean isNumeric)
      • getIsNumeric

        @Nullable
        public java.lang.Boolean getIsNumeric()
        Get isNumeric
        Returns:
        isNumeric
      • setIsNumeric

        public void setIsNumeric​(@Nullable
                                 java.lang.Boolean isNumeric)
      • lastSeen

        public ExpandedMetric lastSeen​(@Nullable
                                       java.lang.Long lastSeen)
      • getLastSeen

        @Nullable
        public java.lang.Long getLastSeen()
        Last seen date in milliseconds
        Returns:
        lastSeen
      • setLastSeen

        public void setLastSeen​(@Nullable
                                java.lang.Long lastSeen)
      • putAdditionalProperty

        public ExpandedMetric putAdditionalProperty​(java.lang.String key,
                                                    java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the ExpandedMetric instance itself
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws java.io.IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        java.io.IOException - if the JSON Element is invalid with respect to ExpandedMetric
      • fromJson

        public static ExpandedMetric fromJson​(java.lang.String jsonString)
                                       throws java.io.IOException
        Create an instance of ExpandedMetric given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ExpandedMetric
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to ExpandedMetric
      • toJson

        public java.lang.String toJson()
        Convert an instance of ExpandedMetric to an JSON string
        Returns:
        JSON string