Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Querying DR Monitoring Data

Function

This API is used to query DR monitoring data based on the task ID.

Debugging

You can debug the API in API Explorer to support automatic authentication. API Explorer can automatically generate and debug example SDK code.

Constraints

You can call a maximum of 10 APIs in batches.

URI

POST /v3/{project_id}/jobs/disaster-recovery-monitoring-data

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region

For details about how to obtain the project ID, see Obtaining a Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

The content type.

The default value is application/json.

X-Auth-Token

Yes

String

User token obtained from IAM.

X-Language

No

String

Request language type

Default value: en-us

Values:

  • en-us
  • zh-cn
Table 3 Request body parameters

Parameter

Mandatory

Type

Description

jobs

Yes

Array of strings

Task query request body.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

results

Array of objects

DR monitoring data response body set.

For details, see Table 5.

count

Integer

Total number of queries.

Table 5 Data structure description of field results

Parameter

Type

Description

id

String

Task ID.

data_guard_minitor

object

DR task monitoring data.

For details, see Table 6.

Table 6 Data structure description of field data_guard_minitor

Parameter

Type

Description

bandwidth

String

Bandwidth.

cpuUsed_percent

String

CPU usage.

dst_delay

Long

Delay of the destination database.

dst_io

String

Destination database I/O.

dst_normal

Boolean

Connection status of the destination database.

dst_offset

String

OffSet of the destination database.

dst_rps

String

destination database RPS.

mem_used_inMB

string

Memory usage

node_mem_inMB

Long

Total memory size of a node.

node_offset

String

OffSet of the replication instance.

node_volume_inGB

Long

Total disk size of a node.

sr_delay

Long

Delay of the source database.

sr_offset

String

OffSet of the source database.

src_io

String

Source database I/O.

src_normal

Boolean

Connection status of the source database.

src_rps

String

Source database RPS.

trans_inMB

String

Amount of migrated data

trans_lines

String

Number of rows to be migrated.

volume_used_inGB

String

Disk usage.

migration_bytes_per_second

Long

Number of bytes migrated per second.

Example Request

Example of querying DR monitoring data:

https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/disaster-recovery-monitoring-data

{
  "jobs" : [ "9a470239-2308-4bb5-a6bc-1040402fjb21" ]
}

Example Response

Status code: 200

OK

{
  "results" : [ {
    "id" : "b683ea69-a29c-456f-952f-2b682180jb52",
    "data_guard_minitor" : {
      "src_normal" : true,
      "dst_normal" : true,
      "sr_offset" : "mysql-bin.000445:191",
      "node_offset" : "mysql-bin.000445:191",
      "dst_offset" : "N/A",
      "sr_delay" : 0,
      "dst_delay" : 81046806,
      "src_rps" : "0",
      "src_io" : "0.0",
      "bandwidth" : "37",
      "dst_rps" : "0",
      "dst_io" : "0.0",
      "trans_inMB" : "0",
      "trans_lines" : "0",
      "volume_used_inGB" : "5",
      "mem_used_inMB" : "2166",
      "cpuUsed_percent" : "1.4",
      "node_volume_inGB" : 100,
      "node_mem_inMB" : 8192,
      "migration_bytes_per_second": 789456
    }
  } ],
  "count" : 1
}

Status Code

Status Code

Description

200

OK

400

Bad Request

Error Code

For details, see Error Code.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback