Hvl Logger Producer Server

LogProducerAPI

produceAsync

Asynchronous method for logging


/event/async

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://bit-javalt-dev.hvlnet.net:30099/logger-producer-server/event/async"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogProducerAPIApi;

import java.io.File;
import java.util.*;

public class LogProducerAPIApiExample {

    public static void main(String[] args) {
        
        LogProducerAPIApi apiInstance = new LogProducerAPIApi();
        HvlEventLogModel body = ; // HvlEventLogModel | 
        try {
            HvlResponseVoid result = apiInstance.produceAsync(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerAPIApi#produceAsync");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogProducerAPIApi;

public class LogProducerAPIApiExample {

    public static void main(String[] args) {
        LogProducerAPIApi apiInstance = new LogProducerAPIApi();
        HvlEventLogModel body = ; // HvlEventLogModel | 
        try {
            HvlResponseVoid result = apiInstance.produceAsync(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerAPIApi#produceAsync");
            e.printStackTrace();
        }
    }
}
HvlEventLogModel *body = ; // 

LogProducerAPIApi *apiInstance = [[LogProducerAPIApi alloc] init];

// Asynchronous method for logging
[apiInstance produceAsyncWith:body
              completionHandler: ^(HvlResponseVoid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlLoggerProducerServer = require('hvl_logger_producer_server');

var api = new HvlLoggerProducerServer.LogProducerAPIApi()
var body = ; // {{HvlEventLogModel}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.produceAsync(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class produceAsyncExample
    {
        public void main()
        {

            var apiInstance = new LogProducerAPIApi();
            var body = new HvlEventLogModel(); // HvlEventLogModel | 

            try
            {
                // Asynchronous method for logging
                HvlResponseVoid result = apiInstance.produceAsync(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogProducerAPIApi.produceAsync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLogProducerAPIApi();
$body = ; // HvlEventLogModel | 

try {
    $result = $api_instance->produceAsync($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LogProducerAPIApi->produceAsync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogProducerAPIApi;

my $api_instance = WWW::SwaggerClient::LogProducerAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlEventLogModel->new(); # HvlEventLogModel | 

eval { 
    my $result = $api_instance->produceAsync(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LogProducerAPIApi->produceAsync: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogProducerAPIApi()
body =  # HvlEventLogModel | 

try: 
    # Asynchronous method for logging
    api_response = api_instance.produce_async(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LogProducerAPIApi->produceAsync: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


produceSync

Synchronous method for logging


/event/sync

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://bit-javalt-dev.hvlnet.net:30099/logger-producer-server/event/sync"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogProducerAPIApi;

import java.io.File;
import java.util.*;

public class LogProducerAPIApiExample {

    public static void main(String[] args) {
        
        LogProducerAPIApi apiInstance = new LogProducerAPIApi();
        HvlEventLogModel body = ; // HvlEventLogModel | 
        try {
            HvlResponseVoid result = apiInstance.produceSync(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerAPIApi#produceSync");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogProducerAPIApi;

public class LogProducerAPIApiExample {

    public static void main(String[] args) {
        LogProducerAPIApi apiInstance = new LogProducerAPIApi();
        HvlEventLogModel body = ; // HvlEventLogModel | 
        try {
            HvlResponseVoid result = apiInstance.produceSync(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerAPIApi#produceSync");
            e.printStackTrace();
        }
    }
}
HvlEventLogModel *body = ; // 

LogProducerAPIApi *apiInstance = [[LogProducerAPIApi alloc] init];

// Synchronous method for logging
[apiInstance produceSyncWith:body
              completionHandler: ^(HvlResponseVoid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlLoggerProducerServer = require('hvl_logger_producer_server');

var api = new HvlLoggerProducerServer.LogProducerAPIApi()
var body = ; // {{HvlEventLogModel}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.produceSync(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class produceSyncExample
    {
        public void main()
        {

            var apiInstance = new LogProducerAPIApi();
            var body = new HvlEventLogModel(); // HvlEventLogModel | 

            try
            {
                // Synchronous method for logging
                HvlResponseVoid result = apiInstance.produceSync(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogProducerAPIApi.produceSync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLogProducerAPIApi();
$body = ; // HvlEventLogModel | 

try {
    $result = $api_instance->produceSync($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LogProducerAPIApi->produceSync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogProducerAPIApi;

my $api_instance = WWW::SwaggerClient::LogProducerAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlEventLogModel->new(); # HvlEventLogModel | 

eval { 
    my $result = $api_instance->produceSync(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LogProducerAPIApi->produceSync: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogProducerAPIApi()
body =  # HvlEventLogModel | 

try: 
    # Synchronous method for logging
    api_response = api_instance.produce_sync(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LogProducerAPIApi->produceSync: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


LogProducerCacheAPI

getValueByKey

Get cache value by key


/cache/value/by-key/{key}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://bit-javalt-dev.hvlnet.net:30099/logger-producer-server/cache/value/by-key/{key}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogProducerCacheAPIApi;

import java.io.File;
import java.util.*;

public class LogProducerCacheAPIApiExample {

    public static void main(String[] args) {
        
        LogProducerCacheAPIApi apiInstance = new LogProducerCacheAPIApi();
        String key = key_example; // String | 
        try {
            HvlResponseBoolean result = apiInstance.getValueByKey(key);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerCacheAPIApi#getValueByKey");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogProducerCacheAPIApi;

public class LogProducerCacheAPIApiExample {

    public static void main(String[] args) {
        LogProducerCacheAPIApi apiInstance = new LogProducerCacheAPIApi();
        String key = key_example; // String | 
        try {
            HvlResponseBoolean result = apiInstance.getValueByKey(key);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerCacheAPIApi#getValueByKey");
            e.printStackTrace();
        }
    }
}
String *key = key_example; // 

LogProducerCacheAPIApi *apiInstance = [[LogProducerCacheAPIApi alloc] init];

// Get cache value by key
[apiInstance getValueByKeyWith:key
              completionHandler: ^(HvlResponseBoolean output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlLoggerProducerServer = require('hvl_logger_producer_server');

var api = new HvlLoggerProducerServer.LogProducerCacheAPIApi()
var key = key_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getValueByKey(key, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getValueByKeyExample
    {
        public void main()
        {

            var apiInstance = new LogProducerCacheAPIApi();
            var key = key_example;  // String | 

            try
            {
                // Get cache value by key
                HvlResponseBoolean result = apiInstance.getValueByKey(key);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogProducerCacheAPIApi.getValueByKey: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLogProducerCacheAPIApi();
$key = key_example; // String | 

try {
    $result = $api_instance->getValueByKey($key);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LogProducerCacheAPIApi->getValueByKey: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogProducerCacheAPIApi;

my $api_instance = WWW::SwaggerClient::LogProducerCacheAPIApi->new();
my $key = key_example; # String | 

eval { 
    my $result = $api_instance->getValueByKey(key => $key);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LogProducerCacheAPIApi->getValueByKey: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogProducerCacheAPIApi()
key = key_example # String | 

try: 
    # Get cache value by key
    api_response = api_instance.get_value_by_key(key)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LogProducerCacheAPIApi->getValueByKey: %s\n" % e)

Parameters

Path parameters
Name Description
key*
String
Required

Responses

Status: 200 - OK


queryList

Get cache list by query model


/cache/list

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://bit-javalt-dev.hvlnet.net:30099/logger-producer-server/cache/list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogProducerCacheAPIApi;

import java.io.File;
import java.util.*;

public class LogProducerCacheAPIApiExample {

    public static void main(String[] args) {
        
        LogProducerCacheAPIApi apiInstance = new LogProducerCacheAPIApi();
        HvlLogProducerCacheQueryModel body = ; // HvlLogProducerCacheQueryModel | 
        try {
            HvlResponseListHvlLogProducerCacheModel result = apiInstance.queryList(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerCacheAPIApi#queryList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogProducerCacheAPIApi;

public class LogProducerCacheAPIApiExample {

    public static void main(String[] args) {
        LogProducerCacheAPIApi apiInstance = new LogProducerCacheAPIApi();
        HvlLogProducerCacheQueryModel body = ; // HvlLogProducerCacheQueryModel | 
        try {
            HvlResponseListHvlLogProducerCacheModel result = apiInstance.queryList(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogProducerCacheAPIApi#queryList");
            e.printStackTrace();
        }
    }
}
HvlLogProducerCacheQueryModel *body = ; // 

LogProducerCacheAPIApi *apiInstance = [[LogProducerCacheAPIApi alloc] init];

// Get cache list by query model
[apiInstance queryListWith:body
              completionHandler: ^(HvlResponseListHvlLogProducerCacheModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlLoggerProducerServer = require('hvl_logger_producer_server');

var api = new HvlLoggerProducerServer.LogProducerCacheAPIApi()
var body = ; // {{HvlLogProducerCacheQueryModel}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.queryList(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class queryListExample
    {
        public void main()
        {

            var apiInstance = new LogProducerCacheAPIApi();
            var body = new HvlLogProducerCacheQueryModel(); // HvlLogProducerCacheQueryModel | 

            try
            {
                // Get cache list by query model
                HvlResponseListHvlLogProducerCacheModel result = apiInstance.queryList(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogProducerCacheAPIApi.queryList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLogProducerCacheAPIApi();
$body = ; // HvlLogProducerCacheQueryModel | 

try {
    $result = $api_instance->queryList($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LogProducerCacheAPIApi->queryList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogProducerCacheAPIApi;

my $api_instance = WWW::SwaggerClient::LogProducerCacheAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlLogProducerCacheQueryModel->new(); # HvlLogProducerCacheQueryModel | 

eval { 
    my $result = $api_instance->queryList(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LogProducerCacheAPIApi->queryList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogProducerCacheAPIApi()
body =  # HvlLogProducerCacheQueryModel | 

try: 
    # Get cache list by query model
    api_response = api_instance.query_list(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LogProducerCacheAPIApi->queryList: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK