Class: Google::Cloud::Ces::V1beta::ExperimentConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/ces/v1beta/deployment.rb

Overview

Experiment for the deployment.

Defined Under Namespace

Modules: State Classes: VersionRelease

Instance Attribute Summary collapse

Instance Attribute Details

#version_release::Google::Cloud::Ces::V1beta::ExperimentConfig::VersionRelease

Returns Optional. Version release for the experiment.

Returns:



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'proto_docs/google/cloud/ces/v1beta/deployment.rb', line 28

class ExperimentConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Version release for the experiment.
  # @!attribute [rw] state
  #   @return [::Google::Cloud::Ces::V1beta::ExperimentConfig::State]
  #     Optional. State of the version release.
  # @!attribute [rw] traffic_allocations
  #   @return [::Array<::Google::Cloud::Ces::V1beta::ExperimentConfig::VersionRelease::TrafficAllocation>]
  #     Optional. Traffic allocations for the version release.
  class VersionRelease
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Traffic allocation for the version release.
    # @!attribute [rw] id
    #   @return [::String]
    #     Optional. Id of the traffic allocation.
    #     Free format string, up to 128 characters.
    # @!attribute [rw] traffic_percentage
    #   @return [::Integer]
    #     Optional. Traffic percentage of the traffic allocation.
    #     Must be between 0 and 100.
    # @!attribute [rw] app_version
    #   @return [::String]
    #     Optional. App version of the traffic allocation.
    #     Format:
    #     `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
    class TrafficAllocation
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # State of the experiment.
  module State
    # Unspecified state.
    STATE_UNSPECIFIED = 0

    # Pending state. Experiment is pending and not valid.
    PENDING = 1

    # Running state. Experiment is running and valid.
    RUNNING = 2

    # Done state. Experiment is done and no longer valid.
    DONE = 3

    # Expired state. Experiment is expired and no longer valid.
    EXPIRED = 4
  end
end