Skip to content
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

Add traffic info to revisions api #19054

Merged
Merged
Show file tree
Hide file tree
Changes from 8 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
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