Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelistoverlay
PATCH/serverMetricsConfig/{name}Attach server metrics to a test or test run · Microsoft Azure Associate Server Metrics Config To A Test Model Or Test Run#
Ask an LLM
“How do I collect server-side resource metrics during a load test?”
“Can I associate a server metrics config with a specific test run?”
Tell an agent
Associate server metrics config {name} with test {testId}.
Attach metrics {metrics} as config {name} to test run {testRunId}.
GET/serverMetricsConfig/{name}Get a server metrics config by name · Microsoft Azure Get Server Metrics Config For A Given Name In Query Param#
Ask an LLM
“What server-side metrics are configured under a given config name?”
“Can I look up a load test server metrics config by its name?”
Tell an agent
Get server metrics config {name}.
Show which resource metrics config {name} collects.
DELETE/serverMetricsConfig/{name}Delete a server metrics config · Microsoft Azure Delete Server Metrics Config By Given Name#
Ask an LLM
“How do I remove a server metrics configuration I no longer use?”
“Can I delete a named server metrics config?”
Tell an agentdestructive · confirm first
Delete server metrics config {name}.
Remove the server metrics configuration named {name}.
GET/serverMetricsConfigGet server metrics config for a test · Microsoft Azure Get Server Metrics Config For A Test Model Or Test Run Of Given…#
Ask an LLM
“Which server metrics are set up for one of my load tests?”
“Can I find the server metrics config linked to a test run?”
Tell an agent
Get the server metrics config for test {testId}.
Show server metrics configured for test run {testRunId}.
GET/serverMetricsConfig/defaultList default server metrics by resource type · Microsoft Azure Get All Default Server Metrics Config With Supported Resource…#
Ask an LLM
“What server metrics are collected by default for each Azure resource type?”
“Where can I see the default metrics a load test gathers?”
Tell an agent
List the default server metrics for every supported resource type.
Show the out-of-the-box server metrics config.
GET/serverMetricsConfig/supportedResourceTypesList resource types supported as app components · Microsoft Azure Get All Supported Resource Types For App Components Azure…#
Ask an LLM
“Which Azure resource types can I monitor as app components in a load test?”
“Is my resource type supported for server metrics collection?”
Tell an agent
List the resource types supported for app components.
Show which Azure resource types server metrics can monitor.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Microsoft Azure CloudNativeTest Server Metrics API
version: 2021-07-01-preview
security:
- Bearer: []
tags:
- name: ServerMetrics
paths:
/serverMetricsConfig/{name}:
patch:
tags:
- ServerMetrics
summary: Microsoft Azure Associate Server Metrics Config To A Test Model Or Test Run
operationId: microsoftAzureServermetricsCreateorupdateservermetricsconfig
parameters:
- in: path
name: name
description: Unique identifier for server metric name, must be a valid URL character ^[a-z0-9_-]*$
required: true
schema:
type: string
maxLength: 50
minLength: 2
pattern: ^[a-z0-9_-]*$
- in: query
name: api-version
description: Api version
required: true
schema:
type: string
responses:
'200':
description: The server metrics were updated
content:
application/json:
schema:
$ref: '#/components/schemas/ServerMetricsModel'
'201':
description: The server metrics were created
content:
application/json:
schema:
$ref: '#/components/schemas/ServerMetricsModel'
default:
description: "***Error Responses: ***\n\n * \"400\", \"InvalidHostOrResourceName\", \"Host name or domain is not valid\" .\n\n * \"400\", \"RequiredServerMetricsName\", \"name is required\"\n\n * \"400\", \"RequiredTestOrTestRun\", \"Either test name or test run name is required\"\n\n * \"500\", \"InternalServerError\", \"Unable to process the request, please retry\""
headers:
x-ms-error-code:
description: The error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponseBody'
x-ms-examples:
ServerMetrics_CreateOrUpdateServerMetricsConfig_MaximumSet_Gen:
$ref: ./examples/ServerMetrics_CreateOrUpdateServerMetricsConfig_MaximumSet_Gen.json
ServerMetrics_CreateOrUpdateServerMetricsConfig_MinimumSet_Gen:
$ref: ./examples/ServerMetrics_CreateOrUpdateServerMetricsConfig_MinimumSet_Gen.json
description: Needs a more full description created.
requestBody:
content:
application/merge-patch+json:
schema:
$ref: '#/components/schemas/ServerMetricsModel'
description: Server metrics config model
required: true
get:
tags:
- ServerMetrics
summary: Microsoft Azure Get Server Metrics Config For A Given Name In Query Param
operationId: microsoftAzureServermetricsGetservermetricsbyname
parameters:
- in: path
name: name
description: Unique identifier for server metric name, must be a valid URL character ^[a-z0-9_-]*$
required: true
schema:
type: string
maxLength: 50
minLength: 2
pattern: ^[a-z0-9_-]*$
- in: query
name: api-version
description: Api version
required: true
schema:
type: string
responses:
'200':
description: The requested server metrics
content:
application/json:
schema:
$ref: '#/components/schemas/ServerMetricsModel'
default:
description: "***Error Responses: ***\n\n * \"400\", \"InvalidHostOrResourceName\", \"Host name or domain is not valid\".\n\n * \"400\", \"RequiredServerMetricsName\", \"name field is required\"\n\n * \"400\", \"InvalidServerMetricsConfigName\", \"name field should be valid\"\n\n * \"500\", \"InternalServerError\", \"Unable to process the request, please retry\""
headers:
x-ms-error-code:
description: The error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponseBody'
x-ms-examples:
ServerMetrics_GetServerMetricsByName_MaximumSet_Gen:
$ref: ./examples/ServerMetrics_GetServerMetricsByName_MaximumSet_Gen.json
ServerMetrics_GetServerMetricsByName_MinimumSet_Gen:
$ref: ./examples/ServerMetrics_GetServerMetricsByName_MinimumSet_Gen.json
description: Needs a more full description created.
delete:
tags:
- ServerMetrics
summary: Microsoft Azure Delete Server Metrics Config By Given Name
operationId: microsoftAzureServermetricsDeleteservermetrics
parameters:
- in: path
name: name
description: Unique identifier for server metric name, must be a valid URL character ^[a-z0-9_-]*$
required: true
schema:
type: string
maxLength: 50
minLength: 2
pattern: ^[a-z0-9_-]*$
- in: query
name: api-version
description: Api version
required: true
schema:
type: string
responses:
'204':
description: The server metrics config is deleted
default:
description: "*** Error Responses: ***\n\n * \"400\", \"InvalidHostOrResourceName\", \"Host name or domain is not valid\"\n\n * \"400\", \"RequiredServerMetricsName\", \"name is required\"\n\n * \"404\", \"ServerMetricsNotFound\", \"No server metrics found with given name\"\n\n * \"500\", \"InternalServerError\", \"Unable to process the request, please retry\""
headers:
x-ms-error-code:
description: The error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponseBody'
x-ms-examples:
ServerMetrics_DeleteServerMetrics_MaximumSet_Gen:
$ref: ./examples/ServerMetrics_DeleteServerMetrics_MaximumSet_Gen.json
ServerMetrics_DeleteServerMetrics_MinimumSet_Gen:
$ref: ./examples/ServerMetrics_DeleteServerMetrics_MinimumSet_Gen.json
description: Needs a more full description created.
/serverMetricsConfig:
get:
tags:
- ServerMetrics
summary: Microsoft Azure Get Server Metrics Config For A Test Model Or Test Run Of Given…
operationId: microsoftAzureServermetricsGetservermetrics
parameters:
- in: query
name: testId
description: Required testId, if testRunId name is not provided
schema:
type: string
maxLength: 50
minLength: 2
pattern: ^[a-z0-9_-]*$
- in: query
name: testRunId
description: Required testRunId, if testId is not provided
schema:
type: string
maxLength: 50
minLength: 2
pattern: ^[a-z0-9_-]*$
- in: query
name: api-version
description: Api version
required: true
schema:
type: string
responses:
'200':
description: The requested server metrics
content:
application/json:
schema:
$ref: '#/components/schemas/ServerMetricsModel'
default:
description: "***Error Responses: ***\n\n * \"400\", \"InvalidHostOrResourceName\", \"Host name or domain is not valid\" .\n\n * \"400\", \"RequiredTestOrTestRun\", \"Either test name or test run name is required\"\n\n * \"500\", \"InternalServerError\", \"Unable to process the request, please retry\""
headers:
x-ms-error-code:
description: The error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponseBody'
x-ms-examples:
ServerMetrics_GetServerMetrics_MaximumSet_Gen:
$ref: ./examples/ServerMetrics_GetServerMetrics_MaximumSet_Gen.json
ServerMetrics_GetServerMetrics_MinimumSet_Gen:
$ref: ./examples/ServerMetrics_GetServerMetrics_MinimumSet_Gen.json
description: Needs a more full description created.
/serverMetricsConfig/default:
get:
tags:
- ServerMetrics
summary: Microsoft Azure Get All Default Server Metrics Config With Supported Resource…
operationId: microsoftAzureServermetricsGetserverdefaultmetrics
parameters:
- in: query
name: api-version
description: Api version
required: true
schema:
type: string
responses:
'200':
description: The requested server default metrics
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultServerMetricsConfigListModel'
default:
description: "***Error Responses: ***\n\n * \"400\", \"InvalidHostOrResourceName\", \"Host name or domain is not valid\" .\n\n * \"500\", \"InternalServerError\", \"Unable to process the request, please retry\""
headers:
x-ms-error-code:
description: The error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponseBody'
x-ms-examples:
ServerMetrics_GetServerDefaultMetrics_MaximumSet_Gen:
$ref: ./examples/ServerMetrics_GetServerDefaultMetrics_MaximumSet_Gen.json
ServerMetrics_GetServerDefaultMetrics_MinimumSet_Gen:
$ref: ./examples/ServerMetrics_GetServerDefaultMetrics_MinimumSet_Gen.json
description: Needs a more full description created.
/serverMetricsConfig/supportedResourceTypes:
get:
tags:
- ServerMetrics
summary: Microsoft Azure Get All Supported Resource Types For App Components Azure…
operationId: microsoftAzureServermetricsListsupportedresourcetype
parameters:
- in: query
name: api-version
description: Api version
required: true
schema:
type: string
responses:
'200':
description: The supported resource types and metrics for server side metrics
content:
application/json:
schema:
$ref: '#/components/schemas/SupportedResourceType'
default:
description: "***Error Responses: ***\n\n * \"500\", \"InternalServerError\", \"Unable to process the request, please retry\""
headers:
x-ms-error-code:
description: The error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultErrorResponseBody'
x-ms-examples:
ServerMetrics_ListSupportedResourceType_MaximumSet_Gen:
$ref: ./examples/ServerMetrics_ListSupportedResourceType_MaximumSet_Gen.json
ServerMetrics_ListSupportedResourceType_MinimumSet_Gen:
$ref: ./examples/ServerMetrics_ListSupportedResourceType_MinimumSet_Gen.json
description: Needs a more full description created.
components:
schemas:
DefaultErrorResponseBody:
description: The definition of an error object.
type: object
properties:
error:
$ref: '#/components/schemas/ErrorResponseBody'
ServerMetricName:
description: Metric name object
required:
- localizedValue
- value
type: object
properties:
value:
description: Metric name value
type: string
localizedValue:
description: Metric localized name
type: string
SupportedResourceType:
description: 'Supported azure resource types for app component like Microsoft.LoadTestService/loadtests, Microsoft.ClassicCompute, Microsoft.ClassicStorage etc. (Refer for full list of available resource types in azure : https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-providers-and-types, some of them we are supporting for server side metrics configuration)'
type: object
properties:
value:
type: array
items:
type: string
DefaultServerMetricsConfigModel:
description: Metrics config model
type: object
properties:
metricnamespace:
type: string
aggregation:
type: string
name:
$ref: '#/components/schemas/LocalizedName'
unit:
type: string
displayDescription:
type: string
ServerMetricsModel:
description: Server metrics config model
type: object
properties:
name:
description: '[ReadOnly] Server metrics config name'
type: string
testId:
description: '[Required if testRunId is not given] Load test unique identifier'
type: string
testRunId:
description: '[Required if testId is not given] Load test run unique identifier'
type: string
metrics:
description: 'Metrics map {metric id : metrics object} (Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition for metric id)'
type: object
additionalProperties:
$ref: '#/components/schemas/ResourceMetricModel'
LocalizedName:
type: object
properties:
value:
type: string
localizedValue:
type: string
DefaultServerMetricsConfigListModel:
description: Default server metrics config
type: object
properties:
defaultMetrics:
description: 'Default metrics map {resourceType : list of metrics config} (Refer for metrics structure: https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition)'
type: object
additionalProperties:
type: array
items:
$ref: '#/components/schemas/DefaultServerMetricsConfigModel'
ResourceMetricModel:
description: 'Associated metric definition for particular metrics of the azure resource ( Refer : https://docs.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition)'
required:
- aggregation
- metricnamespace
- name
- resourceId
- resourceType
type: object
properties:
id:
description: '[ReadOnly] Unique identifier for metric'
type: string
resourceId:
description: Azure resource id
type: string
metricnamespace:
description: Metric name space
type: string
displayDescription:
description: Metric description
type: string
name:
$ref: '#/components/schemas/ServerMetricName'
aggregation:
description: Metric aggregation
type: string
unit:
description: Metric unit
type: string
resourceType:
description: Azure resource type
type: string
ErrorResponseBody:
description: The error response object.
type: object
properties:
code:
description: The error code.
type: string
message:
description: The error message.
type: string
target:
description: The error target.
type: string
details:
description: Additional details and inner errors.
type: array
items:
$ref: '#/components/schemas/ErrorResponseBody'
securitySchemes:
Bearer:
type: apiKey
name: Authorization
in: header
description: JWT Authorization header using the Bearer scheme.