- Following the Corva Dev Center Backend Getting Started and Python SDK documentation:
- Create, develop, locally test and deploy a Python backend task time app:
- +App: Backend→ On-Demand → App Name: Lab Task App → Segment: Drilling → Log Type: Time → Category: Analytics
- Create a dataset:
- Dataset Type: Time-Based
- Name: {provider}#lab-task-time-app
- In the manifest.json file, set “read”,”write” permissions for {provider}#lab-task-time-app.
- POST a payload from either Swagger or Postman that includes a {provider} asset_id, company_id, timestamp, provider, app_key, properties { "key1": "value1","key2": "value2" } object
- You decide on the key values to send in "properties": { }.
- Get the required fields from the TaskEvent:
“properties”: { }object - Perform a simple calculation from the values of the
“properties”: { }object - Post the calculated values to {provider}#lab-task-time-app.
- Test the POST request in the Corva Data API Swagger document or in Postman utilizing your company's API key or your Bearer Token
- Locally test the lambda function using the Pytest template within the app directory
- Zip up the app and deploy to the Dev Center
- Utilizing the App Runner feature, test the app on Production
- Confirm no errors in Log Files and that the data is being populated in the {provider}#lab-task-time-app dataset
- Create, develop, locally test and deploy a Python backend task time app: