Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
]
}
}
}
}
}
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
}
]
}
}
}
}
}
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",

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Author

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?

"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
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,10 @@
"required": true,
"type": "string",
"enum": [
"default"
"default",
"asn",
"country",
"state"
],
"description": "The type of HeatMap for the Traffic Manager profile."
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand All @@ -1137,6 +1276,19 @@
},
"description": "Class which is a sparse representation of a Traffic Manager endpoint."
},
"TrafficLocation": {
"properties": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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": {
Expand Down
1 change: 1 addition & 0 deletions specification/trafficmanager/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ These are the global settings for the TrafficManager API.

``` yaml
openapi-type: arm
generate-empty-classes: true
tag: package-2018-04
```

Expand Down