All Downloads are FREE. Search and download functionalities are using the official Maven repository.

king.metrics.metrics-portal_2.11.0.5.1.source-code.portal.routes Maven / Gradle / Ivy

There is a newer version: 0.9.2
Show newest version
# Copyright 2014 Brandon Arp
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ~~~~

# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# Home page
GET        /                            controllers.Assets.at(path="/public/html", file="index.html")

# Configuration
GET        /config                      controllers.MetaController.config()

# Health checks
GET        /ping                        controllers.MetaController.ping()

# Telemetry proxy
GET        /v1/proxy/stream             controllers.ProxyController.stream(uri: String ?= null)

# Hosts
GET        /v1/hosts/query              controllers.HostController.query(name: String ?= null, state: String ?= null, cluster: String ?= null, limit: java.lang.Integer ?= null, offset: java.lang.Integer ?= null, sort_by: String ?= null)

# Alerts
GET        /v1/alerts/query             controllers.AlertController.query(contains: String ?= null, context: String ?= null, cluster: String ?= null, service: String ?= null, limit: java.lang.Integer ?= null, offset: java.lang.Integer ?= null)
GET        /v1/alerts/:id               controllers.AlertController.get(id: String)

# Expressions
GET        /v1/expressions/query        controllers.ExpressionController.query(contains: String ?= null, cluster: String ?= null, service: String ?= null, limit: java.lang.Integer ?= null, offset: java.lang.Integer ?= null)
GET        /v1/expressions/:id          controllers.ExpressionController.get(id: String)

# Map static resources from the /public folder to the /assets URL path
GET        /assets/*file                controllers.Assets.versioned(path = "/public", file: Asset)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy