File tree Expand file tree Collapse file tree 3 files changed +17
-15
lines changed
src/main/kotlin/spp/protocol Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ object IDManager {
240240 /* *
241241 * Built by [ServiceID.buildId]
242242 */
243- private val serviceId : String? = null ,
244- private val endpointName : String? = null
243+ val serviceId : String? = null ,
244+ val endpointName : String? = null
245245 )
246246
247247 data class EndpointRelationDefine (
Original file line number Diff line number Diff line change @@ -24,14 +24,12 @@ import io.vertx.core.Vertx
2424import io.vertx.core.eventbus.DeliveryOptions
2525import io.vertx.core.impl.ContextInternal
2626import io.vertx.core.json.JsonObject
27- import spp.protocol.artifact.metrics.MetricStep
2827import spp.protocol.platform.auth.*
2928import spp.protocol.platform.developer.Developer
3029import spp.protocol.platform.developer.SelfInfo
3130import spp.protocol.platform.general.*
3231import spp.protocol.platform.status.InstanceConnection
3332import spp.protocol.service.SourceServices.LIVE_MANAGEMENT
34- import java.time.Instant
3533
3634/* *
3735 * Back-end service for general and administrative tasks.
@@ -128,17 +126,6 @@ interface LiveManagementService {
128126 fun getInstances (service : Service ): Future <List <ServiceInstance >>
129127 fun getEndpoints (service : Service , limit : Int? ): Future <List <ServiceEndpoint >>
130128 fun searchEndpoints (service : Service , keyword : String , limit : Int? ): Future <List <ServiceEndpoint >>
131- fun sortMetrics (
132- name : String ,
133- parentService : String? ,
134- normal : Boolean? ,
135- scope : Scope ? ,
136- topN : Int ,
137- order : Order ,
138- step : MetricStep ,
139- start : Instant ,
140- stop : Instant ?
141- ): Future <List <SelectedRecord >>
142129
143130 fun getActiveProbes (): Future <List <InstanceConnection >>
144131 fun getActiveProbe (id : String ): Future <InstanceConnection ?>
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ import io.vertx.core.impl.ContextInternal
2727import io.vertx.core.json.JsonObject
2828import spp.protocol.artifact.metrics.MetricStep
2929import spp.protocol.artifact.trace.TraceStack
30+ import spp.protocol.platform.general.Order
31+ import spp.protocol.platform.general.Scope
32+ import spp.protocol.platform.general.SelectedRecord
3033import spp.protocol.service.SourceServices.LIVE_VIEW
3134import spp.protocol.view.HistoricalView
3235import spp.protocol.view.LiveView
@@ -82,6 +85,18 @@ interface LiveViewService {
8285 fun clearLiveViews (): Future <List <LiveView >>
8386 fun getLiveViewStats (): Future <JsonObject >
8487
88+ fun sortMetrics (
89+ name : String ,
90+ parentService : String? ,
91+ normal : Boolean? ,
92+ scope : Scope ? ,
93+ topN : Int ,
94+ order : Order ,
95+ step : MetricStep ,
96+ start : Instant ,
97+ stop : Instant ?
98+ ): Future <List <SelectedRecord >>
99+
85100 @GenIgnore
86101 fun getHistoricalMetrics (
87102 entityIds : List <String >,
You can’t perform that action at this time.
0 commit comments