F5 TEEM Library
Project description
Introduction
Python library providing an interface for F5's TEEM infrastructure to provide usage analytics to F5.
Note: Similar to node-based f5-teem library (https://www.npmjs.com/package/@f5devcentral/f5-teem).
Usage (Anonymous API)
from f5teem import AnonymousDeviceClient
client_info = {
'name': 'f5-sdk-python',
'version': '1.0.0',
'id': '<ID of the machine>'
}
telemetry_client = AnonymousDeviceClient(client_info, api_key='API KEY')
telemetry_client.report({ 'foo': 'bar' }, telemetry_type='Installation Usage', telemetry_type_version='1')
By default, f5-teem will send a report that includes
- The type of Operating System where telemetry is sent from (for example, 'Linux')
Example Telemetry Record
{
"digitalAssetName": "f5-sdk-python",
"digitalAssetVersion": "1.0.0",
"digitalAssetId": "",
"documentType": "Installation Usage",
"documentVersion": "1",
"observationStartTime": "",
"observationEndTime": "",
"epochTime": "",
"telemetryId": "",
"telemetryRecords": [
{
"foo": "bar",
"clientProperties": {
"os": "linux"
}
}
]
}
Use TEEM staging environment
- Set environment variable
export TEEM_API_ENVIRONMENT='staging'
Future Improvements
- f5-teem-python should support Reg Key API when running on BIG-IP (similar to node based f5-teem library)
- f5-teem-python should honor the phone home setting when running on BIG-IP.
tmsh modify sys software update auto-phonehome disabled
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
f5-teem-1.0.0rc1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for f5_teem-1.0.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2287c08251885e9816b7d8def8f8c4651f791c9423150a8471f276cd43dbb42d |
|
MD5 | a4a25f3ecd34ecc5f1e9786c88cad836 |
|
BLAKE2b-256 | 17c831f89c36df0a680e0d47b2b4c1bcb40c27e7e1af80acbb7c3e36e23b7c24 |