onapsdk.ves package

Submodules

onapsdk.ves.ves module

Base VES event sender.

class onapsdk.ves.ves.Ves

Bases: onapsdk.ves.ves_service.VesService

Ves library provides functions for sending events to VES.

event_batch_endpoint_url: str = '{}/eventListener/{}/eventBatch'
event_endpoint_url: str = '{}/eventListener/{}'
classmethod send_batch_event(version, json_event, basic_auth)

Send a batch event stored in a file to VES.

Parameters
  • version (str) – (str) version of VES data format

  • json_event (str) – (str) event to send

  • basic_auth (Dict[str, str]) – Dict[str, str], for example:{ ‘username’: ‘bob’, ‘password’: ‘secret’ }

Return type

Optional[Response]

Returns

(requests.Response) HTTP response status

classmethod send_event(version, json_event, basic_auth)

Send an event stored in a file to VES.

Parameters
  • version (str) – (str) version of VES data format

  • json_event (str) – (str) event to send

  • basic_auth (Dict[str, str]) – Dict[str, str], for example:{ ‘username’: ‘bob’, ‘password’: ‘secret’ }

Return type

Optional[Response]

Returns

(requests.Response) HTTP response status

onapsdk.ves.ves_service module

Base VES module.

class onapsdk.ves.ves_service.VesService

Bases: onapsdk.onap_service.OnapService

Base VES class.

Stores url to VES API (edit if you want to use other) and authentication tuple (username, password).

Module contents

ONAP SDK VES package.