-
Notifications
You must be signed in to change notification settings - Fork 5.9k
add location tabs to heatmap bottom view port #3559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2174cac
add location tabs to heatmap bottom view port
yuncmsft a706188
add location tabs to heatmap bottom view port
yuncmsft b60d33f
add location tabs to heatmap bottom view port
yuncmsft 82a6d30
add location tabs to heatmap bottom view port
yuncmsft 9bda23c
add location tabs to heatmap bottom view port
yuncmsft c096c89
HeatMapCountry-GET.json
yuncmsft a2ea428
create HeatMapAsn-GET.json
yuncmsft af0613f
create HeatMapState-GET.json
yuncmsft 8e57d4b
update x-ms-discriminator-value
yuncmsft 03c6279
Update HeatMapAsn-GET.json
yuncmsft c81fcab
Update HeatMapCountry-GET.json
yuncmsft 1d135ab
Update HeatMapState.json
yuncmsft 00ea355
update x-ms-discriminator-value to type
yuncmsft feaf930
update example id/name/type
yuncmsft b115fde
update example id/name/type
yuncmsft 4892e88
update example id/name/type
yuncmsft 9251d0b
update discriminator to use 'name'
yuncmsft 5d5c098
remove extra comma
yuncmsft c2d87c5
Add generate-empty-classes
lmazuel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...manager/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HeatMapAsn-GET.json
This file contains hidden or 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,38 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "{subscription-id}", | ||
| "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", | ||
| "profileName": "azuresdkfornetautoresttrafficmanager3880", | ||
| "heatMapType": "asn", | ||
| "api-version": "2018-04-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/asnTrafficFraction", | ||
| "name": "asnTrafficFraction", | ||
| "type": "Microsoft.Network/trafficManagerProfiles/heatMaps", | ||
| "properties": { | ||
| "trafficFlows": [ | ||
| { | ||
| "ASN": "3329", | ||
| "Percentage": 90.15 | ||
| }, | ||
| { | ||
| "ASN": "5805", | ||
| "Percentage": 5.21 | ||
| }, | ||
| { | ||
| "ASN": "7912", | ||
| "Percentage": 3.12 | ||
| }, | ||
| { | ||
| "ASN": "3910", | ||
| "Percentage": 1.25 | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
38 changes: 38 additions & 0 deletions
38
...ger/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HeatMapCountry-GET.json
This file contains hidden or 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,38 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "{subscription-id}", | ||
| "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", | ||
| "profileName": "azuresdkfornetautoresttrafficmanager3880", | ||
| "heatMapType": "country", | ||
| "api-version": "2018-04-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/countryTrafficFraction", | ||
| "name": "countryTrafficFraction", | ||
| "type": "Microsoft.Network/trafficManagerProfiles/heatMaps", | ||
| "properties": { | ||
| "trafficFlows": [ | ||
| { | ||
| "Country": "US", | ||
| "Percentage": 90.15 | ||
| }, | ||
| { | ||
| "Country": "PT", | ||
| "Percentage": 5.21 | ||
| }, | ||
| { | ||
| "Country": "BR", | ||
| "Percentage": 3.12 | ||
| }, | ||
| { | ||
| "Country": "CN", | ||
| "Percentage": 1.25 | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
38 changes: 38 additions & 0 deletions
38
...nager/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HeatMapState-GET.json
This file contains hidden or 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,38 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "{subscription-id}", | ||
| "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", | ||
| "profileName": "azuresdkfornetautoresttrafficmanager3880", | ||
| "heatMapType": "state", | ||
| "api-version": "2018-04-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/stateTrafficFraction", | ||
| "name": "stateTrafficFraction", | ||
| "type": "Microsoft.Network/trafficManagerProfiles/heatMaps", | ||
| "properties": { | ||
| "trafficFlows": [ | ||
| { | ||
| "State": "US/Washington", | ||
| "Percentage": 90.15 | ||
| }, | ||
| { | ||
| "State": "PT/Lisbon", | ||
| "Percentage": 5.21 | ||
| }, | ||
| { | ||
| "State": "BR/Rio", | ||
| "Percentage": 3.12 | ||
| }, | ||
| { | ||
| "State": "CN/Montreal", | ||
| "Percentage": 1.25 | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -728,7 +728,10 @@ | |
| "required": true, | ||
| "type": "string", | ||
| "enum": [ | ||
| "default" | ||
| "default", | ||
| "asn", | ||
| "country", | ||
| "state" | ||
| ], | ||
| "description": "The type of HeatMap for the Traffic Manager profile." | ||
| }, | ||
|
|
@@ -784,6 +787,15 @@ | |
| "HeatMap-GET": { | ||
| "$ref": "./examples/HeatMap-GET.json" | ||
| }, | ||
| "HeatMapAsn-GET": { | ||
| "$ref": "./examples/HeatMapAsn-GET.json" | ||
| }, | ||
| "HeatMapCountry-GET": { | ||
| "$ref": "./examples/HeatMapCountry-GET.json" | ||
| }, | ||
| "HeatMapState-GET": { | ||
| "$ref": "./examples/HeatMapState-GET.json" | ||
| }, | ||
| "HeatMap-GET-With-TopLeft-BotRight": { | ||
| "$ref": "./examples/HeatMap-GET-With-TopLeft-BotRight.json" | ||
| }, | ||
|
|
@@ -1016,21 +1028,15 @@ | |
| } | ||
| }, | ||
| "description": "Class representing a Traffic Manager endpoint properties." | ||
| }, | ||
| "HeatMapModel": { | ||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/HeatMapProperties", | ||
| "description": "The properties of the Traffic Manager HeatMap." | ||
| } | ||
| }, | ||
| }, | ||
| "HeatMapModel": { | ||
| "description": "Super-class representing a Traffic Manager HeatMap.", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/ProxyResource" | ||
| } | ||
| ], | ||
| "description": "Class representing a Traffic Manager HeatMap." | ||
| "discriminator": "name" | ||
| }, | ||
| "UserMetricsModel": { | ||
| "properties": { | ||
|
|
@@ -1095,34 +1101,167 @@ | |
| }, | ||
| "description": "Class representing a Traffic Manager HeatMap traffic flow properties." | ||
| }, | ||
| "HeatMapProperties": { | ||
| "HeatMapModelDefault": { | ||
| "x-ms-discriminator-value": "default", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModel", | ||
| "type": "object" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "startTime": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "The beginning of the time window for this HeatMap, inclusive." | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/HeatMapProperties", | ||
| "description": "The properties of the Traffic Manager HeatMap Traffic Flow." | ||
| } | ||
| }, | ||
| "description": "Sub-class representing model for default Traffic Manager HeatMap traffic flow." | ||
| }, | ||
| "HeatMapProperties":{ | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModelDefault", | ||
| "type": "object" | ||
| }, | ||
| "endTime": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "The ending of the time window for this HeatMap, exclusive." | ||
| { | ||
| "properties": { | ||
| "startTime": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "The beginning of the time window for this HeatMap, inclusive." | ||
| }, | ||
| "endTime": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "The ending of the time window for this HeatMap, exclusive." | ||
| }, | ||
| "endpoints": { | ||
| "type": "array", | ||
| "description": "The endpoints used in this HeatMap calculation.", | ||
| "items": { | ||
| "$ref": "#/definitions/HeatMapEndpoint" | ||
| } | ||
| }, | ||
| "trafficFlows": { | ||
| "type": "array", | ||
| "description": "The traffic flows produced in this HeatMap calculation.", | ||
| "items": { | ||
| "$ref": "#/definitions/TrafficFlow" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "description": "Sub-class representing default Traffic Manager HeatMap traffic flow properties." | ||
| }, | ||
| "HeatMapModelAsn": { | ||
| "x-ms-discriminator-value": "asnTrafficFraction", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModel", | ||
| "type": "object" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/HeatMapAsnProperties", | ||
| "description": "The properties of the Traffic Manager HeatMap traffic fraction by ASN." | ||
| } | ||
| }, | ||
| "description": "Sub-class representing model for Traffic Manager HeatMap traffic fraction by ASN." | ||
| }, | ||
| "HeatMapAsnProperties":{ | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModelAsn", | ||
| "type": "object" | ||
| }, | ||
| "endpoints": { | ||
| "type": "array", | ||
| "description": "The endpoints used in this HeatMap calculation.", | ||
| "items": { | ||
| "$ref": "#/definitions/HeatMapEndpoint" | ||
| { | ||
| "properties": { | ||
| "trafficFlows": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/TrafficLocation" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "description": "Sub-class representing properties for Traffic Manager HeatMap traffic fraction by ASN." | ||
| }, | ||
| "HeatMapModelCountry": { | ||
| "x-ms-discriminator-value": "countryTrafficFraction", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModel", | ||
| "type": "object" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/HeatMapCountryProperties", | ||
| "description": "The properties of the Traffic Manager HeatMap traffic fraction by country." | ||
| } | ||
| }, | ||
| "description": "Sub-class representing model for Traffic Manager HeatMap traffic fraction by country." | ||
| }, | ||
| "HeatMapCountryProperties":{ | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModelCountry", | ||
| "type": "object" | ||
| }, | ||
| "trafficFlows": { | ||
| "type": "array", | ||
| "description": "The traffic flows produced in this HeatMap calculation.", | ||
| "items": { | ||
| "$ref": "#/definitions/TrafficFlow" | ||
| { | ||
| "properties": { | ||
| "trafficFlows": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/TrafficLocation" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "description": "Sub-class representing properties forTraffic Manager HeatMap traffic fraction by country." | ||
| }, | ||
| "HeatMapModelState": { | ||
| "x-ms-discriminator-value": "stateTrafficFraction", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModel", | ||
| "type": "object" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/HeatMapStateProperties", | ||
| "description": "The properties of the Traffic Manager HeatMap traffic fraction by country-state." | ||
| } | ||
| }, | ||
| "description": "Class representing a Traffic Manager HeatMap properties." | ||
| "description": "Sub-class representing model for Traffic Manager HeatMap traffic fraction by country-state." | ||
| }, | ||
| "HeatMapStateProperties":{ | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/HeatMapModelState", | ||
| "type": "object" | ||
| }, | ||
| { | ||
| "properties": { | ||
| "trafficFlows": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/TrafficLocation" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "description": "Sub-class representing properties for Traffic Manager HeatMap traffic fraction by country-state." | ||
| }, | ||
| "HeatMapEndpoint": { | ||
| "properties": { | ||
|
|
@@ -1137,6 +1276,19 @@ | |
| }, | ||
| "description": "Class which is a sparse representation of a Traffic Manager endpoint." | ||
| }, | ||
| "TrafficLocation": { | ||
| "properties": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please mark the readonly properties wherever applicable |
||
| "location": { | ||
| "type": "string", | ||
| "description": "Location of heatmap traffic sources." | ||
| }, | ||
| "percentage": { | ||
| "type": "number", | ||
| "description": "Percentage of traffic from a specific location." | ||
| } | ||
| }, | ||
| "description": "Class which represents locations of traffic sources and percentage." | ||
| }, | ||
| "Endpoint": { | ||
| "properties": { | ||
| "properties": { | ||
|
|
||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name value coming from "id" does not match the value in "name" property. Please make sure service returns the correct "id" and "name" value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated name and type - do we need a separate API version?