GetOverview

Updated at:
Copy as MD

Retrieves the overview data of task scheduling for Professional Edition applications.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • query: queries data within a time range

  • query_range: queries time series data within a time range

Valid values:

  • query :

    Queries data within a time range.

  • query_range :

    Queries time series data within a time range.

query

MetricType

integer

Yes

The metric type. Valid values:

  • 0: basic information about tasks

  • 1: task execution information

Valid values:

  • 0 :

    Basic information about tasks.

  • 1 :

    Task execution information.

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: The call was successful.

  • false: The call failed.

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 information.

  • Task runtime information within a time range.

  • 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.

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.