Class TrafficConfig


  • public class TrafficConfig
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Optional<Boolean> latestRevision
      LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target.
      (package private) Optional<Long> percent
      Percent indicates that percentage based routing should be used and the value indicates the percent of traffic that is to be routed to this Revision or Configuration.
      (package private) Optional<String> revisionName
      RevisionName of a specific revision to which to send this portion of traffic.
      (package private) Optional<String> tag
      Tag is optionally used to expose a dedicated url for referencing this target exclusively.
    • Constructor Summary

      Constructors 
      Constructor Description
      TrafficConfig()  
    • Field Detail

      • tag

        @ConfigItem
        Optional<String> tag
        Tag is optionally used to expose a dedicated url for referencing this target exclusively.
      • revisionName

        @ConfigItem
        Optional<String> revisionName
        RevisionName of a specific revision to which to send this portion of traffic.
      • latestRevision

        @ConfigItem(defaultValue="false")
        Optional<Boolean> latestRevision
        LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty.
      • percent

        @ConfigItem(defaultValue="100")
        Optional<Long> percent
        Percent indicates that percentage based routing should be used and the value indicates the percent of traffic that is to be routed to this Revision or Configuration. `0` (zero) mean no traffic, `100` means all traffic.
    • Constructor Detail

      • TrafficConfig

        public TrafficConfig()