@Override
    public void pushFailed(PushResult result) {
        MetricsMonitor.incrementPush();
        MetricsMonitor.incrementFailPush();
        if (isRpc(result.getSubscriber())) {
            NamingTpsMonitor.rpcPushFail(result.getSubscribeClientId(), result.getSubscriber().getIp());
        } else {
            NamingTpsMonitor.udpPushFail(result.getSubscribeClientId(), result.getSubscriber().getIp());
        }
    }
@Test
    void testPushFailed() {
        new NacosMonitorPushResultHook().pushFailed(pushResult);
        assertEquals(1, MetricsMonitor.getFailedPushMonitor().get());
        assertEquals(1, MetricsMonitor.getTotalPushMonitor().get());
    }