Partager via


Monitoring - Get Spark Job List

Obtenez la liste des applications Spark pour l’espace de travail.

GET {endpoint}/monitoring/workloadTypes/spark/Applications?api-version=2020-12-01

Paramètres URI

Nom Dans Obligatoire Type Description
endpoint
path True

string

Le point de terminaison du développement de l’espace de travail, par exemple https://myworkspace.dev.azuresynapse.net.

api-version
query True

string

En-tête de la demande

Nom Obligatoire Type Description
x-ms-client-request-id

string

Peut fournir un guid, qui est utile pour le débogage et pour fournir un meilleur support client

Réponses

Nom Type Description
200 OK

SparkJobListViewResponse

Succès

Exemples

Get list of spark application

Exemple de requête

GET myWorkspace.dev.azuresynapse.net/monitoring/workloadTypes/spark/Applications?api-version=2020-12-01

Exemple de réponse

{
  "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"
    }
  ]
}

Définitions

Nom Description
SparkJob
SparkJobListViewResponse

SparkJob

Nom Type Description
compute

string

endTime

string

jobType

string

livyId

string

name

string

pipeline

SparkJob[]

queuedDuration

string

runningDuration

string

sparkApplicationId

string

sparkJobDefinition

string

state

string

submitTime

string

submitter

string

timing

string[]

totalDuration

string

SparkJobListViewResponse

Nom Type Description
nJobs

integer

sparkJobs

SparkJob[]