Class: Aws::CloudWatchEvidently::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CloudWatchEvidently::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb
Overview
An API client for CloudWatchEvidently. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::CloudWatchEvidently::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#batch_evaluate_feature(params = {}) ⇒ Types::BatchEvaluateFeatureResponse
This operation assigns feature variation to user sessions.
-
#create_experiment(params = {}) ⇒ Types::CreateExperimentResponse
Creates an Evidently experiment.
-
#create_feature(params = {}) ⇒ Types::CreateFeatureResponse
Creates an Evidently feature that you want to launch or test.
-
#create_launch(params = {}) ⇒ Types::CreateLaunchResponse
Creates a launch of a given feature.
-
#create_project(params = {}) ⇒ Types::CreateProjectResponse
Creates a project, which is the logical object in Evidently that can contain features, launches, and experiments.
-
#delete_experiment(params = {}) ⇒ Struct
Deletes an Evidently experiment.
-
#delete_feature(params = {}) ⇒ Struct
Deletes an Evidently feature.
-
#delete_launch(params = {}) ⇒ Struct
Deletes an Evidently launch.
-
#delete_project(params = {}) ⇒ Struct
Deletes an Evidently project.
-
#evaluate_feature(params = {}) ⇒ Types::EvaluateFeatureResponse
This operation assigns a feature variation to one given user session.
-
#get_experiment(params = {}) ⇒ Types::GetExperimentResponse
Returns the details about one experiment.
-
#get_experiment_results(params = {}) ⇒ Types::GetExperimentResultsResponse
Retrieves the results of a running or completed experiment.
-
#get_feature(params = {}) ⇒ Types::GetFeatureResponse
Returns the details about one feature.
-
#get_launch(params = {}) ⇒ Types::GetLaunchResponse
Returns the details about one launch.
-
#get_project(params = {}) ⇒ Types::GetProjectResponse
Returns the details about one launch.
-
#list_experiments(params = {}) ⇒ Types::ListExperimentsResponse
Returns configuration details about all the experiments in the specified project.
-
#list_features(params = {}) ⇒ Types::ListFeaturesResponse
Returns configuration details about all the features in the specified project.
-
#list_launches(params = {}) ⇒ Types::ListLaunchesResponse
Returns configuration details about all the launches in the specified project.
-
#list_projects(params = {}) ⇒ Types::ListProjectsResponse
Returns configuration details about all the projects in the current Region in your account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Displays the tags associated with an Evidently resource.
-
#put_project_events(params = {}) ⇒ Types::PutProjectEventsResponse
Sends performance events to Evidently.
-
#start_experiment(params = {}) ⇒ Types::StartExperimentResponse
Starts an existing experiment.
-
#start_launch(params = {}) ⇒ Types::StartLaunchResponse
Starts an existing launch.
-
#stop_experiment(params = {}) ⇒ Types::StopExperimentResponse
Stops an experiment that is currently running.
-
#stop_launch(params = {}) ⇒ Types::StopLaunchResponse
Stops a launch that is currently running.
-
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified CloudWatch Evidently resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified resource.
-
#update_experiment(params = {}) ⇒ Types::UpdateExperimentResponse
Updates an Evidently experiment.
-
#update_feature(params = {}) ⇒ Types::UpdateFeatureResponse
Updates an existing feature.
-
#update_launch(params = {}) ⇒ Types::UpdateLaunchResponse
Updates a launch of a given feature.
-
#update_project(params = {}) ⇒ Types::UpdateProjectResponse
Updates the description of an existing project.
-
#update_project_data_delivery(params = {}) ⇒ Types::UpdateProjectDataDeliveryResponse
Updates the data storage options for this project.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Aws::ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
348 349 350 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 348 def initialize(*args) super end |
Instance Method Details
#batch_evaluate_feature(params = {}) ⇒ Types::BatchEvaluateFeatureResponse
This operation assigns feature variation to user sessions. For each
user session, you pass in an entityID
that represents the user.
Evidently then checks the evaluation rules and assigns the variation.
The first rules that are evaluated are the override rules. If the
user's entityID
matches an override rule, the user is served the
variation specified by that rule.
Next, if there is a launch of the feature, the user might be assigned to a variation in the launch. The chance of this depends on the percentage of users that are allocated to that launch. If the user is enrolled in the launch, the variation they are served depends on the allocation of the various feature variations used for the launch.
If the user is not assigned to a launch, and there is an ongoing experiment for this feature, the user might be assigned to a variation in the experiment. The chance of this depends on the percentage of users that are allocated to that experiment. If the user is enrolled in the experiment, the variation they are served depends on the allocation of the various feature variations used for the experiment.
If the user is not assigned to a launch or experiment, they are served the default variation.
421 422 423 424 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 421 def batch_evaluate_feature(params = {}, = {}) req = build_request(:batch_evaluate_feature, params) req.send_request() end |
#create_experiment(params = {}) ⇒ Types::CreateExperimentResponse
Creates an Evidently experiment. Before you create an experiment, you must create the feature to use for the experiment.
An experiment helps you make feature design decisions based on evidence and data. An experiment can test as many as five variations at once. Evidently collects experiment data and analyzes it by statistical methods, and provides clear recommendations about which variations perform better.
Don't use this operation to update an existing experiment. Instead, use UpdateExperiment.
576 577 578 579 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 576 def create_experiment(params = {}, = {}) req = build_request(:create_experiment, params) req.send_request() end |
#create_feature(params = {}) ⇒ Types::CreateFeatureResponse
Creates an Evidently feature that you want to launch or test. You can define up to five variations of a feature, and use these variations in your launches and experiments. A feature must be created in a project. For information about creating a project, see CreateProject.
Don't use this operation to update an existing feature. Instead, use UpdateFeature.
703 704 705 706 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 703 def create_feature(params = {}, = {}) req = build_request(:create_feature, params) req.send_request() end |
#create_launch(params = {}) ⇒ Types::CreateLaunchResponse
Creates a launch of a given feature. Before you create a launch, you must create the feature to use for the launch.
You can use a launch to safely validate new features by serving them to a specified percentage of your users while you roll out the feature. You can monitor the performance of the new feature to help you decide when to ramp up traffic to more users. This helps you reduce risk and identify unintended consequences before you fully launch the feature.
Don't use this operation to update an existing launch. Instead, use UpdateLaunch.
846 847 848 849 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 846 def create_launch(params = {}, = {}) req = build_request(:create_launch, params) req.send_request() end |
#create_project(params = {}) ⇒ Types::CreateProjectResponse
Creates a project, which is the logical object in Evidently that can contain features, launches, and experiments. Use projects to group similar features together.
To update an existing project, use UpdateProject.
932 933 934 935 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 932 def create_project(params = {}, = {}) req = build_request(:create_project, params) req.send_request() end |
#delete_experiment(params = {}) ⇒ Struct
Deletes an Evidently experiment. The feature used for the experiment is not deleted.
To stop an experiment without deleting it, use StopExperiment.
965 966 967 968 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 965 def delete_experiment(params = {}, = {}) req = build_request(:delete_experiment, params) req.send_request() end |
#delete_feature(params = {}) ⇒ Struct
Deletes an Evidently feature.
991 992 993 994 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 991 def delete_feature(params = {}, = {}) req = build_request(:delete_feature, params) req.send_request() end |
#delete_launch(params = {}) ⇒ Struct
Deletes an Evidently launch. The feature used for the launch is not deleted.
To stop a launch without deleting it, use StopLaunch.
1024 1025 1026 1027 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1024 def delete_launch(params = {}, = {}) req = build_request(:delete_launch, params) req.send_request() end |
#delete_project(params = {}) ⇒ Struct
Deletes an Evidently project. Before you can delete a project, you must delete all the features that the project contains. To delete a feature, use DeleteFeature.
1052 1053 1054 1055 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1052 def delete_project(params = {}, = {}) req = build_request(:delete_project, params) req.send_request() end |
#evaluate_feature(params = {}) ⇒ Types::EvaluateFeatureResponse
This operation assigns a feature variation to one given user session.
You pass in an entityID
that represents the user. Evidently then
checks the evaluation rules and assigns the variation.
The first rules that are evaluated are the override rules. If the
user's entityID
matches an override rule, the user is served the
variation specified by that rule.
Next, if there is a launch of the feature, the user might be assigned to a variation in the launch. The chance of this depends on the percentage of users that are allocated to that launch. If the user is enrolled in the launch, the variation they are served depends on the allocation of the various feature variations used for the launch.
If the user is not assigned to a launch, and there is an ongoing experiment for this feature, the user might be assigned to a variation in the experiment. The chance of this depends on the percentage of users that are allocated to that experiment. If the user is enrolled in the experiment, the variation they are served depends on the allocation of the various feature variations used for the experiment.
If the user is not assigned to a launch or experiment, they are served the default variation.
1131 1132 1133 1134 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1131 def evaluate_feature(params = {}, = {}) req = build_request(:evaluate_feature, params) req.send_request() end |
#get_experiment(params = {}) ⇒ Types::GetExperimentResponse
Returns the details about one experiment. You must already know the experiment name. To retrieve a list of experiments in your account, use ListExperiments.
1199 1200 1201 1202 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1199 def get_experiment(params = {}, = {}) req = build_request(:get_experiment, params) req.send_request() end |
#get_experiment_results(params = {}) ⇒ Types::GetExperimentResultsResponse
Retrieves the results of a running or completed experiment. No results are available until there have been 100 events for each variation and at least 10 minutes have passed since the start of the experiment.
Experiment results are available up to 63 days after the start of the experiment. They are not available after that because of CloudWatch data retention policies.
1313 1314 1315 1316 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1313 def get_experiment_results(params = {}, = {}) req = build_request(:get_experiment_results, params) req.send_request() end |
#get_feature(params = {}) ⇒ Types::GetFeatureResponse
Returns the details about one feature. You must already know the feature name. To retrieve a list of features in your account, use ListFeatures.
1373 1374 1375 1376 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1373 def get_feature(params = {}, = {}) req = build_request(:get_feature, params) req.send_request() end |
#get_launch(params = {}) ⇒ Types::GetLaunchResponse
Returns the details about one launch. You must already know the launch name. To retrieve a list of launches in your account, use ListLaunches.
1439 1440 1441 1442 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1439 def get_launch(params = {}, = {}) req = build_request(:get_launch, params) req.send_request() end |
#get_project(params = {}) ⇒ Types::GetProjectResponse
Returns the details about one launch. You must already know the project name. To retrieve a list of projects in your account, use ListProjects.
1488 1489 1490 1491 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1488 def get_project(params = {}, = {}) req = build_request(:get_project, params) req.send_request() end |
#list_experiments(params = {}) ⇒ Types::ListExperimentsResponse
Returns configuration details about all the experiments in the specified project.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1566 1567 1568 1569 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1566 def list_experiments(params = {}, = {}) req = build_request(:list_experiments, params) req.send_request() end |
#list_features(params = {}) ⇒ Types::ListFeaturesResponse
Returns configuration details about all the features in the specified project.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1621 1622 1623 1624 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1621 def list_features(params = {}, = {}) req = build_request(:list_features, params) req.send_request() end |
#list_launches(params = {}) ⇒ Types::ListLaunchesResponse
Returns configuration details about all the launches in the specified project.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1697 1698 1699 1700 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1697 def list_launches(params = {}, = {}) req = build_request(:list_launches, params) req.send_request() end |
#list_projects(params = {}) ⇒ Types::ListProjectsResponse
Returns configuration details about all the projects in the current Region in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1748 1749 1750 1751 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1748 def list_projects(params = {}, = {}) req = build_request(:list_projects, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Displays the tags associated with an Evidently resource.
1777 1778 1779 1780 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1777 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_project_events(params = {}) ⇒ Types::PutProjectEventsResponse
Sends performance events to Evidently. These events can be used to evaluate a launch or an experiment.
1822 1823 1824 1825 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1822 def put_project_events(params = {}, = {}) req = build_request(:put_project_events, params) req.send_request() end |
#start_experiment(params = {}) ⇒ Types::StartExperimentResponse
Starts an existing experiment. To create an experiment, use CreateExperiment.
1864 1865 1866 1867 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1864 def start_experiment(params = {}, = {}) req = build_request(:start_experiment, params) req.send_request() end |
#start_launch(params = {}) ⇒ Types::StartLaunchResponse
Starts an existing launch. To create a launch, use CreateLaunch.
1928 1929 1930 1931 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1928 def start_launch(params = {}, = {}) req = build_request(:start_launch, params) req.send_request() end |
#stop_experiment(params = {}) ⇒ Types::StopExperimentResponse
Stops an experiment that is currently running. If you stop an experiment, you can't resume it or restart it.
1970 1971 1972 1973 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 1970 def stop_experiment(params = {}, = {}) req = build_request(:stop_experiment, params) req.send_request() end |
#stop_launch(params = {}) ⇒ Types::StopLaunchResponse
Stops a launch that is currently running. After you stop a launch, you will not be able to resume it or restart it. Also, it will not be evaluated as a rule for traffic allocation, and the traffic that was allocated to the launch will instead be available to the feature's experiment, if there is one. Otherwise, all traffic will be served the default variation after the launch is stopped.
2017 2018 2019 2020 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2017 def stop_launch(params = {}, = {}) req = build_request(:stop_launch, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified CloudWatch Evidently resource. Projects, features, launches, and experiments can be tagged.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can use the TagResource
action with a resource that already has
tags. If you specify a new tag key for the resource, this tag is
appended to the list of tags associated with the alarm. If you specify
a tag key that is already associated with the resource, the new tag
value that you specify replaces the previous value for that tag.
You can associate as many as 50 tags with a resource.
For more information, see Tagging Amazon Web Services resources.
2069 2070 2071 2072 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2069 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified resource.
2096 2097 2098 2099 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2096 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_experiment(params = {}) ⇒ Types::UpdateExperimentResponse
Updates an Evidently experiment.
Don't use this operation to update an experiment's tag. Instead, use TagResource.
2229 2230 2231 2232 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2229 def update_experiment(params = {}, = {}) req = build_request(:update_experiment, params) req.send_request() end |
#update_feature(params = {}) ⇒ Types::UpdateFeatureResponse
Updates an existing feature.
You can't use this operation to update the tags of an existing feature. Instead, use TagResource.
2344 2345 2346 2347 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2344 def update_feature(params = {}, = {}) req = build_request(:update_feature, params) req.send_request() end |
#update_launch(params = {}) ⇒ Types::UpdateLaunchResponse
Updates a launch of a given feature.
Don't use this operation to update the tags of an existing launch. Instead, use TagResource.
2465 2466 2467 2468 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2465 def update_launch(params = {}, = {}) req = build_request(:update_launch, params) req.send_request() end |
#update_project(params = {}) ⇒ Types::UpdateProjectResponse
Updates the description of an existing project.
To create a new project, use CreateProject.
Don't use this operation to update the data storage options of a project. Instead, use UpdateProjectDataDelivery.
Don't use this operation to update the tags of a project. Instead, use TagResource.
2526 2527 2528 2529 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2526 def update_project(params = {}, = {}) req = build_request(:update_project, params) req.send_request() end |
#update_project_data_delivery(params = {}) ⇒ Types::UpdateProjectDataDeliveryResponse
Updates the data storage options for this project. If you store evaluation events, you an keep them and analyze them on your own. If you choose not to store evaluation events, Evidently deletes them after using them to produce metrics and other experiment results that you can view.
You can't specify both cloudWatchLogs
and s3Destination
in the
same operation.
2592 2593 2594 2595 |
# File 'gems/aws-sdk-cloudwatchevidently/lib/aws-sdk-cloudwatchevidently/client.rb', line 2592 def update_project_data_delivery(params = {}, = {}) req = build_request(:update_project_data_delivery, params) req.send_request() end |