Microsoft.OnlineExperimentation (preview:2025-05-31)

2025/04/21 • 5 new methods

ListMetrics (new)
Description Lists experiment metrics.
Reference Link ¶

⚼ Request

GET:  /experiment-metrics
{
api-version: string ,
top: integer ,
skip: integer ,
maxpagesize: integer ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
value:
[
{
id: string ,
lifecycle: enum ,
displayName: string ,
description: string ,
categories:
[
string ,
]
,
desiredDirection: enum ,
definition:
{
type: string ,
}
,
eTag: string ,
lastModifiedAt: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetMetric (new)
Description Fetches an experiment metric by ID.
Reference Link ¶

⚼ Request

GET:  /experiment-metrics/{experimentMetricId}
{
api-version: string ,
experimentMetricId: string ,
If-Match: string ,
If-None-Match: string ,
If-Unmodified-Since: string ,
If-Modified-Since: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
lifecycle: enum ,
displayName: string ,
description: string ,
categories:
[
string ,
]
,
desiredDirection: enum ,
definition:
{
type: string ,
}
,
eTag: string ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
CreateOrUpdateMetric (new)
Description Creates or updates an experiment metric.
Reference Link ¶

⚼ Request

PATCH:  /experiment-metrics/{experimentMetricId}
{
api-version: string ,
experimentMetricId: string ,
If-Match: string ,
If-None-Match: string ,
If-Unmodified-Since: string ,
If-Modified-Since: string ,
x-ms-client-request-id: string ,
resource:
{
lifecycle: enum ,
displayName: string ,
description: string ,
categories:
[
string ,
]
,
desiredDirection: enum ,
definition:
{
type: string ,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
lifecycle: enum ,
displayName: string ,
description: string ,
categories:
[
string ,
]
,
desiredDirection: enum ,
definition:
{
type: string ,
}
,
eTag: string ,
lastModifiedAt: string ,
}
,
}

⚐ Response (201)

{
$headers:
{
etag: string ,
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
lifecycle: enum ,
displayName: string ,
description: string ,
categories:
[
string ,
]
,
desiredDirection: enum ,
definition:
{
type: string ,
}
,
eTag: string ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DeleteMetric (new)
Description Deletes an experiment metric.
Reference Link ¶

⚼ Request

DELETE:  /experiment-metrics/{experimentMetricId}
{
api-version: string ,
experimentMetricId: string ,
If-Match: string ,
If-None-Match: string ,
If-Unmodified-Since: string ,
If-Modified-Since: string ,
x-ms-client-request-id: string ,
}

⚐ Response (204)

{
x-ms-client-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ValidateMetric (new)
Description Validates an experiment metric definition.
Reference Link ¶

⚼ Request

POST:  /experiment-metrics:validate
{
api-version: string ,
x-ms-client-request-id: string ,
body:
{
id: string ,
lifecycle: enum ,
displayName: string ,
description: string ,
categories:
[
string ,
]
,
desiredDirection: enum ,
definition:
{
type: string ,
}
,
eTag: string ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
isValid: boolean ,
diagnostics:
[
{
message: string ,
code: enum ,
}
,
]
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}