lib/ff/ruby/server/sdk/connector/harness_connector.rb in ff-ruby-server-sdk-1.2.1 vs lib/ff/ruby/server/sdk/connector/harness_connector.rb in ff-ruby-server-sdk-1.3.1

- old
+ new

@@ -72,15 +72,14 @@ end def get_segments begin - return @api.get_all_segments( environment_uuid = @environment, - opts = get_query_params + opts = get_segment_query_params ) rescue OpenapiClient::ApiError => e log_error("get_all_segments", e) @@ -102,11 +101,11 @@ @api.get_segment_by_identifier( identifier = identifier, environment_uuid = @environment, - opts = get_query_params + opts = get_segment_query_params ) end def post_metrics(metrics) @@ -241,9 +240,19 @@ { :'query_params' => { :'cluster' => @cluster + } + } + end + + def get_segment_query_params + { + :'query_params' => { + + :'cluster' => @cluster, + :'rules' => 'v2' } } end def log_error(prefix, e) \ No newline at end of file