Module: Puppet::ReportAllTheThings::ResourceStatusMixin

Included in:
Puppet::Resource::Status
Defined in:
lib/puppet/reportallthethings/helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_data_hash



88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/puppet/reportallthethings/helper.rb', line 88

def to_data_hash
  {
    'title' => @title,
    'file' => @file,
    'line' => @line,
    'resource' => @resource,
    'resource_type' => @resource_type,
    'containment_path' => @containment_path,
    'evaluation_time' => @evaluation_time,
    'tags' => @tags,
    'time' => @time.iso8601(9),
    'failed' => @failed,
    'changed' => @changed,
    'out_of_sync' => @out_of_sync,
    'skipped' => @skipped,
    'change_count' => @change_count,
    'out_of_sync_count' => @out_of_sync_count,
    'events' => @events,
  }
end