Download OpenAPI specification:Download
Treno gives software engineering teams visibility into their operations, processes, and performance. Learn more about how Treno can help your engineering organization at www.treno.io. The Treno API provides enterprise customers with the ability to retrieve and manage the engineering intelligence data in their Workspace.
All requests to the Treno API must be authenticated. A request is authenticated using HTTP Basic Authentication to provide an API key and secret. Contact your Treno representative for assistance obtaining API keys.
A Workspace is the top-level container for a Treno account. Workspaces contain all of an account’s integrations, configuration, and data. Within a Workspace, data may be organized into a hierarchy of Projects to report on specific subsets of the organization. Refer to the Projects section for details.
A Project is a container within a Treno Workspace that reports on a subset of the account’s data. Projects may be organized into a hierarchy so that data from sub-projects is rolled up into the project that contains them.
A Monitor describes a derivative time series which is composed of a number of different Metrics, each of which has:
The Metrics in a Monitor are evaluated over time according to their relationship to their respective targets and the result is weighted and normalized into a percentage-based score that describes how well the collective set of input Metrics have attained their targets.
Returns a list of all workspaces the calling user is a member of
[- {
- "archived_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "features": [
- 0
], - "flags": [
- "string"
], - "id": "string",
- "locale": "string",
- "name": "string",
- "time_zone": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Returns a list of all projects the caller has access to for the specified workspace
| workspace_id required | string Workspace ID |
| expand | string Fields to expand, specify 'projects' to expand sub-projects |
[- {
- "data": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "id": "string",
- "locale": "string",
- "name": "string",
- "parent_id": "string",
- "subordinate": [ ],
- "time_zone": "string",
- "type": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "page": {
- "cursor": "string",
- "length": 0,
- "next": "string",
- "offset": 0,
- "prev": "string"
}, - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "total": 0
}
}
]Returns a list of all Index Monitors the caller has access to for the specified workspace
| workspace_id required | string Workspace ID |
[- {
- "data": [
- {
- "active": true,
- "categories": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "creator_id": "string",
- "description": 0,
- "id": "string",
- "indicators": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "ratings": [
- {
- "bounds": {
- "lower": {
- "Abs": { },
- "BigFloat": "string",
- "BigInt": "string",
- "Coder": { },
- "Encode": 0,
- "Float": { },
- "Float64": 0,
- "Int": { },
- "Int64": 0,
- "IsInf": true,
- "Log": { },
- "Log10": { },
- "Neg": { },
- "Sign": { },
- "Sqrt": { },
- "String": null
}, - "upper": {
- "Abs": { },
- "BigFloat": "string",
- "BigInt": "string",
- "Coder": { },
- "Encode": 0,
- "Float": { },
- "Float64": 0,
- "Int": { },
- "Int64": 0,
- "IsInf": true,
- "Log": { },
- "Log10": { },
- "Neg": { },
- "Sign": { },
- "Sqrt": { },
- "String": null
}
}, - "level": "string"
}
], - "target": {
- "active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "description": 0,
- "id": "string",
- "managed": true,
- "metric": {
- "Funcs": [
- "string"
], - "Title": "string"
}, - "metric_id": true,
- "name": "string",
- "scale": "string",
- "selector": "string",
- "thresholds": [
- {
- "active": true,
- "bounds": {
- "lower": null,
- "upper": null
}, - "created_at": "2019-08-24T14:15:22Z",
- "description": 0,
- "function": "string",
- "id": "string",
- "key": "string",
- "name": "string",
- "period": 0,
- "target_id": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "transforms": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z"
}, - "target_id": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "weight": 0
}
], - "name": "string",
- "scale": "string",
- "tags": [
- "string"
], - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "transforms": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "page": {
- "cursor": "string",
- "length": 0,
- "next": "string",
- "offset": 0,
- "prev": "string"
}, - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "total": 0
}
}
]Returns the trend for the Index Monitor for the requested period of time.
| workspace_id required | string Workspace ID |
| monitor_id required | string Monitor ID |
| since | date-time Return series data since this date |
| until | date-time Return series data until this date |
| length | integer Return up to this many values, max 1000 |
[- {
- "data": {
- "count": 0,
- "name": "string",
- "time": "2019-08-24T14:15:22Z",
- "trend": 0
}, - "meta": {
- "page": {
- "cursor": "string",
- "length": 0,
- "next": "string",
- "offset": 0,
- "prev": "string"
}, - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "total": 0
}
}
]Returns the metric series data, that is values for each timescale during the requested time frame. Metric data is available for timescales of day (1d), week (7d), and month (30d). When requesting metric series data for a period time there will be one value per timescale in the period. For example requesting a timescale of 1d for a period of 30 days will return 30 values, however requesting a timescale of 7d for the same period of 30 days will return just 4 values.
The Index Score is available as the sum value in each data value.
| workspace_id required | string Workspace ID |
| monitor_id required | string Monitor ID |
| scale required | string The metric timescale rollup, either 1d, 7d, or 30d representing rollup by day, week, or month. |
| since | date-time Return series data since this date |
| until | date-time Return series data until this date |
| length | integer Return up to this many values, max 1000 |
[- {
- "data": [
- {
- "avg": 0,
- "count": 0,
- "max": 0,
- "min": 0,
- "name": "string",
- "sum": 0,
- "time": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "page": {
- "cursor": "string",
- "length": 0,
- "next": "string",
- "offset": 0,
- "prev": "string"
}, - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "total": 0
}
}
]Returns a list of all Index Monitors the caller has access to for the specified project
| workspace_id required | string Workspace ID |
| project_id required | string Project ID |
[- {
- "data": [
- {
- "active": true,
- "categories": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "creator_id": "string",
- "description": 0,
- "id": "string",
- "indicators": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "ratings": [
- {
- "bounds": {
- "lower": {
- "Abs": { },
- "BigFloat": "string",
- "BigInt": "string",
- "Coder": { },
- "Encode": 0,
- "Float": { },
- "Float64": 0,
- "Int": { },
- "Int64": 0,
- "IsInf": true,
- "Log": { },
- "Log10": { },
- "Neg": { },
- "Sign": { },
- "Sqrt": { },
- "String": null
}, - "upper": {
- "Abs": { },
- "BigFloat": "string",
- "BigInt": "string",
- "Coder": { },
- "Encode": 0,
- "Float": { },
- "Float64": 0,
- "Int": { },
- "Int64": 0,
- "IsInf": true,
- "Log": { },
- "Log10": { },
- "Neg": { },
- "Sign": { },
- "Sqrt": { },
- "String": null
}
}, - "level": "string"
}
], - "target": {
- "active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "description": 0,
- "id": "string",
- "managed": true,
- "metric": {
- "Funcs": [
- "string"
], - "Title": "string"
}, - "metric_id": true,
- "name": "string",
- "scale": "string",
- "selector": "string",
- "thresholds": [
- {
- "active": true,
- "bounds": {
- "lower": null,
- "upper": null
}, - "created_at": "2019-08-24T14:15:22Z",
- "description": 0,
- "function": "string",
- "id": "string",
- "key": "string",
- "name": "string",
- "period": 0,
- "target_id": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "transforms": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z"
}, - "target_id": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "weight": 0
}
], - "name": "string",
- "scale": "string",
- "tags": [
- "string"
], - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "transforms": [
- "string"
], - "updated_at": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "page": {
- "cursor": "string",
- "length": 0,
- "next": "string",
- "offset": 0,
- "prev": "string"
}, - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "total": 0
}
}
]Returns the trend for the Index Monitor for the requested period of time.
| workspace_id required | string Workspace ID |
| project_id required | string Project ID |
| monitor_id required | string Monitor ID |
| rating required | string The rating (elite, high, medium, low) for which to target as reaching a score of 100%. The Treno UI always uses "elite" |
| since | date-time Return series data since this date |
| until | date-time Return series data until this date |
| length | integer Return up to this many values, max 1000 |
[- {
- "data": {
- "count": 0,
- "name": "string",
- "time": "2019-08-24T14:15:22Z",
- "trend": 0
}, - "meta": {
- "page": {
- "cursor": "string",
- "length": 0,
- "next": "string",
- "offset": 0,
- "prev": "string"
}, - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "total": 0
}
}
]Returns the metric series data, that is values for each timescale during the requested time frame. Metric data is available for timescales of day (1d), week (7d), and month (30d). When requesting metric series data for a period time there will be one value per timescale in the period. For example requesting a timescale of 1d for a period of 30 days will return 30 values, however requesting a timescale of 7d for the same period of 30 days will return just 4 values.
The Index Score is available as the sum value in each data value.
| workspace_id required | string Workspace ID |
| project_id required | string Project ID |
| monitor_id required | string Monitor ID |
| rating required | string The rating (elite, high, medium, low) for which to target as reaching a score of 100%. The Treno UI always uses "elite" |
| scale required | string The metric timescale rollup, either 1d, 7d, or 30d representing rollup by day, week, or month. |
| since | date-time Return series data since this date |
| until | date-time Return series data until this date |
| length | integer Return up to this many values, max 1000 |
[- {
- "data": [
- {
- "avg": 0,
- "count": 0,
- "max": 0,
- "min": 0,
- "name": "string",
- "sum": 0,
- "time": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "page": {
- "cursor": "string",
- "length": 0,
- "next": "string",
- "offset": 0,
- "prev": "string"
}, - "timeframe": {
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z"
}, - "total": 0
}
}
]