tembo_api_client/models/app_metrics.rs
1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud </br> </br> To find a Tembo Data API, please find it here: </br> </br> [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct AppMetrics {
15 /// path to scrape metrics
16 #[serde(rename = "path")]
17 pub path: String,
18 /// port must be also exposed in one of AppService.routing[]
19 #[serde(rename = "port")]
20 pub port: i32,
21}
22
23impl AppMetrics {
24 pub fn new(path: String, port: i32) -> AppMetrics {
25 AppMetrics { path, port }
26 }
27}