Skip to content

Instantly share code, notes, and snippets.

@remie
Created June 22, 2018 12:07
Show Gist options
  • Save remie/0ae13071d7c6d474f4d105353033197b to your computer and use it in GitHub Desktop.
Save remie/0ae13071d7c6d474f4d105353033197b to your computer and use it in GitHub Desktop.
import BaseService from './BaseService';
import { Use, ServiceObj, Check } from '@remie/nagios-cli';
@Use(BaseService)
export class Service extends ServiceObj {
private _check: Check;
constructor(description: string, check: Check) {
super(description);
this._check = check;
}
get check_command(): Check {
return this._check;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment