struct Obsctl::Diagnostics::Check

Overview

One diagnostic result.

#remedy is the whole point of the command: a check that reports a problem without saying what to do about it just moves the user to a search engine.

Defined in:

obsctl/diagnostics/check.cr

Constructors

Instance Method Summary

Constructor Detail

def self.fail(name : String, detail : String, remedy : String | Nil = nil) : self #

[View source]
def self.new(name : String, status : Status, detail : String, remedy : String | Nil = nil) #

[View source]
def self.ok(name : String, detail : String) : self #

[View source]
def self.warn(name : String, detail : String, remedy : String | Nil = nil) : self #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(name _name = @name, status _status = @status, detail _detail = @detail, remedy _remedy = @remedy) #

[View source]
def detail : String #

def name : String #

def remedy : String | Nil #

def status : Status #

def to_json(json : JSON::Builder) : Nil #

[View source]