Microsoft.LoadTestService (preview:2024-05-01)

2024/12/17 • 4 updated methods

LoadTestRun_GetServerMetricsConfig (updated)
Description Get associated server metrics configuration for the given test run.
Reference Link ¶

⚶ Changes

{
  "#id": "LoadTestRun_GetServerMetricsConfig",
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    }
  }
}

⚼ Request

GET:  /test-runs/{testRunId}/server-metrics-config
{
api-version: string ,
testRunId: string ,
}

⚐ Response (200)

{
testRunId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
LoadTestRun_CreateOrUpdateServerMetricsConfig (updated)
Description Configure server metrics for a test run
Reference Link ¶

⚶ Changes

{
  "#id": "LoadTestRun_CreateOrUpdateServerMetricsConfig",
  "$parameters": {
    "body": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    }
  },
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    },
    "201": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    }
  }
}

⚼ Request

PATCH:  /test-runs/{testRunId}/server-metrics-config
{
api-version: string ,
testRunId: string ,
body:
{
testRunId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}
,
}

⚐ Response (200)

{
testRunId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (201)

{
testRunId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
LoadTestAdministration_GetServerMetricsConfig (updated)
Description List server metrics configuration for the given test.
Reference Link ¶

⚶ Changes

{
  "#id": "LoadTestAdministration_GetServerMetricsConfig",
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    }
  }
}

⚼ Request

GET:  /tests/{testId}/server-metrics-config
{
api-version: string ,
testId: string ,
}

⚐ Response (200)

{
testId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
LoadTestAdministration_CreateOrUpdateServerMetricsConfig (updated)
Description Configure server metrics for a test
Reference Link ¶

⚶ Changes

{
  "#id": "LoadTestAdministration_CreateOrUpdateServerMetricsConfig",
  "$parameters": {
    "body": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    }
  },
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    },
    "201": {
      "$properties": [
        {
          "#name": "metrics",
          "Description": {
            "new": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id).",
            "old": "Azure resource metrics collection {metric id : metrics object} (Refer :\nhttps://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition\nfor metric id)."
          }
        }
      ]
    }
  }
}

⚼ Request

PATCH:  /tests/{testId}/server-metrics-config
{
api-version: string ,
testId: string ,
body:
{
metrics: object ,
}
,
}

⚐ Response (200)

{
testId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (201)

{
testId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (default)

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