Monitoring - Get Spark Job List
Haal een lijst met Spark-toepassingen voor de werkruimte op.
GET {endpoint}/monitoring/workloadTypes/spark/Applications?api-version=2020-12-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
Het eindpunt voor de ontwikkeling van de werkruimte, bijvoorbeeld |
api-version
|
query | True |
string |
Aanvraagkoptekst
Name | Vereist | Type | Description |
---|---|---|---|
x-ms-client-request-id |
string |
Kan een GUID bieden, wat handig is voor foutopsporing en om betere klantondersteuning te bieden |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Geslaagd |
Voorbeelden
Get list of spark application
Voorbeeldaanvraag
GET myWorkspace.dev.azuresynapse.net/monitoring/workloadTypes/spark/Applications?api-version=2020-12-01
Voorbeeldrespons
{
"nJobs": 1,
"sparkJobs": [
{
"state": "Failure",
"name": "sparkjobname",
"submitter": "submittername",
"compute": "ComputeName",
"sparkApplicationId": "sparkApplicationId",
"livyId": "LivyIdValue",
"timing": [
"Ended || Submitting || In Progress",
"553h 11m"
],
"sparkJobDefinition": null,
"pipeline": [],
"jobType": "Spark session || Batch Job",
"submitTime": "2019-11-11T15:08:52.9554438-08:00",
"endTime": "2019-11-11T15:08:56.2314317-08:00",
"queuedDuration": "1s",
"runningDuration": "2s",
"totalDuration": "3s"
}
]
}
Definities
Name | Description |
---|---|
Spark |
|
Spark |
SparkJob
Name | Type | Description |
---|---|---|
compute |
string |
|
endTime |
string |
|
jobType |
string |
|
livyId |
string |
|
name |
string |
|
pipeline |
Spark |
|
queuedDuration |
string |
|
runningDuration |
string |
|
sparkApplicationId |
string |
|
sparkJobDefinition |
string |
|
state |
string |
|
submitTime |
string |
|
submitter |
string |
|
timing |
string[] |
|
totalDuration |
string |
SparkJobListViewResponse
Name | Type | Description |
---|---|---|
nJobs |
integer |
|
sparkJobs |
Spark |