sureshanaparti commented on a change in pull request #5588:
URL: https://github.com/apache/cloudstack/pull/5588#discussion_r777446595



##########
File path: 
plugins/metrics/src/main/java/org/apache/cloudstack/response/DbMetricsResponse.java
##########
@@ -0,0 +1,107 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package org.apache.cloudstack.response;
+
+import com.cloud.serializer.Param;
+import com.google.gson.annotations.SerializedName;
+import org.apache.cloudstack.api.ApiConstants;
+import org.apache.cloudstack.api.BaseResponse;
+import org.apache.cloudstack.api.MetricConstants;
+
+import java.util.Date;
+
+public class DbMetricsResponse extends BaseResponse {
+    @SerializedName(MetricConstants.COLLECTION_TIME)
+    @Param(description = "the time these statistics were collected")
+    private Date collectionTime;
+
+    @SerializedName(ApiConstants.HOST_NAME)
+    @Param(description = "the name of the active usage server")
+    private String hostname;
+
+    @SerializedName(MetricConstants.REPLICAS)
+    @Param(description = "the state of the usage server")
+    private String[] replicas;
+
+    @SerializedName(MetricConstants.CONNECTIONS)
+    @Param(description = "the number of connections to the DB")
+    private int connections;
+
+    @SerializedName(MetricConstants.UPTIME)
+    @Param(description = "the uptime of the DB")
+    private int uptime;
+
+    @SerializedName(MetricConstants.TLS_VERSIONS)
+    @Param(description = "the tls versions currently in use (accepted) by the 
DB")
+    private String tlsVersions;
+
+    @SerializedName(ApiConstants.VERSION)
+    @Param(description = "the version of the currently running DB")
+    private String version;
+
+    @SerializedName(MetricConstants.VERSION_COMMENT)
+    @Param(description = "the version of the currently running DB")
+    private String versionComment;
+
+    @SerializedName(MetricConstants.QUERIES)
+    @Param(description = "the number of queroes performed on the DB")

Review comment:
       ```suggestion
       @Param(description = "the number of queries performed on the DB")
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to