Lines Matching full:content
104 var content = JSON.parse(json);
105 deferred.resolve(content.data);
141 var content = JSON.parse(evt.data);
142 var hostState = content.properties.CurrentHostState;
181 var content = JSON.parse(evt.data);
182 var hostState = content.properties.CurrentHostState;
223 var content = JSON.parse(evt.data);
224 var hostState = content.properties.CurrentHostState;
278 var content = JSON.parse(json);
283 function parseNetworkData(content) { argument
291 for (var key in content.data) {
306 content.data[key].MACAddress;
308 content.data[key].DomainName.join(' ');
310 content.data[key].Nameservers;
312 content.data[key].DHCPEnabled;
327 .values.push(content.data[key]);
329 content.data[key]['Address']);
336 if (content.data.hasOwnProperty(
338 if (content.data['/xyz/openbmc_project/network/config']
341 content.data['/xyz/openbmc_project/network/config']
344 if (content.data['/xyz/openbmc_project/network/config']
347 content.data['/xyz/openbmc_project/network/config']
352 if (content.data.hasOwnProperty(
354 content.data['/xyz/openbmc_project/network/eth0']
357 content.data['/xyz/openbmc_project/network/eth0']
362 data: content.data,
366 formatted_data: parseNetworkData(content)
469 var content = JSON.parse(json);
470 deferred.resolve(content.data.Asserted);
673 var content = JSON.parse(json);
674 deferred.resolve(content.status);
764 var content = JSON.parse(json);
765 deferred.resolve(content.status);
786 var content = JSON.parse(json);
787 deferred.resolve(content.status);
808 var content = JSON.parse(json);
809 deferred.resolve(content.status);
840 var content = JSON.parse(json);
841 var dataClone = JSON.parse(JSON.stringify(content.data));
850 for (var key in content.data) {
851 if (content.data.hasOwnProperty(key) &&
852 content.data[key].hasOwnProperty('Id')) {
859 content.data[key].Severity.split('.').pop();
864 if (content.data[key].hasOwnProperty(
866 content.data[key].Associations.forEach(function(
871 if (content.data[key].hasOwnProperty(['EventID'])) {
872 eventID = content.data[key].EventID;
875 if (content.data[key].hasOwnProperty(['Description'])) {
876 description = content.data[key].Description;
887 content.data[key].AdditionalData.join('\n'),
888 type: content.data[key].Message,
895 logId: '#' + content.data[key].Id,
896 data: {key: key, value: content.data[key]}
898 content.data[key]));
920 var content = JSON.parse(json);
921 var dataClone = JSON.parse(JSON.stringify(content.data));
975 for (var key in content.data) {
976 if (content.data.hasOwnProperty(key) &&
977 content.data[key].hasOwnProperty('Unit')) {
978 severity = getSensorStatus(content.data[key]);
980 if (!content.data[key].hasOwnProperty('CriticalLow')) {
981 content.data[key].CriticalLow = '--';
982 content.data[key].CriticalHigh = '--';
985 if (!content.data[key].hasOwnProperty('WarningLow')) {
986 content.data[key].WarningLow = '--';
987 content.data[key].WarningHigh = '--';
1005 content.data[key].Unit) > -1) {
1007 content.data[key].Unit);
1021 .SENSOR_UNIT_MAP[content.data[key].Unit],
1027 (title + ' ' + content.data[key].Value + ' ' +
1028 Constants.SENSOR_UNIT_MAP[content.data[key]
1031 content.data[key].CriticalLow + ' ' +
1032 content.data[key].CriticalHigh + ' ' +
1033 content.data[key].WarningLow + ' ' +
1034 content.data[key].WarningHigh + ' ')
1037 {key: key, value: content.data[key]}
1039 content.data[key]));
1077 var content = JSON.parse(json);
1115 if (content.data[Constants.FIRMWARE.FUNCTIONAL_OBJPATH]) {
1117 content.data[Constants.FIRMWARE.FUNCTIONAL_OBJPATH]
1120 for (var key in content.data) {
1121 if (content.data.hasOwnProperty(key) &&
1122 content.data[key].hasOwnProperty('Version')) {
1129 if (content.data[key].Activation) {
1131 content.data[key].Activation.split('.').pop();
1138 imageType = content.data[key].Purpose.split('.').pop();
1139 isExtended = content.data[key].hasOwnProperty(
1141 content.data[key].ExtendedVersion != '';
1144 content.data[key].ExtendedVersion);
1155 data: {key: key, value: content.data[key]}
1157 content.data[key]));
1161 bmcActiveVersion = content.data[key].Version;
1166 hostActiveVersion = content.data[key].Version;
1229 // Overwrite the default 'application/json' Content-Type
1230 headers: {'Content-Type': 'application/octet-stream'},
1387 headers: {'Content-Type': 'application/x-pem-file'},
1437 var content = JSON.parse(json);
1502 for (var key in content.data) {
1503 if (content.data.hasOwnProperty(key) &&
1511 if (content.data[key].hasOwnProperty('endpoints')) {
1521 if (content.data[key].hasOwnProperty('Associations')) {
1522 delete content.data[key].Associations;
1531 if (content.data[key].hasOwnProperty('Purpose')) {
1532 delete content.data[key].Purpose;
1535 data = camelcaseToLabel(content.data[key]);
1557 original_data: {key: key, value: content.data[key]}
1566 data = content.data[key];
1610 callback(orderedComponents, content.data);
1612 return {data: orderedComponents, original_data: content.data};
1723 var content = JSON.parse(json);
1725 return content.data.Value + ' ' +
1726 Constants.POWER_CONSUMPTION_TEXT[content.data.Unit];