Event and data generator for IaaSInventory
What 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 works
Event logger
event = CndEvent(host, port, token, protocol)
Deployment start and finish
When a deployment start
event.deployment_start(
deployment_id=deployment_id,
service=service,
deployment_name=deployment_name,
project=project,
source=source
)
When a deployment finish
event.deployment_end(
success=success,
deployment_id=deployment_id,
service=service,
deployment_name=deployment_name,
source=source,
project=project
)
Host start and finish
When a host start to build
event.host_start(
host_id=host_id,
hostname=hostname,
tiers=tiers,
deployment_id=deployment_id,
source=source,
domain=domain
)
When a host finish to build
event.host_end(
success=success,
host_id=host_id,
hostname=hostname,
tiers=tiers,
deployment_id=deployment_id,
source=source,
domain=domain
)
Workflow start and finish
When a workflow start to build
event.host_workflow_start(
workflow_id=workflow_id,
application=application,
name=name,
domain=domain,
hostname=hostname
)
When a workflow finish to build
event.host_workflow_end(
success=success,
workflow_id=workflow_id,
application=application,
name=name,
domain=domain,
hostname=hostname
)
Inventory logger
inv = CndInventory(host, port, token, protocol)
vRA vm
inv.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
)
Application
inv.app(
source=source,
uuid=uuid,
domain=domain,
hostname=hostname,
deleted=deleted
)
Data from vra/vcenter like
Vra
Naming
iaas_inventory/hosts/<source>/<hostname>/
Content
uuid: 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: array
Application
Naming
iaas_inventory/app/<application-name>/<hostname>/
Content
uuid: string
deleted: boolean
Data from event
Host
To start event logging
path
iaas_inventory/events/host/<hostname>/start
content
start_at: datetime
tiers: string
deployment_id: string
To finish event logging
path
iaas_inventory/events/host/<hostname>/end
content
end_at: datetime
tiers: string
deployment_id: string
Deployments
To start event logging
path
iaas_inventory/events/deployment/<deployment-id>/start
content
start_at: datetime
service: string
deployment_name: string
source: string
To finish event logging
path
iaas_inventory/events/deployment/<deployment-id>/end
content
end_at: datetime
service: string
deployment_name: string
source: string
Workflow
To start event logging
path
iaas_inventory/events/workflow/<workflow-id>/start
content
workflow_name: string
application: string
start_at: datetime
deployment_id: string
To finish event logging
path
iaas_inventory/events/workflow/<workflow-id>/end
content
workflow_name: string
application: string
end_at: datetime
deployment_id: string
Metadata
Release files for cnd-event-logger 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cnd_event_logger-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for cnd_event_logger-0.1.3-py3-none-any.whl |
Release files / cnd_event_logger-0.1.3-py3-none-any.whl
| Download URL | cnd_event_logger-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5792368b460bf89d668c7b290bae6b9f343b5bbc3e33d4877e1008ae288052e
|
|
BLAKE2b-256 checksum How to use checksums |
20fa74b96dbfb4bd2741e35c0bcf979f4c3d0244acdc40bdcd82988a475a18d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for cnd-event-logger 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.