forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure load testing API version 2024-07-01-preview (Azure#30881)
* add api version 2024-07-01-preview * update readme * added trigger examples * spacing fix * PR Comment for List Parameter * Updatiing property docs --------- Co-authored-by: Venkat Ragavan S <[email protected]> Co-authored-by: Mitesh Shah <[email protected]>
- Loading branch information
1 parent
fda3d5e
commit 57cbfdb
Showing
86 changed files
with
12,939 additions
and
0 deletions.
There are no files selected for viewing
222 changes: 222 additions & 0 deletions
222
...ation/loadtestservice/LoadTestService/examples/2024-07-01-preview/CreateOrUpdateTest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,222 @@ | ||
{ | ||
"operationId": "LoadTestAdministration_CreateOrUpdateTest", | ||
"title": "Create or update a load test", | ||
"parameters": { | ||
"api-version": "2024-07-01-preview", | ||
"testId": "12345678-1234-1234-1234-123456789012", | ||
"body": { | ||
"description": "sample description", | ||
"displayName": "Performance_LoadTest", | ||
"loadTestConfiguration": { | ||
"engineInstances": 6, | ||
"splitAllCSVs": true | ||
}, | ||
"passFailCriteria": { | ||
"passFailMetrics": { | ||
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": { | ||
"clientMetric": "response_time_ms", | ||
"aggregate": "percentage", | ||
"condition": ">", | ||
"value": 20, | ||
"action": "continue" | ||
} | ||
}, | ||
"passFailServerMetrics": { | ||
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": { | ||
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/MyVM", | ||
"metricNamespace": "Microsoft.Compute/virtualMachines", | ||
"metricName": "Percentage CPU", | ||
"aggregation": "Average", | ||
"condition": ">", | ||
"value": 20, | ||
"action": "continue" | ||
} | ||
} | ||
}, | ||
"autoStopCriteria": { | ||
"autoStopDisabled": true, | ||
"errorRate": 70, | ||
"errorRateTimeWindowInSeconds": 60 | ||
}, | ||
"secrets": { | ||
"secret1": { | ||
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827", | ||
"type": "AKV_SECRET_URI" | ||
} | ||
}, | ||
"environmentVariables": { | ||
"envvar1": "sampletext" | ||
}, | ||
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Network/virtualNetworks/samplenetworkresource/subnets/AAAAA0A0A0", | ||
"keyvaultReferenceIdentityType": "UserAssigned", | ||
"keyvaultReferenceIdentityId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/sampleprovider/sampleresourcetype/sampleresourcename", | ||
"metricsReferenceIdentityType": "UserAssigned", | ||
"metricsReferenceIdentityId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/samplerg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleresourcename" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"testId": "12345678-1234-1234-1234-123456789012", | ||
"description": "sample description", | ||
"displayName": "Performance_LoadTest", | ||
"loadTestConfiguration": { | ||
"engineInstances": 6, | ||
"splitAllCSVs": true | ||
}, | ||
"passFailCriteria": { | ||
"passFailMetrics": { | ||
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": { | ||
"clientMetric": "response_time_ms", | ||
"aggregate": "percentage", | ||
"condition": ">", | ||
"value": 20, | ||
"action": "continue", | ||
"actualValue": 10, | ||
"result": "passed" | ||
} | ||
}, | ||
"passFailServerMetrics": { | ||
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": { | ||
"resourceId": "/subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/MyVM", | ||
"metricNamespace": "Microsoft.Compute/virtualMachines", | ||
"metricName": "Percentage CPU", | ||
"aggregation": "Average", | ||
"condition": ">", | ||
"value": 20, | ||
"action": "continue" | ||
} | ||
} | ||
}, | ||
"autoStopCriteria": { | ||
"autoStopDisabled": true, | ||
"errorRate": 70, | ||
"errorRateTimeWindowInSeconds": 60 | ||
}, | ||
"createdDateTime": "2021-12-05T16:43:46.072Z", | ||
"createdBy": "[email protected]", | ||
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z", | ||
"lastModifiedBy": "[email protected]", | ||
"inputArtifacts": { | ||
"configFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.yaml?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "config.yaml", | ||
"fileType": "ADDITIONAL_ARTIFACTS", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "" | ||
}, | ||
"testScriptFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.jmx?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "sample.jmx", | ||
"fileType": "JMX_FILE", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "VALIDATION_SUCCESS" | ||
}, | ||
"userPropFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.properties?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "user.properties", | ||
"fileType": "USER_PROPERTIES", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "" | ||
}, | ||
"inputArtifactsZipFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.zip?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "inputartifacts.zip", | ||
"fileType": "ADDITIONAL_ARTIFACTS", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "" | ||
}, | ||
"additionalFileInfo": [] | ||
}, | ||
"secrets": { | ||
"secret1": { | ||
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827", | ||
"type": "AKV_SECRET_URI" | ||
} | ||
}, | ||
"environmentVariables": { | ||
"envvar1": "sampletext" | ||
}, | ||
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Network/virtualNetworks/samplenetworkresource/subnets/AAAAA0A0A0", | ||
"keyvaultReferenceIdentityType": "UserAssigned", | ||
"keyvaultReferenceIdentityId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"testId": "12345678-1234-1234-1234-123456789012", | ||
"description": "sample description", | ||
"displayName": "Performance_LoadTest", | ||
"loadTestConfiguration": { | ||
"engineInstances": 6, | ||
"splitAllCSVs": true | ||
}, | ||
"passFailCriteria": { | ||
"passFailMetrics": { | ||
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": { | ||
"clientMetric": "response_time_ms", | ||
"aggregate": "percentage", | ||
"condition": ">", | ||
"value": 20, | ||
"action": "continue", | ||
"actualValue": 10, | ||
"result": "passed" | ||
} | ||
} | ||
}, | ||
"autoStopCriteria": { | ||
"autoStopDisabled": true, | ||
"errorRate": 70, | ||
"errorRateTimeWindowInSeconds": 60 | ||
}, | ||
"createdDateTime": "2021-12-05T16:43:46.072Z", | ||
"createdBy": "[email protected]", | ||
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z", | ||
"lastModifiedBy": "[email protected]", | ||
"inputArtifacts": { | ||
"configFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.yaml?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "config.yaml", | ||
"fileType": "ADDITIONAL_ARTIFACTS", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "" | ||
}, | ||
"testScriptFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.jmx?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "sample.jmx", | ||
"fileType": "JMX_FILE", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "VALIDATION_SUCCESS" | ||
}, | ||
"userPropFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.properties?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "user.properties", | ||
"fileType": "USER_PROPERTIES", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "" | ||
}, | ||
"inputArtifactsZipFileInfo": { | ||
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.zip?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D", | ||
"fileName": "inputartifacts.zip", | ||
"fileType": "ADDITIONAL_ARTIFACTS", | ||
"expireDateTime": "2021-12-05T16:43:46.072Z", | ||
"validationStatus": "" | ||
}, | ||
"additionalFileInfo": [] | ||
}, | ||
"secrets": { | ||
"secret1": { | ||
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827", | ||
"type": "AKV_SECRET_URI" | ||
} | ||
}, | ||
"environmentVariables": { | ||
"envvar1": "sampletext" | ||
}, | ||
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Network/virtualNetworks/samplenetworkresource/subnets/AAAAA0A0A0", | ||
"keyvaultReferenceIdentityType": "UserAssigned", | ||
"keyvaultReferenceIdentityId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" | ||
} | ||
} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...tservice/LoadTestService/examples/2024-07-01-preview/CreateOrUpdateTestAppComponents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"operationId": "LoadTestAdministration_CreateOrUpdateAppComponents", | ||
"title": "Add or update app components to a load test", | ||
"parameters": { | ||
"testId": "ee843bd9-a6d4-4364-a45c-427a03c39fa7", | ||
"api-version": "2024-07-01-preview", | ||
"body": { | ||
"components": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": { | ||
"resourceType": "microsoft.insights/components", | ||
"resourceName": "appcomponentresource", | ||
"displayName": "Performance_LoadTest_Insights", | ||
"kind": "web" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"testId": "12345678-1234-1234-1234-123456789012", | ||
"components": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": { | ||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource", | ||
"resourceType": "microsoft.insights/components", | ||
"resourceName": "appcomponentresource", | ||
"displayName": "Performance_LoadTest_Insights", | ||
"resourceGroup": "samplerg", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"kind": "web" | ||
} | ||
}, | ||
"createdDateTime": "2021-12-05T16:43:46.072Z", | ||
"createdBy": "[email protected]", | ||
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z", | ||
"lastModifiedBy": "[email protected]" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"testId": "12345678-1234-1234-1234-123456789012", | ||
"components": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": { | ||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource", | ||
"resourceType": "microsoft.insights/components", | ||
"resourceName": "appcomponentresource", | ||
"displayName": "Performance_LoadTest_Insights", | ||
"resourceGroup": "samplerg", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"kind": "web" | ||
} | ||
}, | ||
"createdDateTime": "2021-12-05T16:43:46.072Z", | ||
"createdBy": "[email protected]", | ||
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z", | ||
"lastModifiedBy": "[email protected]" | ||
} | ||
} | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
...oadtestservice/LoadTestService/examples/2024-07-01-preview/CreateOrUpdateTestProfile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"operationId": "TestProfileAdministration_CreateOrUpdateTestProfile", | ||
"title": "Create or update a test profile", | ||
"parameters": { | ||
"api-version": "2024-07-01-preview", | ||
"testProfileId": "12345678-1234-1234-1234-123456789012", | ||
"body": { | ||
"description": "sample description", | ||
"displayName": "Performance_TestProfile", | ||
"testId": "12346-abcd-6789", | ||
"targetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Web/sites/myfunctionapp", | ||
"targetResourceConfigurations": { | ||
"kind": "FunctionsFlexConsumption", | ||
"configurations": { | ||
"config1": { | ||
"instanceMemoryMB": 2048, | ||
"httpConcurrency": 16 | ||
}, | ||
"config2": { | ||
"instanceMemoryMB": 4096, | ||
"httpConcurrency": 16 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"testProfileId": "12345678-1234-1234-1234-123456789012", | ||
"description": "sample description", | ||
"displayName": "Performance_TestProfile", | ||
"testId": "12346-abcd-6789", | ||
"targetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Web/sites/myfunctionapp", | ||
"targetResourceConfigurations": { | ||
"kind": "FunctionsFlexConsumption", | ||
"configurations": { | ||
"config1": { | ||
"instanceMemoryMB": 512, | ||
"httpConcurrency": 16 | ||
}, | ||
"config2": { | ||
"instanceMemoryMB": 2048, | ||
"httpConcurrency": 16 | ||
} | ||
} | ||
}, | ||
"createdDateTime": "2024-05-01T16:43:46.072Z", | ||
"createdBy": "[email protected]", | ||
"lastModifiedDateTime": "2024-05-01T16:43:46.072Z", | ||
"lastModifiedBy": "[email protected]" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"testProfileId": "12345678-1234-1234-1234-123456789012", | ||
"description": "sample description", | ||
"displayName": "Performance_TestProfile", | ||
"testId": "12346-abcd-6789", | ||
"targetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Web/sites/myfunctionapp", | ||
"targetResourceConfigurations": { | ||
"kind": "FunctionsFlexConsumption", | ||
"configurations": { | ||
"config1": { | ||
"instanceMemoryMB": 512, | ||
"httpConcurrency": 16 | ||
}, | ||
"config2": { | ||
"instanceMemoryMB": 2048, | ||
"httpConcurrency": 16 | ||
} | ||
} | ||
}, | ||
"createdDateTime": "2024-05-01T16:43:46.072Z", | ||
"createdBy": "[email protected]", | ||
"lastModifiedDateTime": "2024-05-01T16:43:46.072Z", | ||
"lastModifiedBy": "[email protected]" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.