Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::Controller::DeviceReport

DESCRIPTION

Controller for processing and managing device reports.

METHODS

process

Processes the device report, turning it into the various device_ tables as well as running validations

Response uses the ValidationStateWithResults json schema.

_record_device_configuration

Uses a device report to populate configuration information about the given device

find_device_report

Chainable action that validates the ‘device_report_id’ provided in the path. Stores the device_id and device_report resultset to the stash for later retrieval.

Permissions checks are done in the next controller action in the chain.

get

Get the device_report record specified by uuid. A permissions check has already been done by device#find_device.

Response uses the DeviceReportRow json schema.

validate_report

Process a device report without writing anything to the database; otherwise behaves like “process”. The described device does not have to exist.

Response uses the ReportValidationResults json schema.

_get_hardware_product

Find the hardware product for the device referenced by the report.

_get_validation_plan

Find the validation plan that should be used to validate the the device referenced by the report.

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/.