Versions - Get
Hämtar versionsinformationen, till exempel datum som skapades, senast ändrat datum, slutpunkts-URL, antal avsikter och entiteter, tränings- och publiceringsstatus.
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
app
|
path | True |
string (uuid) |
Program-ID:t. |
Endpoint
|
path | True |
string |
Cognitive Services-slutpunkter som stöds (protokoll och värdnamn, till exempel: https://westus.api.cognitive.microsoft.com). |
version
|
path | True |
string |
Versions-ID:t. |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
En modell som innehåller versionsinformationen. |
|
Other Status Codes |
Felsvar. |
Säkerhet
Ocp-Apim-Subscription-Key
Typ:
apiKey
I:
header
Exempel
Successful Get Application Version info request
Exempelbegäran
GET {Endpoint}/luis/api/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/versions/0.1/
Exempelsvar
{
"version": "0.1",
"createdDateTime": "2017-08-01T14:34:15Z",
"lastModifiedDateTime": "2017-11-28T20:12:09Z",
"lastTrainedDateTime": "2017-11-28T20:12:12Z",
"lastPublishedDateTime": "2017-11-28T20:12:35Z",
"endpointUrl": "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e",
"assignedEndpointKey": {
"SubscriptionKey": "",
"SubscriptionRegion": "westus",
"SubscriptionName": ""
},
"externalApiKeys": {},
"intentsCount": 4,
"entitiesCount": 0,
"endpointHitsCount": 175,
"trainingStatus": "Trained"
}
Definitioner
Name | Description |
---|---|
Error |
Felsvar när en åtgärd anropas i API:et. |
Training |
Träningsstatus. |
Version |
Objektmodell för en programversion. |
ErrorResponse
Felsvar när en åtgärd anropas i API:et.
Name | Typ | Description |
---|---|---|
errorType |
string |
TrainingStatus
Träningsstatus.
Värde | Description |
---|---|
Fail | |
InProgress | |
Queued | |
Success | |
UpToDate |
VersionInfo
Objektmodell för en programversion.
Name | Typ | Description |
---|---|---|
assignedEndpointKey |
object |
Slutpunktsnyckeln. |
createdDateTime |
string (date-time) |
Tidsstämpeln för att skapa versionen. |
endpointHitsCount |
integer |
Antal anrop till den här slutpunkten. |
endpointUrl |
string |
Runtime-slutpunkts-URL:en för den här modellversionen. |
entitiesCount |
integer |
Antal entiteter i den här modellen. |
externalApiKeys |
object |
Externa nycklar. |
intentsCount |
integer |
Antal avsikter i den här modellen. |
lastModifiedDateTime |
string (date-time) |
Tidsstämpel för den senaste uppdateringen. |
lastPublishedDateTime |
string (date-time) |
Tidsstämpel när publicerades senast. |
lastTrainedDateTime |
string (date-time) |
Tidsstämpel för senaste gången modellen tränades. |
trainingStatus |
Aktuell träningsstatus. |
|
version |
string |
Versions-ID:t. T.ex. "0.1" |