Class ExperimentCreateParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class ExperimentCreateParams implements Params
Create a new experiment. If there is an existing experiment in the project with the same name as the one specified in the request, will return the existing experiment unmodified
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classExperimentCreateParams.BuilderA builder for ExperimentCreateParams.
public final classExperimentCreateParams.Bodypublic final classExperimentCreateParams.MetadataUser-controlled metadata about the experiment
-
Method Summary
Modifier and Type Method Description final StringprojectId()Unique identifier for the project that the experiment belongs under final Optional<String>baseExpId()Id of default base experiment to compare against when viewing this experiment final Optional<String>datasetId()Identifier of the linked dataset, or null if the experiment is not linked to a dataset final Optional<String>datasetVersion()Version number of the linked dataset the experiment was run against. final Optional<String>description()Textual description of the experiment final Optional<Boolean>ensureNew()Normally, creating an experiment with the same name as an existing experiment will return the existing one un-modified. final Optional<ExperimentCreateParams.Metadata>metadata()User-controlled metadata about the experiment final Optional<String>name()Name of the experiment. final Optional<Boolean>public_()Whether or not the experiment is public. final Optional<RepoInfo>repoInfo()Metadata about the state of the repo when the experiment was created final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_baseExpId()Returns the raw JSON value of baseExpId. final JsonField<String>_datasetId()Returns the raw JSON value of datasetId. final JsonField<String>_datasetVersion()Returns the raw JSON value of datasetVersion. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<Boolean>_ensureNew()Returns the raw JSON value of ensureNew. final JsonField<ExperimentCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<Boolean>_public_()Returns the raw JSON value of public_. final JsonField<RepoInfo>_repoInfo()Returns the raw JSON value of repoInfo. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final ExperimentCreateParams.BuildertoBuilder()final ExperimentCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static ExperimentCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of ExperimentCreateParams. -
-
Method Detail
-
projectId
final String projectId()
Unique identifier for the project that the experiment belongs under
-
baseExpId
final Optional<String> baseExpId()
Id of default base experiment to compare against when viewing this experiment
-
datasetId
final Optional<String> datasetId()
Identifier of the linked dataset, or null if the experiment is not linked to a dataset
-
datasetVersion
final Optional<String> datasetVersion()
Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified.
-
description
final Optional<String> description()
Textual description of the experiment
-
ensureNew
final Optional<Boolean> ensureNew()
Normally, creating an experiment with the same name as an existing experiment will return the existing one un-modified. But if
ensure_newis true, registration will generate a new experiment with a unique name in case of a conflict.
-
metadata
final Optional<ExperimentCreateParams.Metadata> metadata()
User-controlled metadata about the experiment
-
name
final Optional<String> name()
Name of the experiment. Within a project, experiment names are unique
-
public_
final Optional<Boolean> public_()
Whether or not the experiment is public. Public experiments can be viewed by anybody inside or outside the organization
-
repoInfo
final Optional<RepoInfo> repoInfo()
Metadata about the state of the repo when the experiment was created
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_baseExpId
final JsonField<String> _baseExpId()
Returns the raw JSON value of baseExpId.
Unlike baseExpId, this method doesn't throw if the JSON field has an unexpected type.
-
_datasetId
final JsonField<String> _datasetId()
Returns the raw JSON value of datasetId.
Unlike datasetId, this method doesn't throw if the JSON field has an unexpected type.
-
_datasetVersion
final JsonField<String> _datasetVersion()
Returns the raw JSON value of datasetVersion.
Unlike datasetVersion, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_ensureNew
final JsonField<Boolean> _ensureNew()
Returns the raw JSON value of ensureNew.
Unlike ensureNew, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<ExperimentCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_public_
final JsonField<Boolean> _public_()
Returns the raw JSON value of public_.
Unlike public_, this method doesn't throw if the JSON field has an unexpected type.
-
_repoInfo
final JsonField<RepoInfo> _repoInfo()
Returns the raw JSON value of repoInfo.
Unlike repoInfo, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
toBuilder
final ExperimentCreateParams.Builder toBuilder()
-
_body
final ExperimentCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static ExperimentCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of ExperimentCreateParams.
The following fields are required:
.projectId()
-
-
-
-