Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.69 KB

MetricsApi.md

File metadata and controls

63 lines (41 loc) · 1.69 KB

OmniCoreModelAndStateManagementApi.MetricsApi

All URIs are relative to https://api.korewireless.com

Method HTTP request Description
getMetrics GET /omnicore/subscriptions/{subscriptionId}/metrics

getMetrics

Metrics getMetrics(subscriptionId)

get metrics

Example

import OmniCoreModelAndStateManagementApi from 'omni_core_model_and_state_management_api';
let defaultClient = OmniCoreModelAndStateManagementApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new OmniCoreModelAndStateManagementApi.MetricsApi();
let subscriptionId = "subscriptionId_example"; // String | Subscription ID
apiInstance.getMetrics(subscriptionId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
subscriptionId String Subscription ID

Return type

Metrics

Authorization

apiKey, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json