cloudzero / cloudzero-uca-tools Goto Github PK
View Code? Open in Web Editor NEWCloudZero UCA Toolkit - Utilities for transforming and transmitting unit cost data
License: Apache License 2.0
CloudZero UCA Toolkit - Utilities for transforming and transmitting unit cost data
License: Apache License 2.0
We can enhance user onboarding and adoption is by implementing Quick Start documentation that guides users through common scenarios and workflows.
Currently, new users may face challenges when getting started with the project, as they may not have clear guidance on how to perform common tasks or utilize key features effectively. This lack of guidance can lead to frustration and may hinder user adoption.
We should add comprehensive Quick Start documentation that walks users through common scenarios, such as replicating Allocation and Unit Metric telemetry data over a given period of time and randomizing measurements in Allocation and Unit Metric telemetry data. The Quick Start guides should provide step-by-step instructions, accompanied by code examples and explanations, to help users quickly understand and utilize the project's features.
The UCA Toolkit version was decreased instead of increased in last PR merge.
Description:
A 400 Client Error: Bad Request
is returned when attempting to send telemetry data to the CloudZero Unit Cost API at https://api.cloudzero.com/unit-cost/v1/telemetry/allocation/product-cost-per-customer-v1
. The error indicates an "extra keys not allowed" issue, specifically identifying the telemetry-stream
key within the payload as not permissible.
Error Details:
{
"error": {
"type": "InvalidRecordsException",
"message": "extra keys not allowed @ data['records'][0]['telemetry-stream']. Got 'product-cost-per-customer-v1'",
"stream_name": "product-cost-per-customer-v1",
"record": {
"timestamp": "2024-02-08 00:00:00+00:00",
"granularity": "HOURLY",
"element-name": "customer 1",
"filter": {"custom:Products": ["Piper Billing"]},
"telemetry-stream": "product-cost-per-customer-v1",
"value": "10.1230"
}
}
}
Steps to Reproduce:
telemetry-stream
key as part of the record.https://api.cloudzero.com/unit-cost/v1/telemetry/allocation/product-cost-per-customer-v1
with the payload.400 Client Error
with the message indicating that the telemetry-stream
key is not allowed.Expected Behavior:
API requests should follow the documented schema, excluding the telemetry-stream
key in the payload, to prevent the 400 Client Error
.
Actual Behavior:
Including the telemetry-stream
key in the payload causes a validation error and the API responds with a 400 Client Error: Bad Request
.
Resolution:
To resolve this issue, the telemetry-stream
key must be removed from the payload when sending data to the CloudZero Unit Cost API. Users should ensure that their request payload conforms strictly to the documented API schema, which does not include the telemetry-stream
key for the allocation/product-cost-per-customer endpoint.
Action Required:
telemetry-stream
key before sending data to the CloudZero Unit Cost API.Currently, the UCA Toolkit generates data with a default precision that may not always meet the specific needs of users. This enhancement proposes to increase the default precision for generated and to introduce a feature that allows users to customize the default precision. Users should have the flexibility to adjust the default precision via the UCA configuration file.
Proposed Changes:
Expected Benefits:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.