Skip to content

Commit

Permalink
Add traffic info to revisions api (Azure#19054)
Browse files Browse the repository at this point in the history
* Add traffic info to a revision api

* Add deprecated prop

* Prettier fixes

* 1pdate based on new proposal

* Rename

* Change names

* minor fix
  • Loading branch information
ruslany authored Jun 7, 2022
1 parent 0fd5e26 commit 056cc51
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,17 @@
"type": "integer",
"readOnly": true
},
"trafficLabels": {
"description": "Traffic labels associated with this revision",
"type": "array",
"items": {
"$ref": "#/definitions/TrafficLabel"
},
"x-ms-identifiers": [
"label"
],
"readOnly": true
},
"provisioningError": {
"description": "Optional Field - Platform Error Message",
"type": "string",
Expand Down Expand Up @@ -476,6 +487,22 @@
}
}
},
"TrafficLabel": {
"description": "Traffic label information",
"type": "object",
"properties": {
"label": {
"description": "Traffic label assigned to a revision",
"type": "string",
"readOnly": true
},
"fqdn": {
"description": "Fully qualified domain name of a labelled revision",
"type": "string",
"readOnly": true
}
}
},
"RevisionCollection": {
"description": "Container App Revisions collection ARM resource.",
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "Microsoft.App/containerApps/revisions",
"properties": {
"createdTime": "2021-05-24T21:24:22+00:00",
"fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io",
"template": {
"containers": [
{
Expand All @@ -42,6 +42,13 @@
]
}
},
"trafficWeight": 80,
"trafficLabels": [
{
"label": "blue",
"fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io"
}
],
"active": true,
"replicas": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"type": "Microsoft.App/containerApps/revisions",
"properties": {
"createdTime": "2021-05-24T21:24:22+00:00",
"fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerapps.k4apps.io",
"fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io",
"template": {
"containers": [
{
Expand All @@ -43,6 +43,13 @@
]
}
},
"trafficWeight": 80,
"trafficLabels": [
{
"label": "blue",
"fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io"
}
],
"active": true,
"replicas": 1
}
Expand Down

0 comments on commit 056cc51

Please sign in to comment.