@Test public void testOldPushAdd() throws IOException { mockServerClient.when( request() .withMethod("POST") .withPath("/metrics/job/j/instance/i") ).respond(response().withStatusCode(202)); pg.pushAdd(registry, "j", "i"); }
public void pushAdd(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "POST"); }
PushGateway { public void pushAdd(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "POST"); } }
PushGateway { public void pushAdd(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "POST"); } PushGateway(String address);  PushGateway(URL serverBaseURL); }
PushGateway { public void pushAdd(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "POST"); } PushGateway(String address);  PushGateway(URL serverBaseURL); void setConnectionFactory(HttpConnectionFactory connectionFactory); void push(CollectorRegistry registry, String job); void push(Collector collector, String job); void push(CollectorRegistry registry, String job, Map<String, String> groupingKey); void push(Collector collector, String job, Map<String, String> groupingKey); void pushAdd(CollectorRegistry registry, String job); void pushAdd(Collector collector, String job); void pushAdd(CollectorRegistry registry, String job, Map<String, String> groupingKey); void pushAdd(Collector collector, String job, Map<String, String> groupingKey); void delete(String job); void delete(String job, Map<String, String> groupingKey); @Deprecated void push(CollectorRegistry registry, String job, String instance); @Deprecated void push(Collector collector, String job, String instance); @Deprecated void pushAdd(CollectorRegistry registry, String job, String instance); @Deprecated void pushAdd(Collector collector, String job, String instance); @Deprecated void delete(String job, String instance); static Map<String, String> instanceIPGroupingKey(); }
PushGateway { public void pushAdd(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "POST"); } PushGateway(String address);  PushGateway(URL serverBaseURL); void setConnectionFactory(HttpConnectionFactory connectionFactory); void push(CollectorRegistry registry, String job); void push(Collector collector, String job); void push(CollectorRegistry registry, String job, Map<String, String> groupingKey); void push(Collector collector, String job, Map<String, String> groupingKey); void pushAdd(CollectorRegistry registry, String job); void pushAdd(Collector collector, String job); void pushAdd(CollectorRegistry registry, String job, Map<String, String> groupingKey); void pushAdd(Collector collector, String job, Map<String, String> groupingKey); void delete(String job); void delete(String job, Map<String, String> groupingKey); @Deprecated void push(CollectorRegistry registry, String job, String instance); @Deprecated void push(Collector collector, String job, String instance); @Deprecated void pushAdd(CollectorRegistry registry, String job, String instance); @Deprecated void pushAdd(Collector collector, String job, String instance); @Deprecated void delete(String job, String instance); static Map<String, String> instanceIPGroupingKey();  }