diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml
index 7077d97672..fe2e75c0da 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml
@@ -455,5 +455,15 @@
io.entgra.device.mgt.core.apimgt.analytics.extension
provided
+
+ com.google.api-client
+ google-api-client
+ 2.2.0
+
+
+ com.google.apis
+ google-api-services-sheets
+ v4-rev539-1.25.0
+
\ No newline at end of file
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ApiResponseTime.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ApiResponseTime.java
new file mode 100644
index 0000000000..021bbaf559
--- /dev/null
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ApiResponseTime.java
@@ -0,0 +1,108 @@
+package org.wso2.carbon.device.mgt.jaxrs.service.impl;
+
+
+import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport;
+import com.google.api.client.googleapis.json.GoogleJsonError;
+import com.google.api.client.googleapis.json.GoogleJsonResponseException;
+import com.google.api.client.http.javanet.NetHttpTransport;
+import com.google.api.services.sheets.v4.Sheets;
+import com.google.api.services.sheets.v4.model.AppendValuesResponse;
+import com.google.api.services.sheets.v4.model.ValueRange;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.client.RestTemplate;
+
+import java.io.IOException;
+import java.net.URISyntaxException;
+import java.security.GeneralSecurityException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import static org.osgi.service.application.ApplicationDescriptor.APPLICATION_NAME;
+import static org.wso2.carbon.device.mgt.jaxrs.service.impl.GoogleSheet.JSON_FACTORY;
+import static org.wso2.carbon.device.mgt.jaxrs.service.impl.GoogleSheet.getCredentials;
+
+@SuppressWarnings("ALL")
+@RestController
+public class ApiResponseTime {
+
+ public static Object getstartTime() {
+ return null;
+ }
+
+ public static Object getendTime() {
+ return null;
+ }
+
+ public static Object getelapsedTime() {
+ return null;
+ }
+
+ public static void appendDetails(long startTime, long endTime, long elapsedTime)
+ throws GeneralSecurityException, IOException, URISyntaxException {
+ final String spreadsheetId = "1OZCS5NRwwSum9ai3ra4lABtU0UGW-9yLYgZk-aQfxpw";
+ final NetHttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();
+
+ Sheets service =
+ new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))
+ .setApplicationName(APPLICATION_NAME)
+ .build();
+
+ // Create a list of values to append to the sheet
+ List