Package: cnd-event-logger
Event and data generator for IaaSInventoryWhat is CndEventLogger ?CndEventLogger is a python lib to help you to log IaaS event and inventory in a consul server. Later you can create a script or user CndEyes application to consolidate all data.How it's worksEvent loggerevent = CndEvent(host, port, token, protocol)Deployment start and finishWhen a deployment startevent.deployment_start(
    deployment_id=deployment_id, 
    service=service, 
    deployment_name=deployment_name, 
    project=project, 
    source=source
)When a deployment finishevent.deployment_end(
    success=success, 
    deployment_id=deployment_id, 
    service=service, 
    deployment_name=deployment_name, 
    source=source, 
    project=project
)Host start and finishWhen a host start to buildevent.host_start(
    host_id=host_id, 
    hostname=hostname, 
    tiers=tiers, 
    deployment_id=deployment_id, 
    source=source, 
    domain=domain
)When a host finish to buildevent.host_end(
    success=success,
    host_id=host_id,
    hostname=hostname,
    tiers=tiers,
    deployment_id=deployment_id,
    source=source,
    domain=domain
)Workflow start and finishWhen a workflow start to buildevent.host_workflow_start(
    workflow_id=workflow_id, 
    application=application,
    name=name,
    domain=domain,
    hostname=hostname
)When a workflow finish to buildevent.host_workflow_end(
    success=success,
    workflow_id=workflow_id, 
    application=application,
    name=name,
    domain=domain,
    hostname=hostname
)Inventory loggerinv = CndInventory(host, port, token, protocol)vRA vminv.vra(
    uuid=host_uuid, 
    hostname=hostname,
    domain=domain,
    tiers=tiers,
    datacenter=datacenter,
    deployment_id=deployment_id,
    source=source,
    cloud_account=cloud_account,
    cpu=cpu,
    memory=memory,
    os_type=os_type,
    software_name=software_name,
    power_state=power_state,
    tags=tags,
    item_updated_at=item_updated_at,
    item_created_at=item_created_at
)Applicationinv.app(
    source=source,
    uuid=uuid, 
    domain=domain,
    hostname=hostname,
    deleted=deleted
)Data from vra/vcenter likeVraNamingiaas_inventory/hosts/<source>/<hostname>/Contentuuid: string
deleted: boolean
datacenter: string
cloud_account: string
cpu: integer
memory: integer
os_type: string
software_name: string
power_state: boolean
item_created_at: datetime
item_updated_at: datetime
tags: arrayApplicationNamingiaas_inventory/app/<application-name>/<hostname>/Contentuuid: string
deleted: booleanData from eventHostTo start event loggingpathiaas_inventory/events/host/<hostname>/startcontentstart_at: datetime
tiers: string
deployment_id: stringTo finish event loggingpathiaas_inventory/events/host/<hostname>/endcontentend_at: datetime
tiers: string
deployment_id: stringDeploymentsTo start event loggingpathiaas_inventory/events/deployment/<deployment-id>/startcontentstart_at: datetime
service: string
deployment_name: string
source: stringTo finish event loggingpathiaas_inventory/events/deployment/<deployment-id>/endcontentend_at: datetime
service: string
deployment_name: string
source: stringWorkflowTo start event loggingpathiaas_inventory/events/workflow/<workflow-id>/startcontentworkflow_name: string
application: string
start_at: datetime
deployment_id: stringTo finish event loggingpathiaas_inventory/events/workflow/<workflow-id>/endcontentworkflow_name: string
application: string
end_at: datetime
deployment_id: string