Lists all API usage metrics.
ApiUsageApi.listApiUsageMetrics([param1, param2, ...])
APIUsageApi.list_api_usage_metrics([param1, param2, ...])
APIUsageApi.listApiUsageMetrics([param1, param2, ...])
successful operation
Not authorized to view API events.
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.ApiException; import com.trendmicro.deepsecurity.api.ApiUsageApi; import com.trendmicro.deepsecurity.model.APIUsageMetrics; public class ListApiUsageMetricsExample { public static void main(String[] args) { // Setup ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("YOUR HOST"); // Authentication ApiKeyAuth DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } // Initialization // Set Any Required Values ApiUsageApi instance = new ApiUsageApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours APIUsageMetrics result = instance.listApiUsageMetrics(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ApiUsageApi.listApiUsageMetrics"); e.printStackTrace(); } } }
{- "apiUsageMetrics": [
- {
- "apiType": "string",
- "action": "string",
- "method": "string",
- "date": 0,
- "tenantGUID": "string",
- "duration": 0,
- "statusCode": 0,
- "authenticationMethod": "string",
- "expandParameter": "string",
- "responseItemCount": 0,
- "ID": 0
}
]
}
Search for API usage metrics using optional filters.
ApiUsageApi.searchApiUsageMetrics([param1, param2, ...])
APIUsageApi.search_api_usage_metrics([param1, param2, ...])
APIUsageApi.searchApiUsageMetrics([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
Not authorized to view API events.
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 0,
- "stringTest": "equal",
- "stringValue": "string",
- "stringWildcards": true,
- "choiceTest": "equal",
- "choiceValue": "string",
- "firstDateValue": 0,
- "firstDateInclusive": true,
- "lastDateValue": 0,
- "lastDateInclusive": true,
- "nullTest": true,
- "idValue": 0,
- "idTest": "less-than"
}
], - "sortByObjectID": true
}
{- "apiUsageMetrics": [
- {
- "apiType": "string",
- "action": "string",
- "method": "string",
- "date": 0,
- "tenantGUID": "string",
- "duration": 0,
- "statusCode": 0,
- "authenticationMethod": "string",
- "expandParameter": "string",
- "responseItemCount": 0,
- "ID": 0
}
]
}