Class AbstractPrometheusApi<T>

  • All Implemented Interfaces:
    org.yamcs.api.Api<T>
    Direct Known Subclasses:
    PrometheusApi

    public abstract class AbstractPrometheusApi<T>
    extends Object
    implements org.yamcs.api.Api<T>
    • Constructor Detail

      • AbstractPrometheusApi

        public AbstractPrometheusApi()
    • Method Detail

      • getMetrics

        public abstract void getMetrics​(T ctx,
                                        GetMetricsRequest request,
                                        org.yamcs.api.Observer<org.yamcs.api.HttpBody> observer)
        Exports metrics in Prometheus text format
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.yamcs.api.Api<T>
      • getRequestPrototype

        public final com.google.protobuf.Message getRequestPrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getRequestPrototype in interface org.yamcs.api.Api<T>
      • getResponsePrototype

        public final com.google.protobuf.Message getResponsePrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getResponsePrototype in interface org.yamcs.api.Api<T>
      • callMethod

        public final void callMethod​(com.google.protobuf.Descriptors.MethodDescriptor method,
                                     T ctx,
                                     com.google.protobuf.Message request,
                                     org.yamcs.api.Observer<com.google.protobuf.Message> future)
        Specified by:
        callMethod in interface org.yamcs.api.Api<T>
      • callMethod

        public final org.yamcs.api.Observer<com.google.protobuf.Message> callMethod​(com.google.protobuf.Descriptors.MethodDescriptor method,
                                                                                    T ctx,
                                                                                    org.yamcs.api.Observer<com.google.protobuf.Message> future)
        Specified by:
        callMethod in interface org.yamcs.api.Api<T>