GetOverview
Retrieves the overview data of task scheduling for Professional Edition applications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadSchedulerxOverviewQuery |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| Namespace |
string |
No |
The namespace UID. |
adcfc35d-e2fe-4fe9-bbaa-20e90ffc**** |
| NamespaceSource |
string |
No |
The source of the namespace. This parameter is required only for specific third parties. |
schedulerx |
| GroupId |
string |
No |
The application group ID. |
testSchedulerx.defaultGroup |
| Operate |
string |
Yes |
The operation type. Valid values:
Valid values:
|
query |
| MetricType |
integer |
Yes |
The metric type. Valid values:
Valid values:
|
0 |
| StartTime |
integer |
Yes |
The start timestamp of the data. Unit: seconds. Example: 1684166400. |
1684166400 |
| EndTime |
integer |
No |
The end timestamp of the data. Unit: seconds. Example: 1684166400. If you do not specify this parameter, the current time is used by default. |
1684166400 |
The data queried by this API corresponds to the three sections of the overview content in the console. The request parameter configuration requirements are as follows:
-
Basic task information: The request parameter settings are as follows. Set Operate to query, MetricType to 0, and StartTime to the current UNIX timestamp.
-
Task runtime information within a time range: The request parameter settings are as follows. Set Operate to query, MetricType to 1, and StartTime to the required start time for the query. The start time cannot be earlier than 15 days ago because the retention period of time series data is 15 days.
-
Task runtime time series information within a time range: The request parameter settings are as follows. Set Operate to query_range, MetricType to 1, and StartTime to the required start time for the query. The default recommended start time is 1 hour before the current time. Do not set it to an earlier time because a large amount of data is returned for each time point.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The unique ID of the request. |
39090022-1F3B-4797-8518-6B61095F1AF0 |
| Code |
integer |
The status code. |
200 |
| Success |
boolean |
Indicates whether the API call was successful. Valid values:
|
true |
| Message |
string |
The error message. This parameter is returned only when an error occurs. |
No access permission for the namespace [***] |
| Data |
string |
The overview data in JSON format. The data corresponds to the overview content in the console and includes the following three types of results:
|
Basic info: {"schedulerx_job_counter_disable": "4","schedulerx_job_trigger_counter_running": "0","schedulerx_job_counter_enable": "70","schedulerx_job_counter_all": "74","schedulerx_worker_counter": "2"} |
The Data parameter returns JSON content in different formats based on the three types of data. Examples:
Basic information:
{
"schedulerx_job_counter_disable": "4", // Number of disabled tasks
"schedulerx_job_counter_enable": "70", // Number of enabled tasks
"schedulerx_job_counter_all": "74", // Total number of tasks
"schedulerx_worker_counter": "2", // Number of online workers
"schedulerx_job_trigger_counter_running": "0" // Number of running task instances
}
Task runtime information within a time range:
{
"schedulerx_job_trigger_counter_success": "227", //
"schedulerx_job_trigger_counter_all": "225",
"schedulerx_job_trigger_counter_failed": "0"
}
Task runtime time series information within a time range: returns the statistics of task triggers, successful runs, and failed runs at specific time points within the specified time range.
[
{
"data": [
[
1686110400000,
4
],
[
1686110460000,
5
]
],
"name": "Number of triggers"
},
{
"data": [
[
1686110400000,
0
],
[
1686110460000,
0
]
],
"name": "Failed executions"
},
{
"data": [
[
1686110400000,
4
],
[
1686110460000,
5
]
],
"name": "Successful executions"
}
]
Examples
Success response
JSON format
{
"RequestId": "39090022-1F3B-4797-8518-6B61095F1AF0",
"Code": 200,
"Success": true,
"Message": "No access permission for the namespace [***]",
"Data": "Basic info: {\"schedulerx_job_counter_disable\": \"4\",\"schedulerx_job_trigger_counter_running\": \"0\",\"schedulerx_job_counter_enable\": \"70\",\"schedulerx_job_counter_all\": \"74\",\"schedulerx_worker_counter\": \"2\"}"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.