1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-02 01:17:58 +02:00
unleash.unleash/frontend/src/openapi/models/RequestsPerSecondSchemaDataResultInnerMetric.ts
Gastón Fournier 4b519ead4f
perf: Simplify queries to prometheus (#2706)
## About the changes
This PR improves our queries to Prometheus (instead of making multiple queries do only one) and improves the UI and the code. 

The reports aggregate all HTTP methods (GET, POST, PUT, DELETE, OPTIONS, HEAD and PATCH) without distinction under the same "endpoint" (a relative path inside unleash up to a certain depth)

Co-authored-by: Nuno Góis <nuno@getunleash.ai>
2022-12-19 17:06:59 +01:00

72 lines
2.0 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
* Unleash API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 4.19.0-beta.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
/**
* A key value set representing the metric
* @export
* @interface RequestsPerSecondSchemaDataResultInnerMetric
*/
export interface RequestsPerSecondSchemaDataResultInnerMetric {
/**
*
* @type {string}
* @memberof RequestsPerSecondSchemaDataResultInnerMetric
*/
appName?: string;
/**
*
* @type {string}
* @memberof RequestsPerSecondSchemaDataResultInnerMetric
*/
endpoint?: string;
}
/**
* Check if a given object implements the RequestsPerSecondSchemaDataResultInnerMetric interface.
*/
export function instanceOfRequestsPerSecondSchemaDataResultInnerMetric(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function RequestsPerSecondSchemaDataResultInnerMetricFromJSON(json: any): RequestsPerSecondSchemaDataResultInnerMetric {
return RequestsPerSecondSchemaDataResultInnerMetricFromJSONTyped(json, false);
}
export function RequestsPerSecondSchemaDataResultInnerMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestsPerSecondSchemaDataResultInnerMetric {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'appName': !exists(json, 'appName') ? undefined : json['appName'],
};
}
export function RequestsPerSecondSchemaDataResultInnerMetricToJSON(value?: RequestsPerSecondSchemaDataResultInnerMetric | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'appName': value.appName,
};
}