Skip to content

Commit

Permalink
Network experiment structure update (#7599)
Browse files Browse the repository at this point in the history
* updated next experiment client structure

* update examples to match azure cli standards
  • Loading branch information
Zim Kalinowski authored Oct 23, 2019
1 parent 3cb8759 commit 02ed9b0
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"experimentName": "Experiment1",
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"experimentName": "MyExperiment",
"parameters": {
"properties": {
"description": "this is my first experiment!",
Expand All @@ -23,8 +23,8 @@
"responses": {
"200": {
"body": {
"name": "Experiment1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1",
"name": "MyExperiment",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment",
"tags": {
"key1": "value1",
"key2": "value2"
Expand All @@ -49,8 +49,8 @@
},
"201": {
"body": {
"name": "Experiment1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1",
"name": "MyExperiment",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment",
"tags": {
"key1": "value1",
"key2": "value2"
Expand All @@ -75,8 +75,8 @@
},
"202": {
"body": {
"name": "Experiment1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1",
"name": "MyExperiment",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment",
"tags": {
"key1": "value1",
"key2": "value2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"parameters": {
"properties": {
"enabledState": "Enabled"
Expand All @@ -14,8 +14,8 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1",
"name": "Profile1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
"name": "MyProfile",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand All @@ -30,8 +30,8 @@
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1",
"name": "Profile1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
"name": "MyProfile",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand All @@ -46,8 +46,8 @@
},
"202": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1",
"name": "Profile1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
"name": "MyProfile",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"experimentName": "Experiment1"
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"experimentName": "MyExperiment"
},
"responses": {
"200": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1"
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile"
},
"responses": {
"200": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"experimentName": "Experiment1"
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"experimentName": "MyExperiment"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1",
"name": "Experiment1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment",
"name": "MyExperiment",
"tags": {
"key1": "value1",
"key2": "value2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"experimentName": "Experiment1",
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"experimentName": "MyExperiment",
"aggregationInterval": "Daily"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1/LatencyScorecard",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment/LatencyScorecard",
"name": "DailyLatencyScorecard",
"properties": {
"description": "This scorecard is the latency scorecard, aggregated over a day",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1"
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1"
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1",
"name": "Profile1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
"name": "MyProfile",
"tags": {
"key1": "value1",
"key2": "value2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"experimentName": "Experiment1",
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"experimentName": "MyExperiment",
"startDateTimeUTC": "2019-07-21T17:32:28Z",
"endDateTimeUTC": "2019-09-21T17:32:28Z",
"aggregationInterval": "Hourly",
Expand All @@ -13,7 +13,7 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1/Timeseries",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment/Timeseries",
"properties": {
"endpoint": "https://endpointA.com",
"startDateTimeUTC": "2019-07-29",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1"
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Experiment1",
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments",
"name": "MyExperiment",
"id": "/subscriptions/subId/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments",
"properties": {
"description": "this is my first experiment!",
"endpointA": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1"
"resourceGroupName": "MyResourceGroup"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/",
"name": "Profile1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/",
"name": "MyProfile",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"experimentName": "Experiment1",
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"experimentName": "MyExperiment",
"parameters": {
"properties": {
"description": "string",
Expand All @@ -15,8 +15,8 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1",
"name": "Experiment1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment",
"name": "MyExperiment",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand All @@ -42,8 +42,8 @@
},
"202": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1/Experiments/Experiment1",
"name": "Experiment1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile/Experiments/MyExperiment",
"name": "MyExperiment",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"parameters": {
"api-version": "2019-11-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"profileName": "Profile1",
"resourceGroupName": "MyResourceGroup",
"profileName": "MyProfile",
"parameters": {
"properties": {
"enabledState": "Enabled"
Expand All @@ -17,8 +17,8 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1",
"name": "Profile1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
"name": "MyProfile",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand All @@ -33,8 +33,8 @@
},
"202": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/NetworkExperimentProfiles/Profile1",
"name": "Profile1",
"id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
"name": "MyProfile",
"type": "Microsoft.Network/NetworkExperimentprofiles",
"tags": {
"key1": "value1",
Expand Down
6 changes: 3 additions & 3 deletions specification/frontdoor/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ cli:
"^.*frontdoor.*$": "-"
"^.*[/]networkexperimentprofiles([/][^/]*)?$": "internet-analyzer profile"
"^.*[/]networkexperimentprofiles[/].*[/]preconfiguredendpoints[/].*$": "internet-analyzer profile preconfigured-endpoint"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/]([/][^/]*)?$": "internet-analyzer profile experiment"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/].*[/]latencyscorecard$": "internet-analyzer profile experiment latency-scorecard"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/].*[/]timeseries$": "internet-analyzer profile experiment timeseries"
"^.*[/]networkexperimentprofiles[/].*[/]experiments([/][^/]*)?$": "internet-analyzer test"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/].*[/]latencyscorecard$": "internet-analyzer scorecard latency"
"^.*[/]networkexperimentprofiles[/].*[/]experiments[/].*[/]timeseries$": "internet-analyzer scorecard timeseries"
adjustments:
"/sku": "Sku*/"
"/properties/endpointa": "endpointA_*/"
Expand Down

0 comments on commit 02ed9b0

Please sign in to comment.