# AgilegravityagileAiTrainerserverClient.RuntimeLogApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getRuntimeLog**](RuntimeLogApi.md#getRuntimeLog) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/channels/{channelId}/runtimelogs/{runtimelogId} | 
[**getRuntimeLogs**](RuntimeLogApi.md#getRuntimeLogs) | **GET** /api/v1/accounts/{accountId}/projects/{projectId}/channels/{channelId}/runtimelogs | 

<a name="getRuntimeLog"></a>
# **getRuntimeLog**
> JSCodeRuntimeLog getRuntimeLog(accountId, projectId, channelId, runtimelogId)



get the runtime log by id

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.RuntimeLogApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let channelId = "channelId_example"; // String | channelId
let runtimelogId = "runtimelogId_example"; // String | runtimelogId

apiInstance.getRuntimeLog(accountId, projectId, channelId, runtimelogId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **channelId** | **String**| channelId | 
 **runtimelogId** | **String**| runtimelogId | 

### Return type

[**JSCodeRuntimeLog**](JSCodeRuntimeLog.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

<a name="getRuntimeLogs"></a>
# **getRuntimeLogs**
> [JSCodeRuntimeLog] getRuntimeLogs(accountId, projectId, channelId, opts)



get the runtime logs by query

### Example
```javascript
import AgilegravityagileAiTrainerserverClient from 'agilegravityagile_ai_trainerserver_client';
let defaultClient = AgilegravityagileAiTrainerserverClient.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

// Configure OAuth2 access token for authorization: oauthClientCredentials
let oauthClientCredentials = defaultClient.authentications['oauthClientCredentials'];
oauthClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new AgilegravityagileAiTrainerserverClient.RuntimeLogApi();
let accountId = "accountId_example"; // String | accountID
let projectId = "projectId_example"; // String | projectId
let channelId = "channelId_example"; // String | channelId
let opts = { 
  'lastId': "lastId_example", // String | The lastId of items to skip before starting to collect the result set
  'limit': 56, // Number | The numbers of items to return
  'eventId': "eventId_example", // String | eventId
  'statusCode': "statusCode_example", // String | statuCcode
  'emitLogs': true // Boolean | statuCcode
};
apiInstance.getRuntimeLogs(accountId, projectId, channelId, opts).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| accountID | 
 **projectId** | **String**| projectId | 
 **channelId** | **String**| channelId | 
 **lastId** | **String**| The lastId of items to skip before starting to collect the result set | [optional] 
 **limit** | **Number**| The numbers of items to return | [optional] 
 **eventId** | **String**| eventId | [optional] 
 **statusCode** | **String**| statuCcode | [optional] 
 **emitLogs** | **Boolean**| statuCcode | [optional] 

### Return type

[**[JSCodeRuntimeLog]**](JSCodeRuntimeLog.md)

### Authorization

[api_key](../README.md#api_key), [oauthClientCredentials](../README.md#oauthClientCredentials)

### HTTP request headers

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

