Class ChartUsageStatistics

  • All Implemented Interfaces:
    OneOfEnvelopedAspectValue, OneOfGenericAspectValue

    @Validated
    @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
               date="2022-10-18T12:49:45.903581Z[Etc/UTC]")
    public class ChartUsageStatistics
    extends java.lang.Object
    implements OneOfEnvelopedAspectValue, OneOfGenericAspectValue
    Experimental (Subject to breaking change) -- Stats corresponding to chart's usage. If this aspect represents the latest snapshot of the statistics about a Chart, the eventGranularity field should be null. If this aspect represents a bucketed window of usage statistics (e.g. over a day), then the eventGranularity field should be set accordingly.
    • Constructor Detail

      • ChartUsageStatistics

        public ChartUsageStatistics()
    • Method Detail

      • get__type

        @NotNull
        public @NotNull java.lang.String get__type()
        Name of this subclass in SimpleClassName format
        Returns:
        __type
      • getTimestampMillis

        @NotNull
        @Min(-9223372036854775808L)
        @Max(9223372036854775807L)
        public @NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getTimestampMillis()
        The event timestamp field as epoch at UTC in milli seconds. minimum: -9223372036854775808 maximum: 9223372036854775807
        Returns:
        timestampMillis
      • setTimestampMillis

        public void setTimestampMillis​(java.lang.Long timestampMillis)
      • getEventGranularity

        @Valid
        public @Valid TimeWindowSize getEventGranularity()
        Get eventGranularity
        Returns:
        eventGranularity
      • setEventGranularity

        public void setEventGranularity​(TimeWindowSize eventGranularity)
      • getPartitionSpec

        @NotNull
        @Valid
        public @NotNull @Valid PartitionSpec getPartitionSpec()
        Get partitionSpec
        Returns:
        partitionSpec
      • setPartitionSpec

        public void setPartitionSpec​(PartitionSpec partitionSpec)
      • getMessageId

        public java.lang.String getMessageId()
        The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value.
        Returns:
        messageId
      • setMessageId

        public void setMessageId​(java.lang.String messageId)
      • getViewsCount

        @Min(-2147483648L)
        @Max(2147483647L)
        public @Min(-2147483648L) @Max(2147483647L) java.lang.Integer getViewsCount()
        The total number of times chart has been viewed minimum: -2147483648 maximum: 2147483647
        Returns:
        viewsCount
      • setViewsCount

        public void setViewsCount​(java.lang.Integer viewsCount)
      • uniqueUserCount

        public ChartUsageStatistics uniqueUserCount​(java.lang.Integer uniqueUserCount)
      • getUniqueUserCount

        @Min(-2147483648L)
        @Max(2147483647L)
        public @Min(-2147483648L) @Max(2147483647L) java.lang.Integer getUniqueUserCount()
        Unique user count minimum: -2147483648 maximum: 2147483647
        Returns:
        uniqueUserCount
      • setUniqueUserCount

        public void setUniqueUserCount​(java.lang.Integer uniqueUserCount)
      • getUserCounts

        @Valid
        public @Valid java.util.List<ChartUserUsageCounts> getUserCounts()
        Users within this bucket, with frequency counts
        Returns:
        userCounts
      • 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