Skip to content

Instantly share code, notes, and snippets.

@dgieselaar
Last active September 9, 2019 14:11
Show Gist options
  • Save dgieselaar/c1b23830892e9075274edadfacb6a7aa to your computer and use it in GitHub Desktop.
Save dgieselaar/c1b23830892e9075274edadfacb6a7aa to your computer and use it in GitHub Desktop.
const response = await fetch({
url: `http://localhost:5601/api/metrics/cpu`,
query: {
start: new Date().getTime() - 1000 * 60 * 60,
end: new Date().getTime() - 1000 * 60 * 60
},
method: 'GET'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment