Class RuleStatistics.Builder

  • Enclosing class:
    RuleStatistics

    public static final class RuleStatistics.Builder
    extends java.lang.Object
    Builder class for RuleStatistics.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of RuleStatistics.
    • Method Detail

      • setLinks

        public RuleStatistics.Builder setLinks​(java.util.List<ResourceLink> links)
        The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        links - New value for the property.
      • setSchema

        public RuleStatistics.Builder setSchema​(java.lang.String schema)
        Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        schema - New value for the property.
      • setByteCount

        public RuleStatistics.Builder setByteCount​(java.lang.Long byteCount)
        Aggregated number of bytes processed by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        byteCount - New value for the property.
      • setHitCount

        public RuleStatistics.Builder setHitCount​(java.lang.Long hitCount)
        Aggregated number of hits received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        hitCount - New value for the property.
      • setInternalRuleId

        public RuleStatistics.Builder setInternalRuleId​(java.lang.String internalRuleId)
        Realized id of the rule on NSX MP. Policy Manager can create more than one rule per policy rule, in which case this identifier helps to distinguish between the multple rules created. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        internalRuleId - New value for the property.
      • setL7AcceptCount

        public RuleStatistics.Builder setL7AcceptCount​(java.lang.Long l7AcceptCount)
        Aggregated number of L7 Profile Accepted counters received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        l7AcceptCount - New value for the property.
      • setL7RejectCount

        public RuleStatistics.Builder setL7RejectCount​(java.lang.Long l7RejectCount)
        Aggregated number of L7 Profile Rejected counters received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        l7RejectCount - New value for the property.
      • setL7RejectWithResponseCount

        public RuleStatistics.Builder setL7RejectWithResponseCount​(java.lang.Long l7RejectWithResponseCount)
        Aggregated number of L7 Profile Rejected with Response counters received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        l7RejectWithResponseCount - New value for the property.
      • setLrPath

        public RuleStatistics.Builder setLrPath​(java.lang.String lrPath)
        Path of the LR on which the section is applied in case of Edge FW. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        lrPath - New value for the property.
      • setMaxPopularityIndex

        public RuleStatistics.Builder setMaxPopularityIndex​(java.lang.Long maxPopularityIndex)
        Maximum value of popularity index of all rules of the type. This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        maxPopularityIndex - New value for the property.
      • setMaxSessionCount

        public RuleStatistics.Builder setMaxSessionCount​(java.lang.Long maxSessionCount)
        Maximum value of sessions count of all rules of the type. This is aggregated statistic which are computed with lower frequency compared to generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        maxSessionCount - New value for the property.
      • setPacketCount

        public RuleStatistics.Builder setPacketCount​(java.lang.Long packetCount)
        Aggregated number of packets processed by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        packetCount - New value for the property.
      • setPopularityIndex

        public RuleStatistics.Builder setPopularityIndex​(java.lang.Long popularityIndex)
        This is calculated by sessions count divided by age of the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        popularityIndex - New value for the property.
      • setRule

        public RuleStatistics.Builder setRule​(java.lang.String rule)
        Path of the rule. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        rule - New value for the property.
      • setSessionCount

        public RuleStatistics.Builder setSessionCount​(java.lang.Long sessionCount)
        Aggregated number of sessions processed by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        sessionCount - New value for the property.
      • setTotalSessionCount

        public RuleStatistics.Builder setTotalSessionCount​(java.lang.Long totalSessionCount)
        Aggregated number of sessions processed by all the rules This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        totalSessionCount - New value for the property.