From 8b534fb1aa43ef1310131e2ee930c51823f7d414 Mon Sep 17 00:00:00 2001 From: renzopretto Date: Fri, 29 Sep 2023 15:46:03 -0700 Subject: [PATCH 1/2] feat: consolidate execution details api --- ...tatus.json => GetExperimentExecution.json} | 14 +- .../GetExperimentExecutionDetails.json | 67 ------- .../examples/ListExperimentExecutions.json | 38 ++++ .../ListExperimentExecutionsDetails.json | 112 ------------ .../examples/ListExperimentStatuses.json | 29 --- .../stable/2023-11-01/experiments.json | 120 ++---------- .../stable/2023-11-01/types/common.json | 7 + .../stable/2023-11-01/types/experiments.json | 171 ++++-------------- 8 files changed, 100 insertions(+), 458 deletions(-) rename specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/{GetExperimentStatus.json => GetExperimentExecution.json} (54%) delete mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentExecutionDetails.json create mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutions.json delete mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutionsDetails.json delete mode 100644 specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentStatuses.json diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentStatus.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentExecution.json similarity index 54% rename from specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentStatus.json rename to specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentExecution.json index 17712b4377cb..19b4e1818a16 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentStatus.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentExecution.json @@ -3,20 +3,20 @@ "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", "resourceGroupName": "exampleRG", "experimentName": "exampleExperiment", - "statusId": "50734542-2e64-4e08-814c-cc0e7475f7e4", + "executionId": "f24500ad-744e-4a26-864b-b76199eac333", "api-version": "2023-11-01" }, "responses": { "200": { "headers": {}, "body": { - "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4", - "type": "Microsoft.Chaos/experiments/statuses", - "name": "50734542-2e64-4e08-814c-cc0e7475f7e4", + "type": "Microsoft.Chaos/experiments/executions", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executions/f24500ad-744e-4a26-864b-b76199eac333", + "name": "f24500ad-744e-4a26-864b-b76199eac333", "properties": { - "status": "Successful", - "createdDateUtc": "2021-07-01T00:00:00.0Z", - "endDateUtc": "2021-07-01T01:00:00.0Z" + "startedAt": "2020-12-14T21:52:52.2552574Z", + "stoppedAt": "2020-12-14T21:56:18.9281956Z", + "status": "failed" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentExecutionDetails.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentExecutionDetails.json deleted file mode 100644 index 57f46560aab9..000000000000 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/GetExperimentExecutionDetails.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", - "resourceGroupName": "exampleRG", - "experimentName": "exampleExperiment", - "executionDetailsId": "f24500ad-744e-4a26-864b-b76199eac333", - "api-version": "2023-11-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "type": "Microsoft.Chaos/experiments/executionDetails", - "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails/f24500ad-744e-4a26-864b-b76199eac333", - "name": "f24500ad-744e-4a26-864b-b76199eac333", - "properties": { - "createdDateTime": "2020-12-14T21:52:42.917983Z", - "lastActionDateTime": "2020-12-14T21:52:52.2552574Z", - "startDateTime": "2020-12-14T21:52:52.2552574Z", - "stopDateTime": "2020-12-14T21:56:18.9281956Z", - "experimentId": "f24500ad-744e-4a26-864b-b76199eac333", - "status": "failed", - "failureReason": "Dependency failure", - "runInformation": { - "steps": [ - { - "stepName": "FirstStep", - "stepId": "FirstStep", - "status": "failed", - "branches": [ - { - "branchName": "FirstBranch", - "branchId": "FirstBranch", - "status": "failed", - "actions": [ - { - "actionName": "urn:provider:agent-v2:Microsoft.Azure.Chaos.Fault.CPUPressureAllProcessors", - "actionId": "59499d33-6751-4b6e-a1f6-58f4d56a040a", - "status": "failed", - "startTime": "2020-12-14T13:56:13.6270153-08:00", - "endTime": "2020-12-14T13:56:13.6270153-08:00", - "targets": [ - { - "status": "succeeded", - "target": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/VM1", - "targetFailedTime": "2021-04-02T16:30:55+00:00", - "targetCompletedTime": "2021-04-02T17:30:55+00:00" - }, - { - "status": "failed", - "target": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/VM1", - "targetFailedTime": "2021-04-02T16:30:55+00:00", - "targetCompletedTime": "2021-04-02T17:30:55+00:00" - } - ] - } - ] - } - ] - } - ] - } - } - } - } - } -} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutions.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutions.json new file mode 100644 index 000000000000..964e9bb4e090 --- /dev/null +++ b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutions.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", + "resourceGroupName": "exampleRG", + "experimentName": "exampleExperiment", + "api-version": "2023-11-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "Microsoft.Chaos/experiments/executions", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executions/", + "name": "f24500ad-744e-4a26-864b-b76199eac333", + "properties": { + "startedAt": "2020-12-14T21:52:52.2552574Z", + "stoppedAt": "2020-12-14T21:56:18.9281956Z", + "status": "failed" + } + }, + { + "type": "Microsoft.Chaos/experiments/executions", + "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails/14d98367-52ef-4596-be4f-53fc81bbfc33", + "name": "14d98367-52ef-4596-be4f-53fc81bbfc33", + "properties": { + "startedAt": "2020-12-14T21:52:52.2552574Z", + "stoppedAt": "2020-12-14T21:56:18.9281956Z", + "status": "success" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2023-11-01" + } + } + } +} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutionsDetails.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutionsDetails.json deleted file mode 100644 index f2bbdfd6492f..000000000000 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentExecutionsDetails.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "parameters": { - "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", - "resourceGroupName": "exampleRG", - "experimentName": "exampleExperiment", - "api-version": "2023-11-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "type": "Microsoft.Chaos/experiments/executionDetails", - "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails/f24500ad-744e-4a26-864b-b76199eac333", - "name": "f24500ad-744e-4a26-864b-b76199eac333", - "properties": { - "createdDateTime": "2020-12-14T21:52:42.917983Z", - "lastActionDateTime": "2020-12-14T21:52:52.2552574Z", - "startDateTime": "2020-12-14T21:52:52.2552574Z", - "stopDateTime": "2020-12-14T21:56:18.9281956Z", - "status": "failed", - "failureReason": "Dependency failure", - "experimentId": "f24500ad-744e-4a26-864b-b76199eac333", - "runInformation": { - "steps": [ - { - "stepName": "FirstStep", - "stepId": "FirstStep", - "status": "failed", - "branches": [ - { - "branchName": "FirstBranch", - "branchId": "FirstBranch", - "status": "failed", - "actions": [ - { - "actionName": "urn:provider:agent-v2:Microsoft.Azure.Chaos.Fault.CPUPressureAllProcessors", - "actionId": "59499d33-6751-4b6e-a1f6-58f4d56a040a", - "status": "failed", - "startTime": "2020-12-14T13:56:13.6270153-08:00", - "endTime": "2020-12-14T13:56:13.6270153-08:00", - "targets": [ - { - "status": "succeeded", - "target": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/VM1", - "targetFailedTime": "2021-04-02T16:30:55+00:00", - "targetCompletedTime": "2021-04-02T17:30:55+00:00" - } - ] - } - ] - } - ] - } - ] - } - } - }, - { - "type": "Microsoft.Chaos/experiments/executionDetails", - "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails/14d98367-52ef-4596-be4f-53fc81bbfc33", - "name": "14d98367-52ef-4596-be4f-53fc81bbfc33", - "properties": { - "createdDateTime": "2020-12-14T21:52:42.917983Z", - "lastActionDateTime": "2020-12-14T21:52:52.2552574Z", - "startDateTime": "2020-12-14T21:52:52.2552574Z", - "stopDateTime": "2020-12-14T21:56:18.9281956Z", - "status": "success", - "failureReason": "", - "experimentId": "14d98367-52ef-4596-be4f-53fc81bbfc33", - "runInformation": { - "steps": [ - { - "stepName": "FirstStep", - "stepId": "FirstStep", - "status": "success", - "branches": [ - { - "branchName": "FirstBranch", - "branchId": "FirstBranch", - "status": "success", - "actions": [ - { - "actionName": "urn:provider:agent-v2:Microsoft.Azure.Chaos.Fault.CPUPressureAllProcessors", - "actionId": "59499d33-6751-4b6e-a1f6-58f4d56a040a", - "status": "success", - "startTime": "2020-12-14T13:56:13.6270153-08:00", - "endTime": "2020-12-14T13:56:13.6270153-08:00", - "targets": [ - { - "status": "succeeded", - "target": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/VM1", - "targetFailedTime": "2021-04-02T16:30:55+00:00", - "targetCompletedTime": "2021-04-02T17:30:55+00:00" - } - ] - } - ] - } - ] - } - ] - } - } - } - ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/executionDetails?continuationToken=&api-version=2023-11-01" - } - } - } -} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentStatuses.json deleted file mode 100644 index b9930de17066..000000000000 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/examples/ListExperimentStatuses.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", - "resourceGroupName": "exampleRG", - "experimentName": "exampleExperiment", - "continuationToken": null, - "api-version": "2023-11-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses/50734542-2e64-4e08-814c-cc0e7475f7e4", - "type": "Microsoft.Chaos/experiments/statuses", - "name": "50734542-2e64-4e08-814c-cc0e7475f7e4", - "properties": { - "status": "Successful", - "createdDateUtc": "2021-07-01T00:00:00.0Z", - "endDateUtc": "2021-07-01T01:00:00.0Z" - } - } - ], - "nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment/statuses?continuationToken=&api-version=2023-11-01" - } - } - } -} diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json index 9a4ef1626694..6c25c254875d 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json @@ -402,13 +402,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/statuses": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions": { "get": { - "description": "Get a list of statuses of a Experiment resource.", + "description": "Get a list of executions of an Experiment resource.", "tags": [ "Experiments" ], - "operationId": "Experiments_ListAllStatuses", + "operationId": "Experiments_ListAllExecutions", "parameters": [ { "$ref": "./types/common.json#/parameters/apiVersion" @@ -425,9 +425,9 @@ ], "responses": { "200": { - "description": "List of statuses returned if request was successful.", + "description": "List of executions returned if request was successful.", "schema": { - "$ref": "./types/experiments.json#/definitions/experimentStatusListResult" + "$ref": "./types/experiments.json#/definitions/experimentExecutionListResult" } }, "default": { @@ -441,19 +441,19 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "List all statuses of a Experiment.": { - "$ref": "./examples/ListExperimentStatuses.json" + "List all executions of am Experiment.": { + "$ref": "./examples/ListExperimentExecutions.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/statuses/{statusId}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions/{executionId}": { "get": { - "description": "Get a status of a Experiment resource.", + "description": "Get an execution of an Experiment resource.", "tags": [ "Experiments" ], - "operationId": "Experiments_GetStatus", + "operationId": "Experiments_GetExecution", "parameters": [ { "$ref": "./types/common.json#/parameters/apiVersion" @@ -468,14 +468,14 @@ "$ref": "./types/experiments.json#/parameters/experimentName" }, { - "$ref": "./types/experiments.json#/parameters/statusId" + "$ref": "./types/experiments.json#/parameters/executionId" } ], "responses": { "200": { - "description": "Status returned if request was successful.", + "description": "Execution returned if request was successful.", "schema": { - "$ref": "./types/experiments.json#/definitions/experimentStatus" + "$ref": "./types/experiments.json#/definitions/experimentExecution" } }, "default": { @@ -486,98 +486,8 @@ } }, "x-ms-examples": { - "Get the status of a Experiment.": { - "$ref": "./examples/GetExperimentStatus.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executionDetails": { - "get": { - "tags": [ - "Experiments" - ], - "description": "Get a list of execution details of a Experiment resource.", - "operationId": "Experiments_ListExecutionDetails", - "parameters": [ - { - "$ref": "./types/common.json#/parameters/apiVersion" - }, - { - "$ref": "./types/common.json#/parameters/subscriptionId" - }, - { - "$ref": "./types/common.json#/parameters/resourceGroupName" - }, - { - "$ref": "./types/experiments.json#/parameters/experimentName" - } - ], - "responses": { - "200": { - "description": "Execution detail if request was successful.", - "schema": { - "$ref": "./types/experiments.json#/definitions/experimentExecutionDetailsListResult" - } - }, - "default": { - "description": "Error response returned if request was unsuccessful.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List experiment executions details": { - "$ref": "./examples/ListExperimentExecutionsDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executionDetails/{executionDetailsId}": { - "get": { - "tags": [ - "Experiments" - ], - "description": "Get an execution detail of a Experiment resource.", - "operationId": "Experiments_GetExecutionDetails", - "parameters": [ - { - "$ref": "./types/common.json#/parameters/apiVersion" - }, - { - "$ref": "./types/common.json#/parameters/subscriptionId" - }, - { - "$ref": "./types/common.json#/parameters/resourceGroupName" - }, - { - "$ref": "./types/experiments.json#/parameters/experimentName" - }, - { - "$ref": "./types/experiments.json#/parameters/executionDetailsId" - } - ], - "responses": { - "200": { - "description": "List of execution details in request was successful.", - "schema": { - "$ref": "./types/experiments.json#/definitions/experimentExecutionDetails" - } - }, - "default": { - "description": "Error response returned if request was unsuccessful.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get experiment execution details": { - "$ref": "./examples/GetExperimentExecutionDetails.json" + "Get the execution of a Experiment.": { + "$ref": "./examples/GetExperimentExecution.json" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/common.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/common.json index 51843a87901d..c27144d49f92 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/common.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/common.json @@ -217,6 +217,13 @@ "in": "query", "x-ms-parameter-location": "method", "x-nullable": false + }, + "$expand": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/experiments.json index fa3aa7e5a075..1104bed5cd9a 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/types/experiments.json @@ -33,8 +33,8 @@ "x-ms-parameter-location": "method", "x-nullable": false }, - "executionDetailsId": { - "name": "executionDetailsId", + "executionId": { + "name": "executionId", "in": "path", "required": true, "x-ms-parameter-location": "method", @@ -523,78 +523,6 @@ }, "additionalProperties": false }, - "experimentStatus": { - "type": "object", - "description": "Model that represents the status of a Experiment.", - "properties": { - "type": { - "type": "string", - "description": "String of the resource type.", - "readOnly": true - }, - "id": { - "type": "string", - "description": "String of the fully qualified resource ID.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "String of the resource name.", - "readOnly": true - }, - "properties": { - "description": "The properties of experiment execution status.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/experimentStatusProperties" - } - }, - "additionalProperties": false - }, - "experimentStatusProperties": { - "description": "Model that represents the Experiment status properties model.", - "type": "object", - "properties": { - "status": { - "type": "string", - "description": "String that represents the status of a Experiment.", - "readOnly": true - }, - "createdDateUtc": { - "type": "string", - "format": "date-time", - "description": "String that represents the created date time of a Experiment.", - "readOnly": true - }, - "endDateUtc": { - "type": "string", - "format": "date-time", - "description": "String that represents the end date time of a Experiment.", - "readOnly": true, - "x-nullable": true - } - }, - "additionalProperties": false - }, - "experimentStatusListResult": { - "type": "object", - "description": "Model that represents a list of Experiment statuses and a link for pagination.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/experimentStatus" - }, - "description": "List of Experiment statuses.", - "readOnly": true - }, - "nextLink": { - "$ref": "./common.json#/definitions/urlNullable", - "description": "URL to retrieve the next page of Experiment statuses.", - "readOnly": true - } - }, - "additionalProperties": false - }, "experimentExecutionActionTargetDetailsProperties": { "description": "Model that represents the Experiment action target details properties model.", "type": "object", @@ -648,28 +576,9 @@ } } }, - "experimentExecutionDetailsListResult": { - "description": "Model that represents a list of Experiment execution details and a link for pagination.", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/experimentExecutionDetails" - }, - "description": "List of Experiment execution details.", - "readOnly": true - }, - "nextLink": { - "$ref": "./common.json#/definitions/urlNullable", - "description": "URL to retrieve the next page of Experiment execution details.", - "readOnly": true - } - } - }, - "experimentExecutionDetails": { - "description": "Model that represents the execution details of a Experiment.", + "experimentExecution": { "type": "object", + "description": "Model that represents the execution of a Experiment.", "properties": { "type": { "type": "string", @@ -687,15 +596,15 @@ "readOnly": true }, "properties": { - "description": "The properties of the experiment execution details.", - "$ref": "#/definitions/experimentExecutionDetailsProperties", + "description": "The properties of experiment execution status.", "x-ms-client-flatten": true, - "readOnly": true + "$ref": "#/definitions/experimentExecutionProperties" } - } + }, + "additionalProperties": false }, - "experimentExecutionDetailsProperties": { - "description": "Model that represents the Experiment execution details properties model.", + "experimentExecutionProperties": { + "description": "Model that represents the execution properties of an Experiment.", "type": "object", "properties": { "experimentId": { @@ -704,58 +613,44 @@ "readOnly": true }, "status": { - "description": "The value of the status of the experiment execution.", - "type": "string", - "readOnly": true - }, - "failureReason": { - "description": "The reason why the execution failed.", - "type": "string", - "readOnly": true - }, - "createdDateTime": { + "description": "The status of the execution.", "type": "string", - "format": "date-time", - "description": "String that represents the created date time.", "readOnly": true }, - "lastActionDateTime": { - "type": "string", - "format": "date-time", - "description": "String that represents the last action date time.", - "readOnly": true - }, - "startDateTime": { + "startedAt": { "type": "string", "format": "date-time", "description": "String that represents the start date time.", "readOnly": true }, - "stopDateTime": { + "stoppedAt": { "type": "string", "format": "date-time", "description": "String that represents the stop date time.", "readOnly": true - }, - "runInformation": { - "description": "The information of the experiment run.", - "type": "object", - "properties": { - "steps": { - "description": "The steps of the experiment run.", - "type": "array", - "items": { - "$ref": "#/definitions/stepStatus" - }, - "x-ms-identifiers": [ - "stepName" - ], - "readOnly": true - } + } + }, + "additionalProperties": false + }, + "experimentExecutionListResult": { + "description": "Model that represents a list of Experiment executions and a link for pagination.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/experimentExecution" }, + "description": "List of Experiment executions.", + "readOnly": true + }, + "nextLink": { + "$ref": "./common.json#/definitions/urlNullable", + "description": "URL to retrieve the next page of Experiment executions.", "readOnly": true } - } + }, + "additionalProperties": false }, "stepStatus": { "description": "Model that represents the a list of branches and branch statuses.", From c8c440aac50ce59d3ee6ae9da63333894a6de4bc Mon Sep 17 00:00:00 2001 From: renzopretto Date: Thu, 12 Oct 2023 11:20:28 -0700 Subject: [PATCH 2/2] chore: fix typos and add expand --- .../Microsoft.Chaos/stable/2023-11-01/experiments.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json index 6c25c254875d..c5f8f292d982 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/experiments.json @@ -441,7 +441,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "List all executions of am Experiment.": { + "List all executions of an Experiment.": { "$ref": "./examples/ListExperimentExecutions.json" } } @@ -469,6 +469,9 @@ }, { "$ref": "./types/experiments.json#/parameters/executionId" + }, + { + "$ref": "./types/common.json#/parameters/$expand" } ], "responses": {