This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import faust | |
from faust import Stream | |
from noack_take import noack_take | |
# monkeypatch noack_take on streams | |
Stream.noack_take = noack_take |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: Prometheus Grafana API | |
description: API definition for the prometheus api server, that is queried by | |
grafana (https://grafana.com/plugins/simpod-json-datasource) | |
version: "0.1" | |
paths: | |
/: | |
get: | |
summary: "Test connection" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function debounce<F extends Function>(func:F, wait:number):F { | |
let timeoutID:number; | |
if (!Number.isInteger(wait)) { | |
console.warn("Called debounce without a valid number") | |
wait = 300; | |
} | |
// conversion through any necessary as it wont satisfy criteria otherwise | |
return <any>function(this:any, ...args: any[]) { |