Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::DB::ResultSet::DeviceReport

DESCRIPTION

Interface to queries involving device reports.

METHODS

with_report_status

Given a resultset indicating one or more report(s), adds a column to the result indicating the cumulative status of all the validation state record(s) associated with it (that is, if all pass, then return ‘pass’, otherwise consider if any were ‘error’ or ‘fail’).

Reports with no validation results are considered to be a ‘pass’.

LICENSING

Copyright Joyent, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.