getExperimentByIdWithHttpInfo method
Is one experiment's definition and lifecycle: variants, weights, control arm, status and winner.
Is one experiment's definition and lifecycle: variants, weights, control arm, status and winner. It reads the registry row only — the definition and the decision, never live measurements. Assignment lives in the flags plane and outcomes in analytics; this is the value that names both. Scoped to the caller's org and project from the validated principal, so another tenant's experiment of the same id is simply not found. An id that is not a legal slug is answered the same way, without a store read — the shape check and the existence check are one answer, so neither leaks the other.
Note: This method returns the HTTP Response.
Parameters:
- String id (required): ID is the experiment the URL names.
Implementation
Future<Response> getExperimentByIdWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/v1/experiment/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}