			return obj;
		});
		arr = arr.concat(vm_prop);
	}
}
return JSON.stringify(arr);','0',''),
('93684','44888','1','21',E'var token = value;

function checkMacro(macro) {
	if (!macro || macro.match(/^\\{\\$.*\\}$/)) {
		throw ''The GCP project id is not defined. Please, set the value for the \\{$GCP.PROJECT.ID\\} macro.'';
	}
	return macro;
}

function getField(data, path) {
	var steps = path.split(''.'');

	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];

		if (typeof data !== ''object'' || typeof data[step] === ''undefined'') {
			throw ''Required field "'' + path + ''" is not present in data received.''
		}
		data = data[step];
	}
	return data;
}

function getHttpData(url, token) {
	var request = new HttpRequest(),
		proxy = ''{$GCP.PROXY}'';
	if (proxy !== ''{'' + ''$GCP.PROXY}'' && proxy !== '''') {
		request.setProxy(proxy);
	};
	request.addHeader(''Authorization: Bearer '' + token);
	request.addHeader(''Content-Type: application/json'');

	var response = request.get(url);

	Zabbix.log(4, ''[ GCP API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from GCP API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object. Check debug log for more information.'';
	}

	if (request.getStatus() !== 200) {
		if (typeof (response.error && response.error.message) !== ''undefined'') {
			throw response.error.message;
		}
		else {
			throw ''Failed to receive data: invalid response status code. Check debug log for more information.'';
		}
	}

	if (typeof response.quotas !== ''undefined'') {
		return response;
	} else {
		throw ''No quotas array in API response'';
	}
};
var project = checkMacro(''{$GCP.PROJECT.ID}''),
	qts_raw = getHttpData(''https://www.googleapis.com/compute/v1/projects/'' + project, token),
	qts_lst = getField(qts_raw, ''quotas'').map(function (qt) {
		obj = {
			metric: getField(qt, ''metric''),
			limit: getField(qt, ''limit''),
			usage: getField(qt, ''usage''),
			p_used: (qt.usage / qt.limit) * 100
		};
		return obj;
	});

return JSON.stringify(qts_lst);','0',''),
('93685','44889','1','12','$.base_received_bytes_count','0',''),
('93686','44890','1','12','$.base_quota','0',''),
('93687','44891','1','12','$.base_total_usage','0',''),
('93688','44892','1','12','$.base_usage','0',''),
('93689','44893','1','12','$.base_ram_pused','0',''),
('93690','44894','1','12','$.base_connections','0',''),
('93691','44895','1','12','$.base_audits_size','1',''),
('93692','44896','1','12','$.base_sent_bytes_count','0',''),
('93693','44897','1','12','$.mssql_read','0',''),
('93694','44898','1','12','$.mssql_batch_request_count','0',''),
('93695','44899','1','12','$.mssql_forwarded_record_count','0',''),
('93696','44900','1','12','$.mssql_full_scan_count','0',''),
('93697','44901','1','12','$.mssql_page_split_count','0',''),
('93698','44902','1','12','$.mssql_probe_scan_count','0',''),
('93699','44903','1','12','$.mssql_sql_compilation_count','0',''),
('93700','44904','1','12','$.mssql_write','0',''),
('93701','44905','1','12','$.mssql_memory_grants_pending','0',''),
('93702','44906','1','12','$.mssql_page_life_expectancy','0',''),
('93703','44907','1','12','$.mssql_bytes_used','0',''),
('93704','44908','1','12','$.mssql_connection_reset_count','0',''),
('93705','44909','1','12','$.mssql_login_attempt_count','0',''),
('93706','44910','1','12','$.mssql_logout_count','0',''),
('93707','44911','1','12','$.mssql_processes_blocked','0',''),
('93708','44912','1','12','$.base_reserved_cores','0',''),
('93709','44913','1','12','$.base_usage_time','0',''),
('93710','44914','1','12','$.base_utilization','0',''),
('93711','44914','2','1','100','0',''),
('93712','44915','1','12','$.mssql_quota','0',''),
('93713','44916','1','12','$.mssql_success','1',''),
('93714','44917','1','12','$.base_read_ops_count','0',''),
('93715','44918','1','12','$.mssql_utilization','0',''),
('93716','44918','2','1','100','0',''),
('93717','44919','1','12','$.base_write_ops_count','0',''),
('93718','44920','1','12','$.mssql_buffer_cache_hit_ratio','0',''),
('93719','44921','1','12','$.mssql_checkpoint_page_count','0',''),
('93720','44922','1','12','$.mssql_free_list_stall_count','0',''),
('93721','44923','1','12','$.mssql_lazy_write_count','0',''),
('93722','44924','1','12','$.mssql_sql_recompilation_count','0',''),
('93723','44925','1','12','$.bytes_sent_to_replica_count','0',''),
('93724','44926','1','12','$.log_apply_pending_queue','0',''),
('93725','44927','1','12','$.log_bytes_received_count','0',''),
('93726','44928','1','12','$.recovery_queue','0',''),
('93727','44928','2','1','1024','0',''),
('93728','44929','1','12','$.redone_bytes_count','0',''),
('93729','44930','1','12','$.resent_message_count','0',''),
('93730','44931','1','12','$.base_reserved_cores','0',''),
('93731','44932','1','12','$.mysql_queries','0',''),
('93732','44933','1','12','$.mysql_sent_bytes_count','0',''),
('93733','44934','1','12','$.mysql_received_bytes_count','0',''),
('93734','44935','1','12','$.mysql_open_table_definitions','0',''),
('93735','44936','1','12','$.mysql_open_tables','0',''),
('93736','44937','1','12','$.base_sent_bytes_count','0',''),
('93737','44938','1','12','$.base_received_bytes_count','0',''),
('93738','44939','1','12','$.base_connections','0',''),
('93739','44940','1','12','$.base_ram_pused','0',''),
('93740','44941','1','12','$.base_usage','0',''),
('93741','44942','1','12','$.base_total_usage','0',''),
('93742','44943','1','12','$.base_quota','0',''),
('93743','44944','1','12','$.mysql_innodb_pages_written','0',''),
('93744','44945','1','12','$.base_usage_time','0',''),
('93745','44946','1','12','$.mysql_innodb_pages_read','0',''),
('93746','44947','1','12','$.mysql_innodb_os_log_fsyncs','0',''),
('93747','44948','1','12','$.mysql_innodb_data_fsyncs','0',''),
('93748','44949','1','12','$.mysql_innodb_buffer_pool_pages_total','0',''),
('93749','44950','1','12','$.mysql_innodb_buffer_pool_pages_free','0',''),
('93750','44951','1','12','$.mysql_innodb_buffer_pool_pages_dirty','0',''),
('93751','44952','1','12','$.base_write_ops_count','0',''),
('93752','44953','1','12','$.mysql_utilization','0',''),
('93753','44953','2','1','100','0',''),
('93754','44954','1','12','$.base_read_ops_count','0',''),
('93755','44955','1','12','$.mysql_quota','0',''),
('93756','44956','1','12','$.mysql_bytes_used','0',''),
('93757','44957','1','12','$.base_utilization','0',''),
('93758','44957','2','1','100','0',''),
('93759','44958','1','12','$.mysql_questions','0',''),
('93760','44959','1','12','$.last_io_errno','0',''),
('93761','44960','1','12','$.last_sql_errno','0',''),
('93762','44961','1','12','$.network_lag','0',''),
('93763','44962','1','12','$.replica_lag','0',''),
('93764','44963','1','12','$.slave_io_running','0',''),
('93765','44963','2','21','const idx = [
	''No'',
	''Yes'',
	''Connecting'',
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('93766','44964','1','12','$.slave_sql_running','0',''),
('93767','44964','2','6','','0',''),
('93768','44965','1','12','$.state','0',''),
('93769','44965','2','21','const idx = [
	''Running'',
	''Syncing'',
	''Unsynced'',
	''Stopped'',
	''Error'',
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('93770','44966','1','12','$.base_reserved_cores','0',''),
('93771','44967','1','12','$.pgsql_frozen','0',''),
('93772','44968','1','12','$.pgsql_assigned','0',''),
('93773','44969','1','12','$.pgsql_temp_files_written_count','0',''),
('93774','44970','1','12','$.pgsql_temp_bytes_written_count','0',''),
('93775','44971','1','12','$.pgsql_running','1',''),
('93776','44972','1','12','$.pgsql_replication_slot','1',''),
('93777','44973','1','12','$.pgsql_replica','1',''),
('93778','44974','1','12','$.pgsql_prepared','1',''),
('93779','44975','1','12','$.pgsql_num_backends','0',''),
('93780','44976','1','12','$.base_sent_bytes_count','0',''),
('93781','44977','1','12','$.base_ram_pused','0',''),
('93782','44978','1','12','$.base_received_bytes_count','0',''),
('93783','44979','1','12','$.base_usage_time','0',''),
('93784','44980','1','12','$.base_usage','0',''),
('93785','44981','1','12','$.base_total_usage','0',''),
('93786','44982','1','12','$.base_quota','0',''),
('93787','44983','1','12','$.base_write_ops_count','0',''),
('93788','44984','1','12','$.pgsql_utilization','0',''),
('93789','44984','2','1','100','0',''),
('93790','44985','1','12','$.base_read_ops_count','0',''),
('93791','44986','1','12','$.pgsql_quota','0',''),
('93792','44987','1','12','$.pgsql_bytes_used','0',''),
('93793','44988','1','12','$.base_utilization','0',''),
('93794','44988','2','1','100','0',''),
('93795','44989','1','12','$.pgsql_transaction_id_utilization','0',''),
('93796','44989','2','1','100','0',''),
('93797','44990','1','12','$.flush_location','0',''),
('93798','44991','1','12','$.log_archive_failure_count','0',''),
('93799','44992','1','12','$.log_archive_success_count','0',''),
('93800','44993','1','12','$.network_lag','0',''),
('93801','44994','1','12','$.replay_location','0',''),
('93802','44995','1','12','$.replica_lag','0',''),
('93803','44996','1','12','$.sent_location','0',''),
('93804','44997','1','12','$.state','0',''),
('93805','44997','2','21','const idx = [
	''Running'',
	''Syncing'',
	''Unsynced'',
	''Stopped'',
	''Error'',
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('93806','44998','1','12','$.write_location','0',''),
('93807','44999','1','12','$.guest_visible_vcpus','0',''),
('93808','45000','1','12','$.out_of_quota','0',''),
('93809','45001','1','12','$.invalid','0',''),
('93810','45002','1','12','$.mirrored_packets_count','0',''),
('93811','45003','1','12','$.mirrored_bytes_count','0',''),
('93812','45004','1','12','$.sent_packets_count.true','1',''),
('93813','45005','1','12','$.sent_packets_count.false','0',''),
('93814','45006','1','12','$.sent_bytes_count.true','1',''),
('93815','45007','1','12','$.sent_bytes_count.false','0',''),
('93816','45008','1','12','$.received_packets_count.true','1',''),
('93817','45009','1','12','$.received_packets_count.false','0',''),
('93818','45010','1','12','$.received_bytes_count.true','1',''),
('93819','45011','1','12','$.received_bytes_count.false','0',''),
('93820','45012','1','12','$.swap_in_bytes_count','1',''),
('93821','45013','1','12','$.swap_out_bytes_count','1',''),
('93822','45014','1','12','$.reserved_cores','0',''),
('93823','45015','1','12','$.ram_used','1',''),
('93824','45016','1','12','$.ram_size','1',''),
('93825','45017','1','12','$.ram_pused','1',''),
('93826','45018','1','12','$.late_boot_validation_status','1',''),
('93827','45018','2','21','const idx = [
	''passed'',
	''failed'',
	''unknown'',
].indexOf(value);
return idx !== -1 ? idx : "";','0',''),
('93828','45019','1','12','$.early_boot_validation_status','1',''),
('93829','45019','2','21','const idx = [
	''passed'',
	''failed'',
	''unknown'',
].indexOf(value);
return idx !== -1 ? idx : "";','0',''),
('93830','45020','1','12','$.uptime_total','0',''),
('93831','45021','1','12','$.dropped_packets_count','0',''),
('93832','45022','1','12','$.dropped_bytes_count','0',''),
('93833','45023','1','12','$.utilization','0',''),
('93834','45023','2','1','100','0',''),
('93835','45024','1','12','$.usage_time','0',''),
('93836','45025','1','12','$.scheduler_wait_time','1',''),
('93837','45026','1','12','$.unknown','0',''),
('93838','45027','1','12','$.[*].length()','0',''),
('93839','45028','1','12','$[?(@.i_type == ''container-optimized'')].length()','1',''),
('93840','45029','1','12','$[?(@.db_type =~ ''SQLSERVER'')].length()','1',''),
('93841','45030','1','12','$[?(@.db_type =~ ''MYSQL'')].length()','1',''),
('93842','45031','1','12','$[?(@.db_type =~ ''POSTGRES'')].length()','1',''),
('93843','45032','1','12','$[?(@.i_type == ''regular'')].length()','1',''),
('93844','45033','1','12','$.[*].length()','1',''),
('93893','45080','1','12','$.data','0',''),
('93900','45088','1','12','$[?(@.object_name=~''.*SQL Statistics'')]','1',''),
('93901','45089','1','12','$[?(@.object_name=~''.*SQL Errors'')]','1',''),
('93902','45090','1','12','$[?(@.object_name=~''.*General Statistics'')]','1',''),
('93903','45091','1','12','$[?(@.object_name=~''.*Memory Manager'')]','1',''),
('93904','45092','1','12','$[?(@.object_name=~''.*Locks'' && @.instance_name==''_Total'')]','1',''),
('93905','45093','1','12','$[?(@.object_name=~''.*Access Methods'')]','1',''),
('93906','45094','1','12','$[?(@.object_name=~''.*Databases'' && @.instance_name==''_Total'')]','1',''),
('93907','45095','1','12','$[?(@.object_name=~''.*Latches'')]','1',''),
('93908','45096','1','12','$[?(@.object_name=~''.*Plan Cache'' && @.instance_name==''_Total'')]','1',''),
('93909','45097','1','12','$[?(@.object_name=~''.*Buffer Manager'')]','1',''),
('93920','45102','1','12','$.Server','1',''),
('93921','45103','1','12','$.Persistence','1',''),
('93922','45104','1','12','$.Memory','1',''),
('93923','45105','1','12','$.Keyspace','1',''),
('93924','45106','1','12','$.Stats','1',''),
('93925','45107','1','12','$.CPU','1',''),
('93926','45108','1','12','$.Replication','1',''),
('93927','45109','1','12','$.Clients','1',''),
('93929','45111','1','12','$[?(@.name == "pd_cluster_status")]','1',''),
('93930','45112','1','12','$[?(@.name == "grpc_server_handling_seconds_count")]','1',''),
('93931','45113','1','12','$[?(@.name == "pd_scheduler_region_heartbeat")]','1',''),
('93932','45114','1','12','$[?(@.name == "pd_regions_label_level")]','1',''),
('93933','45115','1','12','$[?(@.name == "pd_regions_status")]','1',''),
('93934','45116','1','12','$[?(@.name == "pd_scheduler_status" && @.labels.type == "allow")]','1',''),
('93936','45118','1','12','$[?(@.name=~"tidb_tikvclient_*")]','1',''),
('93937','45119','1','12','$[?(@.name=="tidb_executor_statement_total")]','1',''),
('93938','45120','1','12','$[?(@.name == "tidb_server_query_total")]','1',''),
('93940','45122','1','12','$[?(@.name == "tikv_store_size_bytes")]','1',''),
('93941','45123','1','12','$[?(@.name == "tikv_scheduler_stage_total")]','1',''),
('93942','45124','1','12','$[?(@.name == "tikv_server_report_failure_msg_total")]','1',''),
('93943','45125','1','12','$[?(@.name == "tikv_grpc_msg_duration_seconds_count")]','1',''),
('93944','45126','1','12','$[?(@.name == "tikv_coprocessor_request_duration_seconds_count")]','1',''),
('96766','42401','2','21','return JSON.parse(value).length;','0',''),
('96826','45491','1','12','$.data.discovery_queue','3','No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.'),
('96827','45492','1','12','$.data.process[''discovery manager''].busy.avg','3','No "discovery manager" processes started.'),
('96828','45493','1','12','$.data.process[''discovery worker''].busy.avg','3','No "discovery worker" processes started.'),
('96829','45500','1','12','$.data.discovery_queue','3','No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.'),
('96830','45501','1','12','$.data.process[''discovery manager''].busy.avg','3','No "discovery manager" processes started.'),
('96831','45502','1','12','$.data.process[''discovery worker''].busy.avg','3','No "discovery worker" processes started.'),
('96840','45513','1','12','$.data.process[''agent poller''].busy.avg','3','Processes agent poller not started'),
('96841','45514','1','12','$.data.process[''http agent poller''].busy.avg','3','Processes http agent poller not started'),
('96842','45519','1','12','$.data.process[''agent poller''].busy.avg','3','No "agent poller" processes started.'),
('96843','45520','1','12','$.data.process[''http agent poller''].busy.avg','3','No "http agent poller" processes started.'),
('96857','45532','1','12','$.error','2',''),
('96858','45532','2','20','3h','0',''),
('96859','45533','1','12','$.MetricData[?(@.Label == "ContainerInstanceCount")].Values.first().first()','1',''),
('96860','45534','1','12','$.[?(@.Label == "CpuReserved")].Values.first().first()','1',''),
('96861','45535','1','12','$.CPUUtilization','1',''),
('96862','45536','1','12','$.MemoryUtilization','1',''),
('96863','45537','1','12','$.error','2',''),
('96864','45537','2','20','3h','0',''),
('96865','45538','1','12','$.MetricData[?(@.Label == "NetworkRxBytes")].Values.first().first()','1',''),
('96866','45539','1','12','$.MetricData[?(@.Label == "NetworkTxBytes")].Values.first().first()','1',''),
('96867','45540','1','12','$.MetricData[?(@.Label == "ServiceCount")].Values.first().first()','1',''),
('96868','45541','1','12','$.MetricData[?(@.Label == "TaskCount")].Values.first().first()','1',''),
('96899','45562','1','12','$.error','2',''),
('96900','45562','2','20','3h','0',''),
('96901','45563','1','12','$.MetricData[?(@.Label == "ContainerInstanceCount")].Values.first().first()','1',''),
('96902','45564','1','12','$.CPUUtilization','1',''),
('96903','45565','1','12','$.DiskUtilization','1',''),
('96904','45566','1','12','$.MetricData[?(@.Label == "EphemeralStorageReserved")].Values.first().first()','1',''),
('96905','45566','2','1','1073741824','0',''),
('96906','45567','1','12','$.MetricData[?(@.Label == "EphemeralStorageUtilized")].Values.first().first()','1',''),
('96907','45567','2','1','1073741824','0',''),
('96908','45568','1','12','$.MemoryUtilization','1',''),
('96909','45569','1','12','$.error','2',''),
('96910','45569','2','20','3h','0',''),
('96911','45570','1','12','$.MetricData[?(@.Label == "NetworkRxBytes")].Values.first().first()','1',''),
('96912','45571','1','12','$.MetricData[?(@.Label == "NetworkTxBytes")].Values.first().first()','1',''),
('96913','45572','1','12','$.MetricData[?(@.Label == "ServiceCount")].Values.first().first()','1',''),
('96914','45573','1','12','$.MetricData[?(@.Label == "TaskCount")].Values.first().first()','1',''),
('96948','44867','3','20','10m','0',''),
('96949','44874','3','20','10m','0',''),
('96950','44880','3','20','10m','0',''),
('96951','45597','1','12','$.availabilityZoneInfo','3','Could not get availability zones list'),
('96952','45598','1','12','$.hypervisors','3','Could not get hypervisors list'),
('96953','45599','1','12','$.limits.absolute','3','Could not get absolute project limits'),
('96954','45600','1','20','1h','0',''),
('96955','45601','1','20','1h','0',''),
('96956','45602','1','20','1h','0',''),
('96957','45603','1','12','$.servers','3','Could not get servers list'),
('96958','45604','1','12','$.services','3','Could not get compute services list'),
('96959','45605','1','12','$.tenant_usages','3','Could not get tenant list'),
('96960','45606','1','12','$.totalInstancesUsed','0',''),
('96961','45607','1','12','$.maxTotalInstances','0',''),
('96962','45608','1','12','$.totalRAMUsed','0',''),
('96963','45608','2','1','1048576','0',''),
('96964','45609','1','12','$.maxTotalRAMSize','0',''),
('96965','45609','2','1','1048576','0',''),
('96966','45610','1','12','$.totalCoresUsed','0',''),
('96967','45611','1','12','$.maxTotalCores','0',''),
('97015','45646','1','26','-1','2','0'),
('97016','45654','1','12','$.conflicts','0',''),
('97017','45654','2','10','','0',''),
('97018','45655','1','12','$.deadlocks','0',''),
('97019','45655','2','10','','0',''),
('97020','45656','1','12','$.blks_hit','0',''),
('97021','45656','2','10','','0',''),
('97022','45657','1','12','$.blk_write_time','0',''),
('97023','45657','2','1','0.001','0',''),
('97024','45658','1','12','$.blk_read_time','0',''),
('97025','45658','2','1','0.001','0',''),
('97026','45659','1','12','$.blks_read','0',''),
('97027','45659','2','10','','0',''),
('97028','45660','1','12','$.temp_bytes','0',''),
('97029','45660','2','10','','0',''),
('97030','45661','1','12','$.numbackends','0',''),
('97031','45662','1','12','$.count','0',''),
('97032','45663','1','12','$.temp_files','0',''),
('97033','45663','2','10','','0',''),
('97034','45664','1','12','$.tup_deleted','0',''),
('97035','45664','2','10','','0',''),
('97036','45665','1','12','$.tup_fetched','0',''),
('97037','45665','2','10','','0',''),
('97038','45666','1','12','$.tup_inserted','0',''),
('97039','45666','2','10','','0',''),
('97040','45667','1','12','$.tup_returned','0',''),
('97041','45667','2','10','','0',''),
('97042','45668','1','12','$.tup_updated','0',''),
('97043','45668','2','10','','0',''),
('97044','45669','1','12','$.xact_commit','0',''),
('97045','45669','2','10','','0',''),
('97046','45670','1','12','$.xact_rollback','0',''),
('97047','45670','2','10','','0',''),
('97048','45671','1','12','$.total_pct','0',''),
('97049','45672','1','12','$.receive','0',''),
('97050','45672','2','10','','0',''),
('97051','45673','1','12','$.waiting','0',''),
('97054','45675','1','12','$.total','0',''),
('97057','45677','1','12','$.archived_count','0',''),
('97058','45678','1','12','$.count_files','0',''),
('97059','45679','1','12','$.failed_count','0',''),
('97060','45680','1','12','$.size_files','0',''),
('97071','45686','1','12','$.prepared','0',''),
('97080','45690','1','12','$.active','0',''),
('97081','45691','1','12','$.disabled','0',''),
('97082','45692','1','12','$.fastpath_function_call','0',''),
('97083','45693','1','12','$.idle','0',''),
('97084','45694','1','12','$.idle_in_transaction','0',''),
('97085','45695','1','12','$.idle_in_transaction_aborted','0',''),
('97086','45696','1','12','$.write','0',''),
('97087','45696','2','10','','0',''),
('97147','45748','1','12','$.error','0',''),
('97148','45748','2','20','1h','0',''),
('97149','45749','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	devices = [],
	error_msg = "",
	url = "{$SDWAN.API.URL}",
	http_proxy = "{$SDWAN.HTTP_PROXY}";

function getHttpData(url, token, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	request.addHeader(''X-XSRF-TOKEN: '' + token);
	response = request.get(url);
	Zabbix.log(4, ''[ SD-WAN API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from SD-WAN API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token'', ''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == "" || typeof creds[field] === ''undefined'') {
			throw ''Unexpected token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != "") ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$SDWAN.API.URL}'') {
		throw ''Please change {'' + ''$SDWAN.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url;
	}

	if (!url.endsWith(''/'')) {
		url += ''/'';
	}

	if (http_proxy !== ''{'' + ''$SDWAN.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	devices = getHttpData(
		url + ''dataservice/device'',
		creds.token,
		creds.cookie
	);

	if (Array.isArray(devices.data)) {
		devices = devices.data;
	}
	else {
		throw ''Failed to parse response received from SD-WAN API. Check debug log for more information.'';
	}

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''devices'': devices.map(function (device) {
		obj = {
			''name'': device[''host-name''],
			''token'': creds.token,
			''cookie'': creds.cookie,
			''id'': device[''deviceId''],
			''uuid'': device[''uuid''],
			''type'': device[''device-type''],
			''model'': device[''device-model''],
			''ip'': device[''system-ip''],
			''int_ip'': device[''local-system-ip''],
			''cert_valid'': device[''certificate-validity'']
		};

		return obj;
	}),
	''error'': error_msg.toString()
});','0',''),
('97150','45750','1','12','$["device-model"]','0',''),
('97151','45751','1','12','$.error','0',''),
('97152','45751','2','20','1h','0',''),
('97153','45752','1','12','$.error','0',''),
('97154','45752','2','20','1h','0',''),
('97155','45753','1','12','$.version','0',''),
('97156','45753','2','20','12h','0',''),
('97157','45754','1','12','$["uptime-date"]','0',''),
('97158','45754','2','21','return (Math.floor(Date.now()/1000)-Math.floor(Number(value)/1000));','0',''),
('97159','45755','1','12','$.state_description','0',''),
('97160','45755','2','20','1h','0',''),
('97161','45756','1','12','$.state','0',''),
('97162','45756','2','21','const idx = [
	''green'',
	''yellow'',
	''red''
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('97163','45757','1','12','$["board-serial"]','0',''),
('97164','45758','1','12','$.device_role','2','-1'),
('97165','45759','1','12','$.reachability','0',''),
('97166','45759','2','21','const idx = [
	''reachable'',
	''unreachable'',
	''auth-failed'',
	''staging''
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('97167','45760','1','12','$.procs','0',''),
('97168','45761','1','12','$["device-os"]','0',''),
('97169','45761','2','20','1d','0',''),
('97170','45762','1','12','$.platform','0',''),
('97171','45762','2','20','1d','0',''),
('97172','45763','1','12','$["certificate-validity"]','2','Unknown'),
('97173','45763','2','21','const idx = [
	''Valid'',
	''Invalid'',
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('97174','45764','1','12','$.cpu_idle','0',''),
('97175','45765','1','12','$.controlConnections','2','0'),
('97176','45765','2','14','^[0-9]+$','2','0'),
('97177','45766','1','12','$.min1_avg','0',''),
('97178','45767','1','12','$.min5_avg','0',''),
('97179','45768','1','12','$.min15_avg','0',''),
('97180','45769','1','12','$.total_cpu_count','0',''),
('97181','45770','1','12','$.cpu_system','0',''),
('97182','45771','1','12','$.mem_used','0',''),
('97183','45772','1','12','$.cpu_user','0',''),
('97184','45773','1','12','$["host-name"]','0',''),
('97185','45773','2','20','12h','0',''),
('97186','45774','1','12','$.mem_free','0',''),
('97187','45775','1','12','$.mem_buffers','0',''),
('97188','45776','1','12','$.mem_cached','0',''),
('97189','45777','1','12','$.mem_total','0',''),
('97190','45778','1','12','$.error','0',''),
('97191','45778','2','20','1h','0',''),
('97192','45779','1','12','$.error','0',''),
('97193','45779','2','20','1h','0',''),
('97194','45780','1','12','$.devices[?(@.cert_valid != "Valid")].length()','0',''),
('97195','45781','1','12','$.devices.length()','0',''),
('97196','45781','2','20','1h','0',''),
('97197','45782','1','12','$.devices[?(@.type == "vbond")].length()','0',''),
('97198','45782','2','20','1h','0',''),
('97199','45783','1','12','$.devices[?(@.type == "vedge")].length()','0',''),
('97200','45783','2','20','1h','0',''),
('97201','45784','1','12','$.devices[?(@.type == "vmanage")].length()','0',''),
('97202','45784','2','20','1h','0',''),
('97203','45785','1','12','$.devices[?(@.type == "vsmart")].length()','0',''),
('97204','45785','2','20','1h','0',''),
('97205','45786','1','21','return (100 - value);','0',''),
('97283','45854','1','20','1h','0',''),
('97284','45855','1','20','1h','0',''),
('97288','45859','1','20','1h','0',''),
('97290','45861','1','20','1h','0',''),
('97292','45863','1','21',E'try {
	var response = Object.keys(JSON.parse(value).header).filter(function (f) {
		return f.match(/HTTP\\/[\\d.]+\\s+\\d{3}/);
	});

	return response.pop();
}
catch (error) {
	return "HTTP/1.1 408 Request timeout";
}','0',''),
('97293','45863','2','20','1h','0',''),
('97294','45864','1','12','$.body[?(@.Name)].length()','0',''),
('97295','45865','1','12','$..region.first()','0',''),
('97296','45866','1','12','$.error','2','HTTP/1.1 200 OK'),
('97297','45866','2','20','1h','0',''),
('97298','45867','1','12','$[?(@.Name)].length()','0',''),
('97299','45868','1','21',E'try {
	var response = Object.keys(JSON.parse(value).header).filter(function (f) {
		return f.match(/HTTP\\/[\\d.]+\\s+\\d{3}/);
	});

	return response.pop();
}
catch (error) {
	return "HTTP/1.1 408 Request timeout";
}','0',''),
('97300','45868','2','20','1h','0',''),
('97301','45869','1','12','$.body','1',''),
('97302','45870','1','21',E'try {
	var response = Object.keys(JSON.parse(value).header).filter(function (f) {
		return f.match(/HTTP\\/[\\d.]+\\s+\\d{3}/);
	});

	return response.pop();
}
catch (error) {
	return "HTTP/1.1 408 Request timeout";
}','0',''),
('97303','45870','2','20','1h','0',''),
('97304','45871','1','21',E'try {
	var response = Object.keys(JSON.parse(value).header).filter(function (f) {
		return f.match(/HTTP\\/[\\d.]+\\s+\\d{3}/);
	});

	return response.pop();
}
catch (error) {
	return "HTTP/1.1 408 Request timeout";
}','0',''),
('97305','45871','2','20','1h','0',''),
('97306','45872','1','12','$.body..Version.first()','0',''),
('97307','45873','1','12','$.body.config.Version.Version','0',''),
('97308','45874','1','21',E'try {
	var response = Object.keys(JSON.parse(value).header).filter(function (f) {
		return f.match(/HTTP\\/[\\d.]+\\s+\\d{3}/);
	});

	return response.pop();
}
catch (error) {
	return "HTTP/1.1 408 Request timeout";
}','0',''),
('97309','45874','2','20','1h','0',''),
('97310','45875','1','12','$.body.stats.raft.state','1',''),
('97311','45875','2','21','const idx = [
	''Leader'',
	''Follower'',
	''Candidate'',
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('97312','45876','1','12','$.body.stats.raft.num_peers','1',''),
('97313','45877','1','21',E'try {
	var response = Object.keys(JSON.parse(value).header).filter(function (f) {
		return f.match(/HTTP\\/[\\d.]+\\s+\\d{3}/);
	});

	return response.pop();
}
catch (error) {
	return "HTTP/1.1 408 Request timeout";
}','0',''),
('97314','45877','2','20','1h','0',''),
('97315','45878','1','12','$.body','1',''),
('97316','45879','1','12','$.body.stats.raft.protocol_version','1',''),
('97317','45880','1','22','nomad_client_allocations_pending
value
','2','0'),
('97318','45881','1','22','nomad_client_host_memory_available
value
','1',''),
('97319','45882','1','22','nomad_client_uptime
value
','0',''),
('97320','45883','1','22','nomad_client_unallocated_memory
value
','1',''),
('97321','45883','2','1','1000000','0',''),
('97322','45884','1','22','nomad_client_unallocated_disk
value
','1',''),
('97323','45884','2','1','1000000','0',''),
('97324','45885','1','22','nomad_client_unallocated_cpu
value
','1',''),
('97325','45886','1','22','nomad_client_allocated_cpu
value
','1',''),
('97326','45887','1','22','nomad_client_allocated_disk
value
','1',''),
('97327','45887','2','1','1000000','0',''),
('97328','45888','1','22','nomad_client_allocated_memory
value
','1',''),
('97329','45888','2','1','1000000','0',''),
('97330','45889','1','22','nomad_client_host_memory_used
value
','0',''),
('97331','45890','1','22','nomad_client_host_memory_total
value
','0',''),
('97332','45891','1','22','nomad_client_host_memory_free
value
','0',''),
('97333','45892','1','22','nomad_client_allocations_blocked
value
','2','0'),
('97334','45893','1','22','nomad_client_allocs_restart
function
sum','2','0'),
('97335','45893','2','10','','0',''),
('97336','45893','3','20','1h','0',''),
('97337','45894','1','22','nomad_client_allocs_complete
function
sum','2','0'),
('97338','45894','2','10','','0',''),
('97339','45894','3','20','1h','0',''),
('97340','45895','1','22','nomad_client_allocs_failed
function
sum','2','0'),
('97341','45895','2','10','','0',''),
('97342','45895','3','20','1h','0',''),
('97343','45896','1','22','nomad_client_allocations_migrating
value
','2','0'),
('97344','45897','1','22','nomad_client_host_cpu_user
function
avg','1',''),
('97345','45898','1','22','nomad_client_allocs_oom_killed
value
','2','0'),
('97346','45898','2','20','1h','0',''),
('97347','45899','1','22','nomad_client_host_cpu_system
function
avg','1',''),
('97348','45900','1','22','nomad_client_host_cpu_idle
function
avg','1',''),
('97349','45901','1','22','nomad_client_allocations_terminal
value
','2','0'),
('97350','45902','1','22','nomad_client_allocations_start
value
','2','0'),
('97351','45903','1','22','nomad_client_allocations_running
value
','2','0'),
('97352','45904','1','22','nomad_client_host_cpu_total
function
avg','1',''),
('97353','45905','1','22','nomad_raft_boltdb_txstats_pageAlloc
value
','1',''),
('97354','45905','2','10','','0',''),
('97355','45906','1','22','nomad_raft_commitNumLogs
value
','1',''),
('97356','45907','1','22','nomad_raft_leader_dispatchNumLogs
value
','2','0'),
('97357','45908','1','22','nomad_raft_leader_dispatchLog_sum
value
','1',''),
('97358','45908','2','1','1.0E-9','0',''),
('97359','45909','1','22','nomad_raft_lastIndex
value
','1',''),
('97360','45910','1','22','nomad_nomad_fsm_register_node_sum
value
','1',''),
('97361','45910','2','1','1.0E-9','0',''),
('97362','45911','1','22','nomad_raft_boltdb_openReadTxn
value
','1',''),
('97363','45912','1','22','nomad_raft_fsm_enqueue_sum
value
','1',''),
('97364','45912','2','1','1.0E-9','0',''),
('97365','45913','1','22','nomad_nomad_fsm_autopilot_sum
value
','2','0'),
('97366','45913','2','1','1.0E-9','0',''),
('97367','45914','1','22','nomad_raft_fsm_apply_sum
value
','1',''),
('97368','45914','2','1','1.0E-9','0',''),
('97369','45915','1','22','nomad_nomad_worker_dequeue_eval_sum
value
','1',''),
('97370','45915','2','1','1.0E-9','0',''),
('97371','45916','1','22','nomad_raft_boltdb_totalReadTxn
value
','1',''),
('97372','45916','2','10','','0',''),
('97373','45917','1','22','nomad_raft_boltdb_txstats_pageCount
value
','1',''),
('97374','45918','1','22','nomad_raft_boltdb_txstats_writeTime_sum
value
','1',''),
('97375','45918','2','1','1.0E-9','0',''),
('97376','45919','1','22','nomad_raft_boltdb_txstats_write
value
','1',''),
('97377','45919','2','10','','0',''),
('97378','45920','1','22','nomad_raft_boltdb_txstats_split
value
','1',''),
('97379','45920','2','10','','0',''),
('97380','45921','1','22','nomad_raft_boltdb_txstats_spillTime_sum
value
','1',''),
('97381','45921','2','1','1.0E-9','0',''),
('97382','45922','1','22','nomad_raft_boltdb_txstats_cursorCount
value
','1',''),
('97383','45922','2','10','','0',''),
('97384','45923','1','22','nomad_raft_boltdb_txstats_nodeCount
value
','1',''),
('97385','45923','2','10','','0',''),
('97386','45924','1','22','nomad_raft_boltdb_txstats_nodeDeref
value
','1',''),
('97387','45924','2','10','','0',''),
('97388','45925','1','22','nomad_raft_boltdb_txstats_spill
value
','1',''),
('97389','45925','2','10','','0',''),
('97390','45926','1','22','nomad_raft_boltdb_txstats_rebalanceTime_sum
value
','1',''),
('97391','45926','2','1','1.0E-9','0',''),
('97392','45927','1','22','nomad_raft_boltdb_txstats_rebalance
value
','1',''),
('97393','45927','2','10','','0',''),
('97394','45928','1','22','nomad_raft_leader_lastContact{quantile="0.99"}
value
','1',''),
('97395','45928','2','25','NaN
0','0',''),
('97396','45928','3','1','0.001','0',''),
('97397','45929','1','22','nomad_nomad_rpc_query
value
','1',''),
('97398','45929','2','10','','0',''),
('97399','45930','1','22','nomad_raft_replication_appendEntries_rpc
function
avg','1',''),
('97400','45930','2','1','0.001','0',''),
('97401','45931','1','22','nomad_serf_queue_Query_sum
value
','1',''),
('97402','45932','1','22','nomad_nomad_worker_update_eval_sum
value
','1',''),
('97403','45932','2','1','1.0E-9','0',''),
('97404','45933','1','22','nomad_nomad_worker_submit_plan_sum
value
','1',''),
('97405','45933','2','1','1.0E-9','0',''),
('97406','45934','1','22','nomad_nomad_worker_send_ack_sum
value
','1',''),
('97407','45934','2','1','1.0E-9','0',''),
('97408','45935','1','22','nomad_nomad_worker_invoke_scheduler_service_sum
value
','1',''),
('97409','45935','2','1','1.0E-9','0',''),
('97410','45936','1','22','nomad_nomad_worker_dequeue_eval_sum
value
','1',''),
('97411','45936','2','1','1.0E-9','0',''),
('97412','45937','1','22','nomad_nomad_worker_dequeue_eval_sum
value
','1',''),
('97413','45937','2','1','1.0E-9','0',''),
('97414','45938','1','22','process_virtual_memory_bytes
value
','1',''),
('97415','45939','1','22','nomad_nomad_vault_token_ttl
value
','1',''),
('97416','45939','2','1','0.001','0',''),
('97417','45940','1','22','nomad_nomad_vault_token_next_renewal
value
','1',''),
('97418','45940','2','1','0.001','0',''),
('97419','45941','1','22','nomad_nomad_vault_token_last_renewal
value
','1',''),
('97420','45941','2','1','0.001','0',''),
('97421','45942','1','22','nomad_nomad_vault_distributed_tokens_revoking
value
','1',''),
('97422','45943','1','22','nomad_state_snapshotIndex
value
','1',''),
('97423','45944','1','22','nomad_serf_queue_Intent_sum
value
','1',''),
('97424','45945','1','22','nomad_raft_transition_heartbeat_timeout
value
','2','0'),
('97425','45945','2','20','1h','0',''),
('97426','45946','1','22','nomad_serf_queue_Event_sum
value
','1',''),
('97427','45947','1','22','nomad_scheduler_allocs_reschedule_attempted
function
sum','2','0'),
('97428','45948','1','22','nomad_runtime_total_gc_runs
value
','1',''),
('97429','45949','1','22','nomad_runtime_sys_bytes
value
','1',''),
('97430','45950','1','22','nomad_runtime_num_goroutines
value
','1',''),
('97431','45951','1','22','nomad_runtime_heap_objects
value
','1',''),
('97432','45952','1','22','nomad_runtime_gc_pause_ns_sum
value
','1',''),
('97433','45952','2','1','1.0E-9','0',''),
('97434','45953','1','22','nomad_runtime_free_count
value
','1',''),
('97435','45953','2','10','','0',''),
('97436','45954','1','22','nomad_runtime_alloc_bytes
value
','1',''),
('97437','45955','1','22','nomad_nomad_rpc_request
value
','1',''),
('97438','45955','2','10','','0',''),
('97439','45956','1','22','nomad_nomad_rpc_request
value
','1',''),
('97440','45956','2','10','','0',''),
('97441','45957','1','22','nomad_raft_boltdb_numFreePages
value
','1',''),
('97442','45958','1','22','process_resident_memory_bytes
value
','1',''),
('97443','45959','1','22','nomad_raft_boltdb_numPendingPages
value
','1',''),
('97444','45960','1','22','nomad_raft_barrier
value
','1',''),
('97445','45960','2','10','','0',''),
('97446','45961','1','22','nomad_raft_boltdb_freePageBytes
value
','1',''),
('97447','45962','1','22','nomad_nomad_broker_system_unacked
value
','1',''),
('97448','45963','1','22','nomad_nomad_fsm_apply_plan_results_sum
value
','1',''),
('97449','45963','2','1','1.0E-9','0',''),
('97450','45964','1','22','nomad_nomad_eval_ack_sum
value
','1',''),
('97451','45964','2','1','1.0E-9','0',''),
('97452','45965','1','22','process_cpu_seconds_total
value
','1',''),
('97453','45965','2','10','','0',''),
('97454','45966','1','22','nomad_nomad_client_update_status_sum
value
','1',''),
('97455','45966','2','1','1.0E-9','0',''),
('97456','45967','1','22','nomad_nomad_client_update_alloc_sum
value
','1',''),
('97457','45967','2','1','1.0E-9','0',''),
('97458','45968','1','22','nomad_nomad_client_list_sum
value
','1',''),
('97459','45968','2','1','1.0E-9','0',''),
('97460','45969','1','22','nomad_nomad_client_get_client_allocs_sum
value
','1',''),
('97461','45969','2','1','1.0E-9','0',''),
('97462','45970','1','22','nomad_nomad_eval_dequeue_sum
value
','1',''),
('97463','45970','2','1','1.0E-9','0',''),
('97464','45971','1','22','nomad_nomad_broker_total_waiting
value
','1',''),
('97465','45972','1','22','nomad_nomad_broker_total_unacked
value
','1',''),
('97466','45973','1','22','nomad_nomad_broker_total_ready
value
','1',''),
('97467','45974','1','22','nomad_nomad_broker_total_pending
value
','1',''),
('97468','45975','1','22','nomad_nomad_broker_system_ready
value
','1',''),
('97469','45976','1','22','nomad_nomad_fsm_update_eval_sum
value
','1',''),
('97470','45976','2','1','1.0E-9','0',''),
('97471','45977','1','22','nomad_nomad_broker_service_unacked
value
','1',''),
('97472','45978','1','22','nomad_nomad_broker_service_ready
value
','1',''),
('97473','45979','1','22','nomad_nomad_eval_ack_sum
function
avg','1',''),
('97474','45979','2','1','1.0E-9','0',''),
('97475','45980','1','22','nomad_nomad_blocked_evals_total_quota_limit
value
','1',''),
('97476','45981','1','22','nomad_nomad_blocked_evals_total_escaped
value
','1',''),
('97477','45982','1','22','nomad_nomad_blocked_evals_total_blocked
value
','1',''),
('97478','45983','1','22','nomad_nomad_blocked_evals_memory
value
','1',''),
('97479','45984','1','22','nomad_nomad_blocked_evals_job_memory
value
','1',''),
('97480','45985','1','22','nomad_nomad_blocked_evals_job_cpu
value
','1',''),
('97481','45986','1','22','nomad_nomad_blocked_evals_cpu
value
','1',''),
('97482','45987','1','22','nomad_nomad_autopilot_healthy
value
','1',''),
('97483','45988','1','22','nomad_nomad_autopilot_failure_tolerance
value
','1',''),
('97484','45989','1','22','nomad_nomad_fsm_alloc_client_update_sum
value
','1',''),
('97485','45989','2','1','1.0E-9','0',''),
('97486','45990','1','22','nomad_nomad_fsm_register_job_sum
value
','1',''),
('97487','45990','2','1','1.0E-9','0',''),
('97488','45991','1','22','nomad_nomad_heartbeat_active
value
','1',''),
('97489','45992','1','22','nomad_raft_boltdb_freelistBytes
value
','1',''),
('97490','45993','1','22','nomad_nomad_leader_reconcile_sum
value
','1',''),
('97491','45993','2','1','1.0E-9','0',''),
('97492','45994','1','22','nomad_raft_apply
value
','2','0'),
('97493','45994','2','10','','0',''),
('97494','45995','1','22','nomad_raft_appliedIndex
value
','1',''),
('97495','45996','1','22','process_open_fds
value
','1',''),
('97496','45997','1','22','process_max_fds
value
','1',''),
('97497','45998','1','22','nomad_nomad_plan_wait_for_index_sum
value
','1',''),
('97498','45998','2','1','1.0E-9','0',''),
('97499','45999','1','22','nomad_nomad_plan_submit_sum
value
','1',''),
('97500','45999','2','1','1.0E-9','0',''),
('97501','46000','1','22','nomad_nomad_plan_queue_depth
value
','1',''),
('97502','46001','1','22','nomad_nomad_plan_evaluate_sum
value
','1',''),
('97503','46001','2','1','1.0E-9','0',''),
('97504','46002','1','22','nomad_nomad_plan_apply_sum
value
','1',''),
('97505','46002','2','1','1.0E-9','0',''),
('97506','46003','1','22','nomad_nomad_namespace_list_namespace_sum
value
','1',''),
('97507','46003','2','1','1.0E-9','0',''),
('97508','46004','1','22','nomad_memberlist_gossip_sum
value
','1',''),
('97509','46004','2','1','1.0E-9','0',''),
('97510','46005','1','22','nomad_nomad_leader_reconcileMember_sum
value
','1',''),
('97511','46005','2','1','1.0E-9','0',''),
('97512','46006','1','22','nomad_nomad_leader_barrier_sum
value
','1',''),
('97513','46006','2','1','1.0E-9','0',''),
('97514','46007','1','22','nomad_nomad_job_allocations_sum
value
','1',''),
('97515','46007','2','1','1.0E-9','0',''),
('97516','46008','1','22','nomad_nomad_job_summary_unknown
function
sum','2','0'),
('97517','46009','1','22','nomad_nomad_job_summary_starting
function
sum','2','0'),
('97518','46010','1','22','nomad_nomad_job_summary_running
function
sum','2','0'),
('97519','46011','1','22','nomad_nomad_job_summary_queued
function
sum','2','0'),
('97520','46012','1','22','nomad_nomad_job_summary_lost
function
sum','2','0'),
('97521','46013','1','22','nomad_nomad_job_summary_get_job_summary_sum
value
','1',''),
('97522','46013','2','1','1.0E-9','0',''),
('97523','46014','1','22','nomad_nomad_job_summary_failed
function
sum','2','0'),
('97524','46015','1','22','nomad_nomad_job_summary_complete
function
sum','2','0'),
('97525','46016','1','22','nomad_nomad_job_status_running
value
','2','0'),
('97526','46017','1','22','nomad_nomad_job_status_pending
value
','2','0'),
('97527','46018','1','22','nomad_nomad_job_status_dead
value
','2','0'),
('97528','46019','1','22','nomad_nomad_job_get_job_sum
value
','1',''),
('97529','46019','2','1','1.0E-9','0',''),
('97530','46020','1','22','nomad_nomad_job_evaluations_sum
value
','1',''),
('97531','46020','2','1','1.0E-9','0',''),
('97532','46021','1','22','nomad_nomad_worker_wait_for_index_sum
value
','1',''),
('97533','46021','2','1','1.0E-9','0',''),
('97566','46046','1','12','$.data.process[''snmp poller''].busy.avg','3','Processes snmp poller not started'),
('97567','46049','1','12','$.data.process[''snmp poller''].busy.avg','3','No "snmp poller" processes started.'),
('97568','46050','1','21','value = JSON.parse(value)

var list = []
list.push({''scope'': value[''scope''].split('':'')[3], ''access_token'': value[''access_token'']})
return JSON.stringify(list);','0',''),
('97569','46051','1','12','$.items','0',''),
('97570','46052','1','12','$.items','0',''),
('97571','46053','1','12','$.items','0',''),
('97572','46055','1','12','$..[?(@.severity == ''critical'')].length()','0',''),
('97573','46055','2','20','1h','0',''),
('97574','46056','1','12','$..[?(@.severity == ''error'')].length()','0',''),
('97575','46056','2','20','1h','0',''),
('97576','46057','1','12','$..[?(@.severity == ''information'')].length()','0',''),
('97577','46057','2','20','1h','0',''),
('97578','46058','1','12','$..[?(@.severity == ''ok'')].length()','0',''),
('97579','46058','2','20','1h','0',''),
('97580','46059','1','12','$..[?(@.severity == ''warning'')].length()','0',''),
('97581','46059','2','20','1h','0',''),
('97640','43082','1','26','-1','1',''),
('97641','43083','1','26','-1','1',''),
('97642','43156','1','26','-1','1',''),
('97643','43157','1','26','-1','1',''),
('97644','43158','3','20','1h','0',''),
('97645','43159','1','26','-1','1',''),
('97646','43160','3','20','3h','0',''),
('97648','43018','1','26','-1','1',''),
('97649','32576','4','20','30m','0',''),
('97650','32577','4','20','30m','0',''),
('97651','32578','2','23','','0',''),
('97652','33391','1','26','-1','1',''),
('97653','33392','3','20','30m','0',''),
('97654','33393','1','26','-1','1',''),
('97655','33394','1','26','-1','1',''),
('97656','33395','1','26','-1','1',''),
('97657','39827','1','26','-1','1',''),
('97658','39876','1','26','-1','1',''),
('97660','39978','1','26','-1','1',''),
('97661','40010','1','26','-1','1',''),
('97662','45852','1','26','-1','2','{"header":{"HTTP/1.1 408 Request timeout":""}}'),
('97663','45856','1','26','-1','2','{"header":{"HTTP/1.1 408 Request timeout":""}}'),
('97664','45857','1','26','-1','2','{"header":{"HTTP/1.1 408 Request timeout":""}}'),
('97665','45858','1','26','-1','2','{"header":{"HTTP/1.1 408 Request timeout":""}}'),
('97666','45860','1','26','-1','2','{"header":{"HTTP/1.1 408 Request timeout":""}}'),
('97667','45862','1','26','-1','2','{"header":{"HTTP/1.1 408 Request timeout":""}}'),
('97668','43547','1','12','$[?(@.hrSWRunName == ''dhcpd'')].hrSWRunStatus.first()','2','0'),
('97669','43556','1','12','$[?(@.hrSWRunName == ''unbound'')].hrSWRunStatus.first()','2','0'),
('97670','43563','1','12','$[?(@.hrSWRunName == ''lighttpd'')].hrSWRunStatus.first()','2','0'),
('97671','40119','1','12','$[?(@.hrSWRunName == ''dhcpd'')].hrSWRunStatus.first()','2','0'),
('97672','40120','1','12','$[?(@.hrSWRunName == ''unbound'')].hrSWRunStatus.first()','2','0'),
('97673','40121','1','12','$[?(@.hrSWRunName == ''nginx'')].hrSWRunStatus.first()','2','0'),
('97674','42739','1','26','-1','2','Error getting data'),
('97675','42740','1','26','-1','2','Error getting data'),
('97676','33630','1','26','-1','2','{"status":520,"data":{},"time":0}'),
('97677','36773','2','21','return JSON.parse(value).config ? 1 : 0','0',''),
('97678','32780','1','26','-1','1',''),
('97679','32781','1','26','-1','2','{"healthcheck": 0}'),
('97680','32782','1','26','-1','1',''),
('97681','33491','2','27','','2','{"html":{"head":{"title":"Connection error"}}}'),
('97682','33492','2','27','','2','{"html":{"head":{"title":"Connection error"}}}'),
('97683','33493','2','27','','2','{"html":{"head":{"title":"Connection error"}}}'),
('97685','45521','1','26','-1','1',''),
('97686','45522','1','26','-1','1',''),
('97687','43497','1','26','-1','1',''),
('97688','43498','1','26','-1','1',''),
('97689','43499','1','26','-1','1',''),
('97691','45529','1','26','-1','1',''),
('97692','45530','1','26','-1','1',''),
('97693','45531','1','26','-1','1',''),
('97695','45559','1','26','-1','1',''),
('97696','45560','1','26','-1','1',''),
('97697','45561','1','26','-1','1',''),
('97699','43592','1','26','-1','1',''),
('97700','43593','1','26','-1','1',''),
('97701','43594','1','26','-1','1',''),
('97702','43595','1','26','-1','1',''),
('97703','43684','1','26','-1','1',''),
('97704','43685','1','26','-1','1',''),
('97705','44868','1','26','-1','1',''),
('97706','44869','1','26','-1','1',''),
('97707','44870','1','26','-1','1',''),
('97708','44871','1','26','-1','1',''),
('97709','44872','3','20','10m','0',''),
('97710','44873','1','26','-1','1',''),
('97711','44875','3','20','10m','0',''),
('97712','44876','1','26','-1','1',''),
('97713','44877','1','26','-1','1',''),
('97714','44878','1','26','-1','1',''),
('97715','44879','3','20','10m','0',''),
('97716','44881','1','26','-1','1',''),
('97717','44882','1','26','-1','1',''),
('97718','44883','1','26','-1','1',''),
('97721','42931','3','20','3h','0',''),
('97722','42932','3','20','3h','0',''),
('97723','42933','1','26','-1','1',''),
('97724','36795','2','23','','0',''),
('97725','36796','3','20','30m','0',''),
('97726','45644','1','26','-1','1',''),
('97727','45646','2','20','1h','0',''),
('97728','34336','2','23','','0',''),
('97729','34337','1','26','-1','2','{"status": "0"}'),
('97730','34367','1','26','-1','2','{"status": "0"}'),
('97731','34368','2','23','','0',''),
('97732','34412','2','23','','0',''),
('97733','43770','2','1','0.01','0',''),
('97734','43771','2','1','0.01','0',''),
('97735','43772','2','1','0.01','0',''),
('97736','43773','2','1','0.01','0',''),
('97737','43774','2','1','0.01','0',''),
('97738','43775','2','1','0.01','0',''),
('97739','43776','2','1','0.01','0',''),
('97740','43777','2','1','0.01','0',''),
('97741','43778','2','1','0.01','0',''),
('97742','43779','2','1','0.01','0',''),
('97743','43780','2','1','0.01','0',''),
('97744','43781','2','1','0.01','0',''),
('97745','43782','2','1','0.01','0',''),
('97746','43783','2','1','0.01','0',''),
('97747','43784','2','1','0.01','0',''),
('97748','43785','2','1','0.01','0',''),
('97749','43786','2','1','0.01','0',''),
('97750','43787','2','1','0.01','0',''),
('97751','44667','2','1','0.01','0',''),
('97752','43788','2','1','0.01','0',''),
('97753','43789','2','1','0.01','0',''),
('97754','43790','2','1','0.01','0',''),
('97755','43791','2','1','0.01','0',''),
('97756','43792','2','1','0.01','0',''),
('97757','43793','2','1','0.01','0',''),
('97758','43794','2','1','0.01','0',''),
('97759','43795','2','1','0.01','0',''),
('97760','43796','2','1','0.01','0',''),
('97761','43797','2','1','0.01','0',''),
('97762','43798','2','1','0.01','0',''),
('97763','43799','2','1','0.01','0',''),
('97764','43800','2','1','0.01','0',''),
('97765','43801','2','1','0.01','0',''),
('97766','43802','2','1','0.01','0',''),
('97767','43803','2','1','0.01','0',''),
('97768','43804','2','1','0.01','0',''),
('97769','43805','2','1','0.01','0',''),
('97770','43806','2','1','0.01','0',''),
('97771','43807','2','1','0.01','0',''),
('97772','43808','2','1','0.01','0',''),
('97773','43809','2','1','0.01','0',''),
('97774','43810','2','1','0.01','0',''),
('97775','43811','2','1','0.01','0',''),
('97776','43812','2','1','0.01','0',''),
('97777','43813','2','1','0.01','0',''),
('97778','43814','2','1','0.01','0',''),
('97779','43815','2','1','0.01','0',''),
('97780','43816','2','1','0.01','0',''),
('97781','43817','2','1','0.01','0',''),
('97782','43818','2','1','0.01','0',''),
('97783','43819','2','1','0.01','0',''),
('97784','43820','2','1','0.01','0',''),
('97785','43821','2','1','0.01','0',''),
('97786','43822','2','1','0.01','0',''),
('97787','43823','2','1','0.01','0',''),
('97788','43824','2','1','0.01','0',''),
('97789','43825','2','1','0.01','0',''),
('97790','43826','2','1','0.01','0',''),
('97791','43827','2','1','0.01','0',''),
('97792','43828','2','1','0.01','0',''),
('97793','43829','2','1','0.01','0',''),
('97794','43830','2','1','0.01','0',''),
('97795','43831','2','1','0.01','0',''),
('97796','43832','2','1','0.01','0',''),
('97797','43833','2','1','0.01','0',''),
('97798','43834','2','1','0.01','0',''),
('97799','43835','2','1','0.01','0',''),
('97800','43836','2','1','0.01','0',''),
('97801','43837','2','1','0.01','0',''),
('97802','43838','2','1','0.01','0',''),
('97803','43839','2','1','0.01','0',''),
('97804','43840','2','1','0.01','0',''),
('97805','43841','2','1','0.01','0',''),
('97806','43842','2','1','0.01','0',''),
('97807','43843','2','1','0.01','0',''),
('97808','43844','2','1','0.01','0',''),
('97809','43845','2','1','0.01','0',''),
('97810','43846','2','1','0.01','0',''),
('97811','43847','2','1','0.01','0',''),
('97812','43848','2','1','0.01','0',''),
('97813','43849','2','1','0.01','0',''),
('97814','43850','2','1','0.01','0',''),
('97815','43851','2','1','0.01','0',''),
('97816','43852','2','1','0.01','0',''),
('97817','43853','2','1','0.01','0',''),
('97818','43854','2','1','0.01','0',''),
('97819','43855','2','1','0.01','0',''),
('97820','43856','2','1','0.01','0',''),
('97821','43857','2','1','0.01','0',''),
('97822','43858','2','1','0.01','0',''),
('97823','43859','2','1','0.01','0',''),
('97824','43860','2','1','0.01','0',''),
('97825','43861','2','1','0.01','0',''),
('97826','43862','2','1','0.01','0',''),
('97827','43863','2','1','0.01','0',''),
('97828','43864','2','1','0.01','0',''),
('97829','43865','2','1','0.01','0',''),
('97830','43866','2','1','0.01','0',''),
('97831','43867','2','1','0.01','0',''),
('97832','43868','2','1','0.01','0',''),
('97833','43869','2','1','0.01','0',''),
('97834','43870','2','1','0.01','0',''),
('97835','43871','2','1','0.01','0',''),
('97836','43872','2','1','0.01','0',''),
('97837','43873','2','1','0.01','0',''),
('97838','43874','2','1','0.01','0',''),
('97839','43875','2','1','0.01','0',''),
('97840','43876','2','1','0.01','0',''),
('97841','43877','2','1','0.01','0',''),
('97842','43878','2','1','0.01','0',''),
('97843','43879','2','1','0.01','0',''),
('97844','43880','2','1','0.01','0',''),
('97845','43881','2','1','0.01','0',''),
('97846','43882','2','1','0.01','0',''),
('97847','43883','2','1','0.01','0',''),
('97848','43884','2','1','0.01','0',''),
('97849','43885','2','1','0.01','0',''),
('97850','43886','2','1','0.01','0',''),
('97851','43887','2','1','0.01','0',''),
('97852','43888','2','1','0.01','0',''),
('97853','43889','2','1','0.01','0',''),
('97854','43890','2','1','0.01','0',''),
('97860','43896','2','1','0.01','0',''),
('97861','43897','2','1','0.01','0',''),
('97862','43898','2','1','0.01','0',''),
('97863','43899','2','1','0.01','0',''),
('97864','43900','2','1','0.01','0',''),
('97865','44050','2','1','0.01','0',''),
('97866','44051','2','1','0.01','0',''),
('97867','46085','1','26','-1','3','Could not get data.'),
('97869','46086','1','12','$.ocs.data.activeUsers.last1hour','1',''),
('97870','46086','2','20','1h','0',''),
('97871','46087','1','12','$.ocs.data.server.php.max_execution_time','1',''),
('97872','46087','2','20','1h','0',''),
('97873','46088','1','12','$.ocs.data.nextcloud.system.swap_total','1',''),
('97874','46088','2','1','1024','0',''),
('97875','46088','3','20','1h','0',''),
('97876','46089','1','21','function getField(data, path) {
	var steps = path.split(''.'');
	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];
		if (typeof data !== ''object'' || typeof data[step] === ''undefined'') {
			throw ''Required field was not found: '' + path;
		}

		data = data[step];
	}

	return data;
}

var data = JSON.parse(value),
	swap_total = getField(data,''ocs.data.nextcloud.system.swap_total''),
	swap_free = getField(data,''ocs.data.nextcloud.system.swap_free'');

return Math.ceil(100 - swap_free / swap_total * 100);','0',''),
('97877','46089','2','25','NaN
0','0',''),
('97878','46090','1','12','$.ocs.data.nextcloud.system.swap_free','1',''),
('97879','46090','2','1','1024','0',''),
('97880','46090','3','20','1h','0',''),
('97881','46091','1','12','$.ocs.meta.message','0',''),
('97882','46091','2','20','1h','0',''),
('97883','46092','1','12','$.ocs.data.server.php.version','1',''),
('97884','46092','2','20','1h','0',''),
('97885','46093','1','12','$.ocs.data.server.php.upload_max_filesize','1',''),
('97886','46093','2','20','1h','0',''),
('97887','46094','1','12','$.ocs.data.server.php.opcache.memory_usage.current_wasted_percentage','1',''),
('97888','46094','2','20','1h','0',''),
('97889','46095','1','12','$.ocs.data.server.php.opcache.memory_usage.wasted_memory','1',''),
('97890','46095','2','20','1h','0',''),
('97891','46096','1','12','$.ocs.data.server.php.opcache.memory_usage.used_memory','1',''),
('97892','46096','2','20','1h','0',''),
('97893','46097','1','21','function getField(data, path) {
	var steps = path.split(''.'');
	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];
		if (typeof data !== ''object'' || typeof data[step] === ''undefined'') {
			throw ''Required field was not found: '' + path;
		}

		data = data[step];
	}

	return data;
}

var data = JSON.parse(value),
	php_total = getField(data,''ocs.data.server.php.memory_limit''),
	php_free = getField(data,''ocs.data.server.php.opcache.memory_usage.used_memory'');

return Math.ceil(php_free / php_total * 100);','0',''),
('97894','46097','2','20','1h','0',''),
('97895','46098','1','12','$.ocs.data.server.php.memory_limit','1',''),
('97896','46098','2','20','1h','0',''),
('97897','46099','1','12','$.ocs.data.server.php.opcache.memory_usage.free_memory','1',''),
('97898','46099','2','20','1h','0',''),
('97899','46100','1','21','function getField(data, path) {
	var steps = path.split(''.'');
	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];
		if (typeof data !== ''object'' || typeof data[step] === ''undefined'') {
			throw ''Required field was not found: '' + path;
		}

		data = data[step];
	}

	return data;
}

var data = JSON.parse(value),
	mem_total = getField(data,''ocs.data.nextcloud.system.mem_total''),
	mem_free = getField(data,''ocs.data.nextcloud.system.mem_free'');

return Math.ceil(100 - mem_free / mem_total * 100);','0',''),
('97900','46100','2','20','1h','0',''),
('97901','46101','1','12','$.ocs.data.nextcloud.system.mem_total','1',''),
('97902','46101','2','1','1024','0',''),
('97903','46101','3','20','1h','0',''),
('97904','46102','1','12','$.ocs.data.activeUsers.last5minutes','1',''),
('97905','46102','2','20','1h','0',''),
('97906','46103','1','12','$.ocs.data.nextcloud.system.mem_free','1',''),
('97907','46103','2','1','1024','0',''),
('97908','46103','3','20','1h','0',''),
('97909','46104','1','12','$.ocs.data.nextcloud.system.freespace','1',''),
('97910','46104','2','20','1h','0',''),
('97911','46105','1','12','$.ocs.data.server.database.version','1',''),
('97912','46105','2','20','1h','0',''),
('97913','46106','1','12','$.ocs.data.server.database.type','1',''),
('97914','46106','2','20','1h','0',''),
('97915','46107','1','12','$.ocs.data.server.database.size','1',''),
('97916','46107','2','20','1h','0',''),
('97917','46108','1','12','$.ocs.data.nextcloud.system.cpuload[2]','1',''),
('97918','46108','2','20','1h','0',''),
('97919','46109','1','12','$.ocs.data.nextcloud.system.cpuload[1]','1',''),
('97920','46109','2','20','1h','0',''),
('97921','46110','1','12','$.ocs.data.nextcloud.system.cpuload[0]','1',''),
('97922','46110','2','20','1h','0',''),
('97923','46111','1','12','$.ocs.data.server.webserver','1',''),
('97924','46111','2','20','1h','0',''),
('97925','46112','1','12','$.ocs.data.nextcloud.system.apps.num_updates_available','1',''),
('97926','46112','2','20','1h','0',''),
('97927','46113','1','12','$.ocs.data.nextcloud.system.apps.num_installed','1',''),
('97928','46113','2','20','1h','0',''),
('97929','46114','1','12','$.ocs.data.activeUsers.last24hours','1',''),
('97930','46114','2','20','1h','0',''),
('97931','46115','1','12','$.ocs.data.nextcloud.system.version','1',''),
('97932','46115','2','20','1h','0',''),
('97962','42828','1','26','-1','2','100'),
('97963','46130','1','20','1d','0',''),
('97964','46131','1','20','1d','0',''),
('97965','46132','1','20','10m','0',''),
('97966','46133','1','26','-1','2','{"error":"Not supported value received"}'),
('97967','46134','1','26','-1','2','{"error":"Not supported value received"}'),
('97968','46140','1','12','$.error','2',''),
('97969','46140','2','20','1h','0',''),
('97970','46141','1','12','$.serial','0',''),
('97971','46141','2','20','1d','0',''),
('97972','46142','1','12','$.results.utc_last_reboot','0',''),
('97973','46142','2','21','return (Math.floor(Date.now()/1000)-Math.floor(Number(value)/1000));','0',''),
('97974','46143','1','12','$.data.cpu','0',''),
('97975','46144','1','12','$.error','2',''),
('97976','46144','2','20','1h','0',''),
('97977','46145','1','12','$.results.current','0',''),
('97978','46145','2','21','var firmware = JSON.parse(value);
return firmware.name + '' '' + firmware.version + '' build'' + String(firmware.build);','0',''),
('97979','46145','3','20','1d','0',''),
('97980','46146','1','12','$.error','1',''),
('97981','46146','2','20','1h','0',''),
('97982','46147','1','12','$.results.available.length()','1',''),
('97983','46147','2','20','12h','0',''),
('97984','46148','1','12','$.error','1',''),
('97985','46148','2','20','1h','0',''),
('97986','46149','1','12','$.results','0',''),
('97987','46149','2','21','var info = JSON.parse(value);
return info.model_name + '' '' + info.model_number + '' ('' + info.model + '')'';','0',''),
('97988','46149','3','20','1d','0',''),
('97989','46150','1','12','$.error','1',''),
('97990','46150','2','20','1h','0',''),
('97991','46151','1','12','$.error','1',''),
('97992','46151','2','20','1h','0',''),
('97993','46152','1','12','$.vdom','0',''),
('97994','46152','2','20','12h','0',''),
('97995','46153','1','12','$.results.hostname','0',''),
('97996','46153','2','20','12h','0',''),
('97997','46154','1','12','$.data.mem','0',''),
('97998','46155','1','12','$.data.vm.mem_used','0',''),
('97999','46155','2','20','1d','0',''),
('98000','46156','1','12','$.data.vm.cpu_used','0',''),
('98001','46156','2','20','1d','0',''),
('98002','46157','1','12','$.error','1',''),
('98003','46157','2','20','1h','0',''),
('98004','46158','1','12','$.data.disk','0',''),
('98005','46159','1','12','$.data.disk_used','0',''),
('98006','46160','1','12','$.data.disk_total','0',''),
('98007','46160','2','20','1d','0',''),
('98008','46161','1','12','$.data.disk_free','0',''),
('98009','46162','1','12','$.build','2','0'),
('98010','46162','2','13','
0','2','1'),
('98106','46213','1','20','12h','0',''),
('98107','46218','1','1','1048576','0',''),
('98108','46219','1','1','1048576','0',''),
('98109','46219','2','20','1d','0',''),
('98110','46222','1','1','0.01','0',''),
('98111','46223','1','20','12h','0',''),
('98112','46224','1','20','12h','0',''),
('98113','46226','1','20','1d','0',''),
('98114','46227','1','20','1d','0',''),
('98115','46228','1','20','1d','0',''),
('98116','46229','1','20','12h','0',''),
('98117','46231','1','20','1d','0',''),
('98118','46232','1','20','12h','0',''),
('98141','46247','1','12','$.samlSSO.enabled','1',''),
('98142','46247','2','6','','0',''),
('98224','46309','1','20','1h','0',''),
('98225','46310','1','20','1h','0',''),
('98226','46311','1','12','$.data.wcache.[''proxy buffer''].memory.pused','3','Proxy memory buffer is disabled.'),
('98227','46312','1','12','$.data.wcache.[''proxy buffer''].[''state change'']','2','0'),
('98228','46312','2','20','1h','0',''),
('98229','46313','1','12','$.data.wcache.[''proxy buffer''].state','2','0'),
('98230','46313','2','20','1h','0',''),
('98231','46314','1','10','','0',''),
('98232','46315','1','10','','0',''),
('98233','46316','1','12','$.data.vps.written_total','0',''),
('98234','46316','2','10','','0',''),
('98237','46320','1','12','$.error','2',''),
('98238','46320','2','20','3h','0',''),
('98440','46451','1','26','-1','1',''),
('98441','46452','1','26','-1','1',''),
('98442','46453','1','26','-1','1',''),
('98443','46454','1','12','$.[?(@.Label == "ActiveConnectionCount")].Values.first().first()','1',''),
('98444','46455','1','12','$.error','2',''),
('98445','46455','2','20','3h','0',''),
('98446','46456','1','12','$.[?(@.Label == "ELBAuthError")].Values.first().first()','1',''),
('98447','46457','1','12','$.[?(@.Label == "ELBAuthFailure")].Values.first().first()','1',''),
('98448','46458','1','12','$.[?(@.Label == "ELBAuthLatency")].Values.first().first()','1',''),
('98449','46459','1','12','$.[?(@.Label == "ELBAuthSuccess")].Values.first().first()','1',''),
('98450','46460','1','12','$.[?(@.Label == "ELBAuthUserClaimsSizeExceeded")].Values.first().first()','1',''),
('98451','46461','1','12','$.[?(@.Label == "ConsumedLCUs")].Values.first().first()','1',''),
('98452','46462','1','12','$.[?(@.Label == "ClientTLSNegotiationErrorCount")].Values.first().first()','1',''),
('98453','46463','1','12','$.[?(@.Label == "HTTPCode_ELB_3XX_Count")].Values.first().first()','1',''),
('98454','46464','1','12','$.[?(@.Label == "HTTPCode_ELB_4XX_Count")].Values.first().first()','1',''),
('98455','46465','1','12','$.[?(@.Label == "HTTPCode_ELB_5XX_Count")].Values.first().first()','1',''),
('98456','46466','1','12','$.[?(@.Label == "HTTPCode_ELB_500_Count")].Values.first().first()','1',''),
('98457','46467','1','12','$.[?(@.Label == "HTTPCode_ELB_502_Count")].Values.first().first()','1',''),
('98458','46468','1','12','$.[?(@.Label == "HTTPCode_ELB_503_Count")].Values.first().first()','1',''),
('98459','46469','1','12','$.[?(@.Label == "HTTPCode_ELB_504_Count")].Values.first().first()','1',''),
('98460','46470','1','12','$.[?(@.Label == "HTTP_Fixed_Response_Count")].Values.first().first()','1',''),
('98461','46471','1','12','$.[?(@.Label == "HTTP_Redirect_Count")].Values.first().first()','1',''),
('98462','46472','1','12','$.[?(@.Label == "HTTP_Redirect_Url_Limit_Exceeded_Count")].Values.first().first()','1',''),
('98463','46473','1','12','$.error','2',''),
('98464','46473','2','20','3h','0',''),
('98465','46474','1','12','$.[?(@.Label == "NewConnectionCount")].Values.first().first()','1',''),
('98466','46475','1','12','$.[?(@.Label == "DesyncMitigationMode_NonCompliant_Request_Count")].Values.first().first()','1',''),
('98467','46476','1','12','$.[?(@.Label == "ProcessedBytes")].Values.first().first()','1',''),
('98468','46477','1','12','$.[?(@.Label == "RejectedConnectionCount")].Values.first().first()','1',''),
('98469','46478','1','12','$.[?(@.Label == "RequestCount")].Values.first().first()','1',''),
('98470','46479','1','12','$.[?(@.Label == "RuleEvaluations")].Values.first().first()','1',''),
('98471','46480','1','12','$.[?(@.Label == "TargetConnectionErrorCount")].Values.first().first()','1',''),
('98472','46481','1','12','$.[?(@.Label == "TargetResponseTime")].Values.first().first()','1',''),
('98473','46482','1','12','$.[?(@.Label == "TargetTLSNegotiationErrorCount")].Values.first().first()','1',''),
('98497','46520','1','20','1d','0',''),
('98498','46521','1','20','10m','0',''),
('98499','46522','1','12','$[?(@.object_name=~''.*Access Methods'')]','1',''),
('98500','46523','1','12','$[?(@.object_name=~''.*Buffer Manager'')]','1',''),
('98501','46524','1','12','$[?(@.object_name=~''.*Plan Cache'' && @.instance_name==''_Total'')]','1',''),
('98502','46525','1','12','$[?(@.object_name=~''.*Databases'' && @.instance_name==''_Total'')]','1',''),
('98503','46526','1','12','$[?(@.object_name=~''.*General Statistics'')]','1',''),
('98504','46527','1','12','$[?(@.object_name=~''.*Latches'')]','1',''),
('98505','46528','1','12','$[?(@.object_name=~''.*Locks'' && @.instance_name==''_Total'')]','1',''),
('98506','46529','1','12','$[?(@.object_name=~''.*Memory Manager'')]','1',''),
('98507','46530','1','12','$[?(@.object_name=~''.*SQL Errors'')]','1',''),
('98508','46531','1','12','$[?(@.object_name=~''.*SQL Statistics'')]','1',''),
('98509','46532','1','12','$[?(@.object_name=~''.*Transactions'' && @.counter_name==''Transactions'')].cntr_value.first()','0',''),
('98510','46533','1','12','$[?(@.counter_name==''Uptime'')].cntr_value.first()','0',''),
('98511','46534','1','12','$[?(@.counter_name==''Auto-Param Attempts/sec'')].cntr_value.first()','0',''),
('98512','46534','2','10','','0',''),
('98513','46535','1','12','$[?(@.counter_name==''Average Latch Wait Time Base'')].cntr_value.first()','0',''),
('98514','46536','1','12','$[?(@.counter_name==''Average Latch Wait Time (ms)'')].cntr_value.first()','0',''),
('98515','46537','1','12','$[?(@.counter_name==''Average Wait Time Base'')].cntr_value.first()','0',''),
('98516','46538','1','12','$[?(@.counter_name==''Average Wait Time (ms)'')].cntr_value.first()','0',''),
('98517','46539','1','12','$[?(@.counter_name==''Batch Requests/sec'')].cntr_value.first()','0',''),
('98518','46539','2','10','','0',''),
('98519','46540','1','12','$[?(@.counter_name==''BufferCacheHitRatio'')].cntr_value.first()','0',''),
('98520','46541','1','12','$[?(@.counter_name==''CacheHitRatio'')].cntr_value.first()','0',''),
('98521','46542','1','12','$[?(@.counter_name==''Cache Objects in use'')].cntr_value.first()','0',''),
('98522','46543','1','12','$[?(@.counter_name==''Cache Object Counts'')].cntr_value.first()','0',''),
('98523','46544','1','12','$[?(@.counter_name==''Cache Pages'')].cntr_value.first()','0',''),
('98524','46545','1','12','$[?(@.counter_name==''Checkpoint pages/sec'')].cntr_value.first()','0',''),
('98525','46545','2','10','','0',''),
('98526','46546','1','12','$[?(@.counter_name==''Database pages'')].cntr_value.first()','0',''),
('98527','46547','1','12','$[?(@.counter_name==''Data File(s) Size (KB)'')].cntr_value.first()','0',''),
('98528','46547','2','1','1024','0',''),
('98529','46547','3','20','1h','0',''),
('98530','46548','1','12','$[?(@.counter_name==''Errors/sec'' && @.instance_name==''_Total'')].cntr_value.first()','0',''),
('98531','46548','2','10','','0',''),
('98532','46549','1','12','$[?(@.counter_name==''Failed Auto-Params/sec'')].cntr_value.first()','0',''),
('98533','46549','2','10','','0',''),
('98534','46550','1','12','$[?(@.counter_name==''Forwarded Records/sec'')].cntr_value.first()','0',''),
('98535','46550','2','10','','0',''),
('98536','46551','1','12','$[?(@.counter_name==''Free list stalls/sec'')].cntr_value.first()','0',''),
('98537','46551','2','10','','0',''),
('98538','46552','1','12','$[?(@.counter_name==''Full Scans/sec'')].cntr_value.first()','0',''),
('98539','46552','2','10','','0',''),
('98540','46553','1','12','$[?(@.counter_name==''Granted Workspace Memory (KB)'')].cntr_value.first()','0',''),
('98541','46553','2','1','1024','0',''),
('98542','46554','1','12','$[?(@.counter_name==''Index Searches/sec'')].cntr_value.first()','0',''),
('98543','46554','2','10','','0',''),
('98544','46555','1','12','$[?(@.counter_name==''Errors/sec'' && @.instance_name==''Info Errors'')].cntr_value.first()','0',''),
('98545','46555','2','10','','0',''),
('98546','46556','1','12','$[?(@.counter_name==''Errors/sec'' && @.instance_name==''Kill Connection Errors'')].cntr_value.first()','0',''),
('98547','46556','2','10','','0',''),
('98548','46557','1','12','$[?(@.counter_name==''Latch Waits/sec'')].cntr_value.first()','0',''),
('98549','46557','2','10','','0',''),
('98550','46558','1','12','$[?(@.counter_name==''Lazy writes/sec'')].cntr_value.first()','0',''),
('98551','46558','2','10','','0',''),
('98552','46559','1','12','$[?(@.counter_name==''Lock Requests/sec'')].cntr_value.first()','0',''),
('98553','46559','2','10','','0',''),
('98554','46560','1','12','$[?(@.counter_name==''Lock Timeouts/sec'')].cntr_value.first()','0',''),
('98555','46560','2','10','','0',''),
('98556','46561','1','12','$[?(@.counter_name==''Lock Waits/sec'')].cntr_value.first()','0',''),
('98557','46561','2','10','','0',''),
('98558','46562','1','12','$[?(@.counter_name==''Lock Wait Time (ms)'')].cntr_value.first()','0',''),
('98559','46562','2','10','','0',''),
('98560','46563','1','12','$[?(@.counter_name==''Logins/sec'')].cntr_value.first()','0',''),
('98561','46563','2','10','','0',''),
('98562','46564','1','12','$[?(@.counter_name==''Logouts/sec'')].cntr_value.first()','0',''),
('98563','46564','2','10','','0',''),
('98564','46565','1','12','$[?(@.counter_name==''Log File(s) Size (KB)'')].cntr_value.first()','0',''),
('98565','46565','2','1','1024','0',''),
('98566','46565','3','20','1h','0',''),
('98567','46566','1','12','$[?(@.counter_name==''Log File(s) Used Size (KB)'')].cntr_value.first()','0',''),
('98568','46566','2','1','1024','0',''),
('98569','46567','1','12','$[?(@.counter_name==''Maximum Workspace Memory (KB)'')].cntr_value.first()','0',''),
('98570','46567','2','1','1024','0',''),
('98571','46568','1','12','$[?(@.counter_name==''Memory Grants Outstanding'')].cntr_value.first()','0',''),
('98572','46569','1','12','$[?(@.counter_name==''Memory Grants Pending'')].cntr_value.first()','0',''),
('98573','46570','1','12','$[?(@.counter_name==''Number of Deadlocks/sec'')].cntr_value.first()','0',''),
('98574','46570','2','10','','0',''),
('98575','46571','1','12','$[?(@.counter_name==''Errors/sec'' && @.instance_name==''DB Offline Errors'')].cntr_value.first()','0',''),
('98576','46571','2','10','','0',''),
('98577','46572','1','12','$[?(@.counter_name==''Page life expectancy'')].cntr_value.first()','0',''),
('98578','46573','1','12','$[?(@.counter_name==''Page lookups/sec'')].cntr_value.first()','0',''),
('98579','46573','2','10','','0',''),
('98580','46574','1','12','$[?(@.counter_name==''Page reads/sec'')].cntr_value.first()','0',''),
('98581','46574','2','10','','0',''),
('98582','46575','1','12','$[?(@.counter_name==''Page Splits/sec'')].cntr_value.first()','0',''),
('98583','46575','2','10','','0',''),
('98584','46576','1','12','$[?(@.counter_name==''Page writes/sec'')].cntr_value.first()','0',''),
('98585','46576','2','10','','0',''),
('98586','46577','1','12','$[?(@.counter_name==''Processes blocked'')].cntr_value.first()','0',''),
('98587','46577','2','20','1h','0',''),
('98588','46578','1','12','$[?(@.counter_name==''Readahead pages/sec'')].cntr_value.first()','0',''),
('98589','46578','2','10','','0',''),
('98590','46579','1','12','$[?(@.counter_name==''Safe Auto-Params/sec'')].cntr_value.first()','0',''),
('98591','46579','2','10','','0',''),
('98592','46580','1','12','$[?(@.counter_name==''SQL Compilations/sec'')].cntr_value.first()','0',''),
('98593','46580','2','10','','0',''),
('98594','46581','1','12','$[?(@.counter_name==''SQL Re-Compilations/sec'')].cntr_value.first()','0',''),
('98595','46581','2','10','','0',''),
('98596','46582','1','12','$[?(@.counter_name==''Table Lock Escalations/sec'')].cntr_value.first()','0',''),
('98597','46582','2','10','','0',''),
('98598','46583','1','12','$[?(@.counter_name==''Target pages'')].cntr_value.first()','0',''),
('98599','46583','2','20','1h','0',''),
('98600','46584','1','12','$[?(@.counter_name==''Target Server Memory (KB)'')].cntr_value.first()','0',''),
('98601','46584','2','1','1024','0',''),
('98602','46585','1','12','$[?(@.counter_name==''Total Latch Wait Time (ms)'')].cntr_value.first()','0',''),
('98603','46585','2','10','','0',''),
('98604','46586','1','12','$[?(@.counter_name==''Total Server Memory (KB)'')].cntr_value.first()','0',''),
('98605','46586','2','1','1024','0',''),
('98606','46587','1','12','$[?(@.counter_name==''Transactions/sec'')].cntr_value.first()','0',''),
('98607','46587','2','10','','0',''),
('98608','46588','1','12','$[?(@.counter_name==''Unsafe Auto-Params/sec'')].cntr_value.first()','0',''),
('98609','46588','2','10','','0',''),
('98610','46589','1','12','$[?(@.counter_name==''User Connections'')].cntr_value.first()','0',''),
('98611','46590','1','12','$[?(@.counter_name==''Errors/sec'' && @.instance_name==''User Errors'')].cntr_value.first()','0',''),
('98612','46590','2','10','','0',''),
('98613','46591','1','12','$[?(@.counter_name==''Workfiles Created/sec'')].cntr_value.first()','0',''),
('98614','46591','2','10','','0',''),
('98615','46592','1','12','$[?(@.counter_name==''Worktables Created/sec'')].cntr_value.first()','0',''),
('98616','46592','2','10','','0',''),
('98617','46593','1','12','$[?(@.counter_name==''WorktablesFromCacheRatio'')].cntr_value.first()','0',''),
('98733','31069','2','20','1h','0',''),
('98734','31074','2','20','1h','0',''),
('98735','31102','3','20','1h','0',''),
('98736','31119','3','20','1h','0',''),
('98744','46668','1','12','$.error','1',''),
('98745','46668','2','20','12h','0',''),
('98746','46669','1','12','$.metrics.AVERAGE_YSQL_CONNECTION_COUNT','0',''),
('98747','46670','1','12','$.metrics.YSQL_CONNECTION_LIMIT','0',''),
('98748','46670','2','20','12h','0',''),
('98749','46671','1','12','$.metrics.YSQL_MAX_CONNECTION_COUNT','0',''),
('98750','46672','1','12','$.metrics.CPU_USAGE','0',''),
('98751','46673','1','12','$.metrics.PROVISIONED_DISK_SPACE_GB','0',''),
('98752','46673','2','1','1073741824','0',''),
('98753','46673','3','20','1h','0',''),
('98754','46674','1','12','$.metrics.DISK_BYTES_READ_MB_PER_SEC','0',''),
('98755','46674','2','1','1048576','0',''),
('98756','46675','1','12','$.metrics.READ_OPS_PER_SEC','0',''),
('98757','46676','1','12','$.metrics.DISK_USAGE_GB','0',''),
('98758','46676','2','1','1073741824','0',''),
('98759','46677','1','12','$.metrics.DISK_BYTES_WRITTEN_MB_PER_SEC','0',''),
('98760','46677','2','1','1048576','0',''),
('98761','46678','1','12','$.metrics.WRITE_OPS_PER_SEC','0',''),
('98762','46679','1','12','$.error','1',''),
('98763','46679','2','20','12h','0',''),
('98764','46680','1','21','var cluster = JSON.parse(value);

const idx = [
	''HEALTHY'',
	''NEEDS_ATTENTION'',
	''UNHEALTHY'',
	''UNKNOWN'',
].indexOf(cluster.data.info.health_info.state);
return idx !== -1 ? idx : 3;','0',''),
('98765','46680','2','20','12h','0',''),
('98766','46681','1','12','$.metrics.MEMORY_TOTAL_GB','0',''),
('98767','46681','2','1','1073741824','0',''),
('98768','46681','3','20','12h','0',''),
('98769','46682','1','12','$.metrics.MEMORY_USAGE_GB','0',''),
('98770','46682','2','1','1073741824','0',''),
('98771','46683','1','12','$.error','1',''),
('98772','46683','2','20','12h','0',''),
('98773','46684','1','12','$.metrics.NETWORK_RECEIVE_BYTES_MB_PER_SEC','0',''),
('98774','46684','2','1','1048576','0',''),
('98775','46685','1','12','$.metrics.NETWORK_RECEIVE_ERRORS_PER_SEC','0',''),
('98776','46686','1','12','$.metrics.NETWORK_TRANSMIT_BYTES_MB_PER_SEC','0',''),
('98777','46686','2','1','1048576','0',''),
('98778','46687','1','12','$.metrics.NETWORK_TRANSMIT_ERRORS_PER_SEC','0',''),
('98779','46688','1','12','$.data.spec.cluster_info.num_nodes','0',''),
('98780','46688','2','20','12h','0',''),
('98781','46689','1','12','$.metrics.NODE_CLOCK_SKEW','0',''),
('98782','46689','2','1','0.001','1',''),
('98783','46690','1','12','$.error','1',''),
('98784','46690','2','20','12h','0',''),
('98785','46691','1','12','$.metrics.AVERAGE_READ_LATENCY_MS','0',''),
('98786','46691','2','1','0.001','2','0'),
('98787','46692','1','12','$.data.info.software_version','0',''),
('98788','46692','2','20','12h','0',''),
('98789','46693','1','21','var cluster = JSON.parse(value);

const idx = [
	''INVALID'',
	''QUEUED'',
	''INIT'',
	''BOOTSTRAPPING'',
	''VPC_PEERING'',
	''NETWORK_CREATING'',
	''PROVISIONING'',
	''CONFIGURING'',
	''CREATING_LB'',
	''UPDATING_LB'',
	''ACTIVE'',
	''PAUSING'',
	''PAUSED'',
	''RESUMING'',
	''UPDATING'',
	''MAINTENANCE'',
	''RESTORE'',
	''FAILED'',
	''CREATE_FAILED'',
	''DELETING'',
	''STARTING_NODE'',
	''STOPPING_NODE'',
	''REBOOTING_NODE'',
	''CREATE_READ_REPLICA_FAILED'',
	''DELETE_READ_REPLICA_FAILED'',
	''DELETE_CLUSTER_FAILED'',
	''EDIT_CLUSTER_FAILED'',
	''EDIT_READ_REPLICA_FAILED'',
	''PAUSE_CLUSTER_FAILED'',
	''RESUME_CLUSTER_FAILED'',
	''RESTORE_BACKUP_FAILED'',
	''CERTIFICATE_ROTATION_FAILED'',
	''UPGRADE_CLUSTER_FAILED'',
	''UPGRADE_CLUSTER_GFLAGS_FAILED'',
	''UPGRADE_CLUSTER_OS_FAILED'',
	''UPGRADE_CLUSTER_SOFTWARE_FAILED'',
	''START_NODE_FAILED'',
	''STOP_NODE_FAILED'',
	''REBOOT_NODE_FAILED'',
	''CONFIGURE_CMK'',
	''ENABLING_CMK'',
	''DISABLING_CMK'',
	''UPDATING_CMK'',
	''ROTATING_CMK'',
	''STOPPING_METRICS_EXPORTER'',
	''STARTING_METRICS_EXPORTER'',
	''CONFIGURING_METRICS_EXPORTER'',
	''STOP_METRICS_EXPORTER_FAILED'',
	''START_METRICS_EXPORTER_FAILED'',
	''CONFIGURE_METRICS_EXPORTER_FAILED'',
	''REMOVING_METRICS_EXPORTER'',
	''REMOVE_METRICS_EXPORTER_FAILED''
].indexOf(cluster.data.info.state);
return idx !== -1 ? idx : 60;','0',''),
('98790','46693','2','20','12h','0',''),
('98791','46694','1','12','$.data.spec.cluster_info.cluster_type','0',''),
('98792','46694','2','25','SYNCHRONOUS
0','0',''),
('98793','46694','3','25','GEO_PARTITIONED
1','0',''),
('98794','46694','4','20','1d','0',''),
('98795','46695','1','12','$.metrics.AVERAGE_WRITE_LATENCY_MS','0',''),
('98796','46695','2','1','0.001','2','0'),
('98797','46696','1','12','$.data.info.ybc_version','0',''),
('98798','46696','2','20','12h','0',''),
('98799','46697','1','12','$.metrics.YCQL_DELETE_LATENCY_MS','0',''),
('98800','46697','2','1','0.001','2','0'),
('98801','46698','1','12','$.metrics.YCQL_DELETE_OPS_PER_SEC','0',''),
('98802','46699','1','12','$.metrics.YCQL_INSERT_LATENCY_MS','0',''),
('98803','46699','2','1','0.001','2','0'),
('98804','46700','1','12','$.metrics.YCQL_INSERT_OPS_PER_SEC','0',''),
('98805','46701','1','12','$.metrics.YCQL_OTHER_LATENCY_MS','0',''),
('98806','46701','2','1','0.001','2','0'),
('98807','46702','1','12','$.metrics.YCQL_OTHER_OPS_PER_SEC','0',''),
('98808','46703','1','12','$.metrics.YCQL_SELECT_LATENCY_MS','0',''),
('98809','46703','2','1','0.001','2','0'),
('98810','46704','1','12','$.metrics.YCQL_SELECT_OPS_PER_SEC','0',''),
('98811','46705','1','12','$.metrics.YCQL_TRANSACTION_LATENCY_MS','0',''),
('98812','46705','2','1','0.001','2','0'),
('98813','46706','1','12','$.metrics.YCQL_TRANSACTION_OPS_PER_SEC','0',''),
('98814','46707','1','12','$.metrics.YCQL_UPDATE_LATENCY_MS','0',''),
('98815','46707','2','1','0.001','2','0'),
('98816','46708','1','12','$.metrics.YCQL_UPDATE_OPS_PER_SEC','0',''),
('98817','46709','1','12','$.metrics.YSQL_DELETE_LATENCY_MS','0',''),
('98818','46709','2','1','0.001','2','0'),
('98819','46710','1','12','$.metrics.YSQL_DELETE_OPS_PER_SEC','0',''),
('98820','46711','1','12','$.metrics.YSQL_INSERT_LATENCY_MS','0',''),
('98821','46711','2','1','0.001','2','0'),
('98822','46712','1','12','$.metrics.YSQL_INSERT_OPS_PER_SEC','0',''),
('98823','46713','1','12','$.metrics.YSQL_OTHER_LATENCY_MS','0',''),
('98824','46713','2','1','0.001','2','0'),
('98825','46714','1','12','$.metrics.YSQL_OTHER_OPS_PER_SEC','0',''),
('98826','46715','1','12','$.metrics.YSQL_SELECT_LATENCY_MS','0',''),
('98827','46715','2','1','0.001','2','0'),
('98828','46716','1','12','$.metrics.YSQL_SELECT_OPS_PER_SEC','0',''),
('98829','46717','1','12','$.metrics.YSQL_TRANSACTION_LATENCY_MS','0',''),
('98830','46717','2','1','0.001','2','0'),
('98831','46718','1','12','$.metrics.YSQL_TRANSACTION_OPS_PER_SEC','0',''),
('98832','46719','1','12','$.metrics.YSQL_UPDATE_LATENCY_MS','0',''),
('98833','46719','2','1','0.001','2','0'),
('98834','46720','1','12','$.metrics.YSQL_UPDATE_OPS_PER_SEC','0',''),
('98835','46721','1','12','$.error','1',''),
('98836','46721','2','20','12h','0',''),
('98837','46722','1','12','$.error','1',''),
('98838','46722','2','20','12h','0',''),
('98886','46750','1','12','$.length()','0',''),
('98887','46757','1','20','12h','0',''),
('98888','46763','1','20','1h','0',''),
('98889','46764','1','10','','0',''),
('98890','46769','1','20','12h','0',''),
('98891','46770','1','20','1d','0',''),
('98892','46771','1','20','1d','0',''),
('98893','46772','1','20','1d','0',''),
('98894','46773','1','20','12h','0',''),
('98895','46774','1','20','12h','0',''),
('98896','46775','1','20','12h','0',''),
('98897','46776','1','1','0.01','0',''),
('98898','46783','1','10','','0',''),
('98899','46784','1','10','','0',''),
('98995','46848','1','21','const idx = {
	''PROVISIONING'': 1,
	''AVAILABLE'': 2,
	''STOPPING'': 3,
	''STOPPED'': 4,
	''STARTING'': 5,
	''TERMINATING'': 6,
	''TERMINATED'': 7,
	''RESTORE_IN_PROGRESS'': 8,
	''RESTORE_FAILED'': 9,
	''BACKUP_IN_PROGRESS'': 10,
	''SCALE_IN_PROGRESS'': 11,
	''AVAILABLE_NEEDS_ATTENTION'': 12,
	''UPDATING'': 13,
	''MAINTENANCE_IN_PROGRESS'': 14,
	''RESTARTING'': 15,
	''RECREATING'': 16,
	''ROLE_CHANGE_IN_PROGRESS'': 17,
	''UPGRADING'': 18,
	''UNAVAILABLE'': 19,
	''INACCESSIBLE'': 20,
	''STANDBY'': 21
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('98996','46848','2','20','1h','0',''),
('98997','46850','1','21','const idx = {
	''PROVISIONING'': 1,
	''RESTORING'': 2,
	''AVAILABLE'': 3,
	''TERMINATING'': 4,
	''TERMINATED'': 5,
	''FAULTY'': 6
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('98998','46850','2','20','1h','0',''),
('98999','46852','1','21','const idx = {
	''PROVISIONING'': 1,
	''RESTORING'': 2,
	''AVAILABLE'': 3,
	''TERMINATING'': 4,
	''TERMINATED'': 5,
	''FAULTY'': 6
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('99000','46852','2','20','1h','0',''),
('99001','46855','1','21','const idx = {
	''MOVING'': 1,
	''PROVISIONING'': 2,
	''RUNNING'': 3,
	''STARTING'': 4,
	''STOPPING'': 5,
	''STOPPED'': 6,
	''CREATING_IMAGE'': 7,
	''TERMINATING'': 8,
	''TERMINATED'': 9
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('99002','46855','2','20','1h','0',''),
('99003','46857','1','25','"
','0',''),
('99004','46857','2','21','const idx = {
	''PROVISIONING'': 1,
	''AVAILABLE'': 2,
	''TERMINATING'': 3,
	''TERMINATED'': 4,
	''UPDATING'': 5
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('99005','46857','3','20','1h','0',''),
('99006','46861','1','20','1d','0',''),
('99007','46862','1','12','$.DatabaseAvailability','0',''),
('99008','46862','2','20','5h','0',''),
('99009','46863','1','12','$.DBBlockChanges','0',''),
('99010','46863','2','20','1h','0',''),
('99011','46864','1','12','$.FailedConnections','0',''),
('99012','46864','2','20','1h','0',''),
('99013','46865','1','12','$.CpuTime','0',''),
('99014','46865','2','21','return Math.round(value * 100) / 100;','0',''),
('99015','46865','3','20','1h','0',''),
('99016','46866','1','12','$.CpuUtilization','0',''),
('99017','46866','2','21','return Math.round(value * 100) / 100;','0',''),
('99018','46866','3','20','1h','0',''),
('99019','46867','1','12','$.ExecuteCount','0',''),
('99020','46867','2','20','1h','0',''),
('99021','46868','1','12','$.ConnectionLatency','0',''),
('99022','46868','2','1','0.001','0',''),
('99023','46868','3','20','5h','0',''),
('99024','46869','1','12','$.QueryLatency','0',''),
('99025','46869','2','1','0.001','0',''),
('99026','46869','3','20','5h','0',''),
('99027','46870','1','12','$.LogicalReads','0',''),
('99028','46870','2','20','1h','0',''),
('99029','46871','1','12','$.CurrentLogons','0',''),
('99030','46871','2','20','1h','0',''),
('99031','46872','1','12','$.FailedLogons','0',''),
('99032','46872','2','20','1h','0',''),
('99033','46873','1','12','$.ParseFailureCount','0',''),
('99034','46873','2','20','1h','0',''),
('99035','46874','1','12','$.HardParseCount','0',''),
('99036','46874','2','20','1h','0',''),
('99037','46875','1','12','$.ParseCount','0',''),
('99038','46875','2','20','1h','0',''),
('99039','46876','1','12','$.PhysicalReadTotalBytes','0',''),
('99040','46876','2','20','1h','0',''),
('99041','46877','1','12','$.PhysicalReads','0',''),
('99042','46877','2','20','1h','0',''),
('99043','46878','1','12','$.PhysicalWriteTotalBytes','0',''),
('99044','46878','2','20','1h','0',''),
('99045','46879','1','12','$.PhysicalWrites','0',''),
('99046','46879','2','20','1h','0',''),
('99047','46880','1','12','$.QueuedStatements','0',''),
('99048','46880','2','20','1h','0',''),
('99049','46881','1','12','$.RedoGenerated','0',''),
('99050','46881','2','20','1h','0',''),
('99051','46882','1','12','$.Sessions','0',''),
('99052','46882','2','20','1h','0',''),
('99053','46883','1','12','$.SQLNetBytesFromClient','0',''),
('99054','46883','2','20','1h','0',''),
('99055','46884','1','12','$.SQLNetBytesFromDBLink','0',''),
('99056','46884','2','20','1h','0',''),
('99057','46885','1','12','$.SQLNetBytesToClient','0',''),
('99058','46885','2','20','1h','0',''),
('99059','46886','1','12','$.SQLNetBytesToDBLink','0',''),
('99060','46886','2','20','1h','0',''),
('99061','46887','1','12','$.RunningStatements','0',''),
('99062','46887','2','20','1h','0',''),
('99063','46888','1','12','$.StorageAllocated','0',''),
('99064','46888','2','1','1073741824','0',''),
('99065','46888','3','20','12h','0',''),
('99066','46889','1','12','$.StorageMax','0',''),
('99067','46889','2','1','1073741824','0',''),
('99068','46889','3','20','12h','0',''),
('99069','46890','1','12','$.StorageUsed','0',''),
('99070','46890','2','1','1073741824','0',''),
('99071','46890','3','20','12h','0',''),
('99072','46891','1','12','$.StorageUtilization','0',''),
('99073','46891','2','20','12h','0',''),
('99074','46892','1','12','$.DBTime','0',''),
('99075','46892','2','21','return Math.round(value * 100) / 100;','0',''),
('99076','46892','3','20','1h','0',''),
('99077','46893','1','12','$.TransactionCount','0',''),
('99078','46893','2','20','1h','0',''),
('99079','46894','1','12','$.UserCalls','0',''),
('99080','46894','2','20','1h','0',''),
('99081','46895','1','12','$.UserCommits','0',''),
('99082','46895','2','20','1h','0',''),
('99083','46896','1','12','$.UserRollbacks','0',''),
('99084','46896','2','20','1h','0',''),
('99085','46897','1','12','$.WaitTime','0',''),
('99086','46897','2','21','return Math.round(value * 100) / 100;','0',''),
('99087','46897','3','20','1h','0',''),
('99088','46898','1','12','$.VolumeGuaranteedIOPS','0',''),
('99089','46898','2','20','1h','0',''),
('99090','46899','1','12','$.VolumeReadThroughput','0',''),
('99091','46899','2','20','1h','0',''),
('99092','46900','1','12','$.VolumeReadOps','0',''),
('99093','46900','2','20','1h','0',''),
('99094','46901','1','12','$.VolumeThrottledIOs','0',''),
('99095','46901','2','20','1h','0',''),
('99096','46902','1','12','$.VolumeGuaranteedThroughput','0',''),
('99097','46902','2','1','1048576','0',''),
('99098','46902','3','20','1h','0',''),
('99099','46903','1','12','$.VolumeGuaranteedVPUsPerGB','0',''),
('99100','46903','2','20','1h','0',''),
('99101','46904','1','12','$.VolumeWriteThroughput','0',''),
('99102','46904','2','20','1h','0',''),
('99103','46905','1','12','$.VolumeWriteOps','0',''),
('99104','46905','2','20','1h','0',''),
('99105','46906','1','12','$.VolumeGuaranteedIOPS','0',''),
('99106','46906','2','20','1h','0',''),
('99107','46907','1','12','$.VolumeReadThroughput','0',''),
('99108','46907','2','20','1h','0',''),
('99109','46908','1','12','$.VolumeReadOps','0',''),
('99110','46908','2','20','1h','0',''),
('99111','46909','1','12','$.VolumeThrottledIOs','0',''),
('99112','46909','2','20','1h','0',''),
('99113','46910','1','12','$.VolumeGuaranteedThroughput','0',''),
('99114','46910','2','1','1048576','0',''),
('99115','46910','3','20','1h','0',''),
('99116','46911','1','12','$.VolumeGuaranteedVPUsPerGB','0',''),
('99117','46911','2','20','1h','0',''),
('99118','46912','1','12','$.VolumeWriteThroughput','0',''),
('99119','46912','2','20','1h','0',''),
('99120','46913','1','12','$.VolumeWriteOps','0',''),
('99121','46913','2','20','1h','0',''),
('99122','46914','1','12','$.CpuUtilization','0',''),
('99123','46914','2','21','return Math.round(value * 100) / 100;','0',''),
('99124','46914','3','20','1h','0',''),
('99125','46915','1','12','$.DiskIopsRead','0',''),
('99126','46915','2','21','return Math.round(value * 100) / 100;','0',''),
('99127','46915','3','20','1h','0',''),
('99128','46916','1','12','$.DiskIopsWritten','0',''),
('99129','46916','2','21','return Math.round(value * 100) / 100;','0',''),
('99130','46916','3','20','1h','0',''),
('99131','46917','1','12','$.DiskBytesRead','0',''),
('99132','46917','2','21','return Math.round(value * 100) / 100;','0',''),
('99133','46917','3','20','1h','0',''),
('99134','46918','1','12','$.DiskBytesWritten','0',''),
('99135','46918','2','21','return Math.round(value * 100) / 100;','0',''),
('99136','46918','3','20','1h','0',''),
('99137','46919','1','12','$.LoadAverage','0',''),
('99138','46919','2','21','return Math.round(value * 100) / 100;','0',''),
('99139','46919','3','20','1h','0',''),
('99140','46920','1','12','$.MemoryAllocationStalls','0',''),
('99141','46920','2','20','1h','0',''),
('99142','46921','1','12','$.MemoryUtilization','0',''),
('99143','46921','2','21','return Math.round(value * 100) / 100;','0',''),
('99144','46921','3','20','1h','0',''),
('99145','46922','1','12','$.NetworksBytesIn','0',''),
('99146','46922','2','21','return Math.round(value * 100) / 100;','0',''),
('99147','46922','3','20','1h','0',''),
('99148','46923','1','12','$.NetworksBytesOut','0',''),
('99149','46923','2','21','return Math.round(value * 100) / 100;','0',''),
('99150','46923','3','20','1h','0',''),
('99151','46924','1','12','$.ClientErrors','0',''),
('99152','46924','2','20','1h','0',''),
('99153','46925','1','12','$.FirstByteLatency','0',''),
('99154','46925','2','1','0.001','0',''),
('99155','46925','3','20','1h','0',''),
('99156','46926','1','12','$.TotalRequestLatency','0',''),
('99157','46926','2','1','0.001','0',''),
('99158','46926','3','20','1h','0',''),
('99159','46927','1','12','$.ObjectCount','0',''),
('99160','46927','2','20','12h','0',''),
('99161','46928','1','12','$.AllRequests','0',''),
('99162','46928','2','20','1h','0',''),
('99163','46929','1','12','$.PostRequests','0',''),
('99164','46929','2','20','1h','0',''),
('99165','46930','1','12','$.PutRequests','0',''),
('99166','46930','2','20','1h','0',''),
('99167','46931','1','12','$.StoredBytes','0',''),
('99168','46931','2','20','12h','0',''),
('99169','46932','1','12','$.UncommittedParts','0',''),
('99170','46932','2','20','12h','0',''),
('99208','46965','1','20','1d','0',''),
('99209','46966','1','20','1d','0',''),
('99210','46967','1','20','1d','0',''),
('99211','46968','1','20','1d','0',''),
('99212','46969','1','20','1d','0',''),
('99213','46971','1','20','1d','0',''),
('99214','46972','1','20','1d','0',''),
('99215','46974','1','10','','0',''),
('99216','46975','1','20','6h','0',''),
('99217','46976','1','10','','0',''),
('99218','46977','1','10','','0',''),
('99219','46978','1','10','','0',''),
('99220','46979','1','10','','0',''),
('99221','46980','1','10','','0',''),
('99222','46981','1','10','','0',''),
('99223','46982','1','10','','0',''),
('99224','46983','1','10','','0',''),
('99225','46988','1','20','1h','0',''),
('99226','46989','1','20','1h','0',''),
('99227','46991','1','20','1h','0',''),
('99358','29653','2','20','1h','0',''),
('99366','30043','1','20','1h','0',''),
('99374','47069','1','26','-1','1',''),
('99375','47070','1','26','-1','1',''),
('99376','47071','1','26','-1','1',''),
('99377','47072','1','12','$.[?(@.Label == "ActiveFlowCount")].Values.first().first()','1',''),
('99378','47073','1','12','$.[?(@.Label == "ActiveFlowCount_TCP")].Values.first().first()','1',''),
('99379','47074','1','12','$.[?(@.Label == "ActiveFlowCount_TLS")].Values.first().first()','1',''),
('99380','47075','1','12','$.[?(@.Label == "ActiveFlowCount_UDP")].Values.first().first()','1',''),
('99381','47076','1','12','$.error','2',''),
('99382','47076','2','20','3h','0',''),
('99383','47077','1','12','$.[?(@.Label == "ConsumedLCUs")].Values.first().first()','1',''),
('99384','47078','1','12','$.[?(@.Label == "ConsumedLCUs_TCP")].Values.first().first()','1',''),
('99385','47079','1','12','$.[?(@.Label == "ConsumedLCUs_TLS")].Values.first().first()','1',''),
('99386','47080','1','12','$.[?(@.Label == "ConsumedLCUs_UDP")].Values.first().first()','1',''),
('99387','47081','1','12','$.[?(@.Label == "ClientTLSNegotiationErrorCount")].Values.first().first()','1',''),
('99388','47082','1','12','$.error','2',''),
('99389','47082','2','20','3h','0',''),
('99390','47083','1','12','$.[?(@.Label == "NewFlowCount")].Values.first().first()','1',''),
('99391','47084','1','12','$.[?(@.Label == "NewFlowCount_TCP")].Values.first().first()','1',''),
('99392','47085','1','12','$.[?(@.Label == "NewFlowCount_TLS")].Values.first().first()','1',''),
('99393','47086','1','12','$.[?(@.Label == "NewFlowCount_UDP")].Values.first().first()','1',''),
('99394','47087','1','12','$.[?(@.Label == "PeakPacketsPerSecond")].Values.first().first()','1',''),
('99395','47088','1','12','$.[?(@.Label == "PortAllocationErrorCount")].Values.first().first()','1',''),
('99396','47089','1','12','$.[?(@.Label == "ProcessedBytes")].Values.first().first()','1',''),
('99397','47090','1','12','$.[?(@.Label == "ProcessedBytes_TCP")].Values.first().first()','1',''),
('99398','47091','1','12','$.[?(@.Label == "ProcessedBytes_TLS")].Values.first().first()','1',''),
('99399','47092','1','12','$.[?(@.Label == "ProcessedBytes_UDP")].Values.first().first()','1',''),
('99400','47093','1','12','$.[?(@.Label == "ProcessedPackets")].Values.first().first()','1',''),
('99401','47094','1','12','$.[?(@.Label == "SecurityGroupBlockedFlowCount_Inbound_ICMP")].Values.first().first()','1',''),
('99402','47095','1','12','$.[?(@.Label == "SecurityGroupBlockedFlowCount_Inbound_TCP")].Values.first().first()','1',''),
('99403','47096','1','12','$.[?(@.Label == "SecurityGroupBlockedFlowCount_Inbound_UDP")].Values.first().first()','1',''),
('99404','47097','1','12','$.[?(@.Label == "SecurityGroupBlockedFlowCount_Outbound_ICMP")].Values.first().first()','1',''),
('99405','47098','1','12','$.[?(@.Label == "SecurityGroupBlockedFlowCount_Outbound_TCP")].Values.first().first()','1',''),
('99406','47099','1','12','$.[?(@.Label == "SecurityGroupBlockedFlowCount_Outbound_UDP")].Values.first().first()','1',''),
('99407','47100','1','12','$.[?(@.Label == "TargetTLSNegotiationErrorCount")].Values.first().first()','1',''),
('99408','47101','1','12','$.[?(@.Label == "TCP_Client_Reset_Count")].Values.first().first()','1',''),
('99409','47102','1','12','$.[?(@.Label == "TCP_ELB_Reset_Count")].Values.first().first()','1',''),
('99410','47103','1','12','$.[?(@.Label == "TCP_Target_Reset_Count")].Values.first().first()','1',''),
('99411','47104','1','12','$.[?(@.Label == "UnhealthyRoutingFlowCount")].Values.first().first()','1',''),
('99423','46216','1','1','1000','0',''),
('99449','45481','1','29','dskPath
1.3.6.1.4.1.2021.9.1.2
0
dskDevice
1.3.6.1.4.1.2021.9.1.3
0
dskPercentNode
1.3.6.1.4.1.2021.9.1.10
0
dskTotalLow
1.3.6.1.4.1.2021.9.1.11
0
dskTotalHigh
1.3.6.1.4.1.2021.9.1.12
0
dskAvailLow
1.3.6.1.4.1.2021.9.1.13
0
dskAvailHigh
1.3.6.1.4.1.2021.9.1.14
0
dskUsedLow
1.3.6.1.4.1.2021.9.1.15
0
dskUsedHigh
1.3.6.1.4.1.2021.9.1.16
0
dskEntry
1.3.6.1.4.1.2021.9.1.1
0','0',''),
('99464','45487','1','29','hrStorageType
1.3.6.1.2.1.25.2.3.1.2
0
hrStorageDescr
1.3.6.1.2.1.25.2.3.1.3
0
hrStorageAllocationUnits
1.3.6.1.2.1.25.2.3.1.4
0
hrStorageSize
1.3.6.1.2.1.25.2.3.1.5
0
hrStorageUsed
1.3.6.1.2.1.25.2.3.1.6
0','0',''),
('99473','47131','1','26','-1','1',''),
('99474','47132','1','12','$.error','2',''),
('99475','47132','2','20','3h','0',''),
('99476','47133','1','12','$.performance_data.summary.navigation.dns_lookup_time','1',''),
('99477','47133','2','1','0.001','0',''),
('99478','47134','1','12','$.performance_data.summary.navigation.dom_content_loading_time','1',''),
('99479','47134','2','1','0.001','0',''),
('99480','47135','1','12','$.performance_data.summary.navigation.encoded_size','1',''),
('99481','47136','1','12','$.performance_data.summary.navigation.load_finished','1',''),
('99482','47136','2','1','0.001','0',''),
('99483','47137','1','12','$.performance_data.summary.navigation.request_time','1',''),
('99484','47137','2','1','0.001','0',''),
('99485','47138','1','12','$.performance_data.summary.navigation.resource_fetch_time','1',''),
('99486','47138','2','1','0.001','0',''),
('99487','47139','1','12','$.performance_data.summary.navigation.response_time','1',''),
('99488','47139','2','1','0.001','0',''),
('99489','47140','1','12','$.performance_data.summary.navigation.service_worker_processing_time','1',''),
('99490','47140','2','1','0.001','0',''),
('99491','47141','1','12','$.performance_data.summary.navigation.tcp_handshake_time','1',''),
('99492','47141','2','1','0.001','0',''),
('99493','47142','1','12','$.performance_data.summary.navigation.tls_negotiation_time','1',''),
('99494','47142','2','1','0.001','0',''),
('99495','47143','1','12','$.performance_data.summary.navigation.total_size','1',''),
('99496','47144','1','12','$.performance_data.summary.navigation.transferred_size','1',''),
('99497','47145','1','12','$.performance_data.summary.resource.dns_lookup_time','1',''),
('99498','47145','2','1','0.001','0',''),
('99499','47146','1','12','$.performance_data.summary.resource.dom_content_loading_time','1',''),
('99500','47146','2','1','0.001','0',''),
('99501','47147','1','12','$.performance_data.summary.resource.encoded_size','1',''),
('99502','47148','1','12','$.performance_data.summary.resource.resource_fetch_time','1',''),
('99503','47148','2','1','0.001','0',''),
('99504','47149','1','12','$.performance_data.summary.resource.load_finished','1',''),
('99505','47149','2','1','0.001','0',''),
('99506','47150','1','12','$.performance_data.summary.resource.request_time','1',''),
('99507','47150','2','1','0.001','0',''),
('99508','47151','1','12','$.performance_data.summary.resource.response_time','1',''),
('99509','47151','2','1','0.001','0',''),
('99510','47152','1','12','$.performance_data.summary.resource.service_worker_processing_time','1',''),
('99511','47152','2','1','0.001','0',''),
('99512','47153','1','12','$.performance_data.summary.resource.tcp_handshake_time','1',''),
('99513','47153','2','1','0.001','0',''),
('99514','47154','1','12','$.performance_data.summary.resource.tls_negotiation_time','1',''),
('99515','47154','2','1','0.001','0',''),
('99516','47155','1','12','$.performance_data.summary.resource.total_size','1',''),
('99517','47156','1','12','$.performance_data.summary.resource.transferred_size','1',''),
('99518','47157','1','12','$.screenshot','1',''),
('99521','47158','1','18',E'API rate limit exceeded
\\0','1',''),
('99522','47159','1','18',E'API rate limit exceeded
\\0','1',''),
('99523','47160','1','18',E'API rate limit exceeded
\\0','1',''),
('99524','47160','2','20','6h','0',''),
('99525','47162','1','18',E'API rate limit exceeded
\\0','1',''),
('99526','47163','1','18',E'API rate limit exceeded
\\0','1',''),
('99527','47163','2','20','6h','0',''),
('99528','47164','1','18',E'API rate limit exceeded
\\0','1',''),
('99529','47165','1','12','$.issues.closed','0',''),
('99530','47166','1','12','$.issues.open','0',''),
('99531','47167','1','12','$.issues.total','0',''),
('99532','47168','1','12','$.pr.closed','0',''),
('99533','47169','1','12','$.pr.open','0',''),
('99534','47170','1','12','$.pr.total','0',''),
('99535','47171','1','12','$.data..forks_count.first()','0',''),
('99536','47171','2','20','3h','0',''),
('99537','47172','1','12','$.error','2',''),
('99538','47172','2','20','3h','0',''),
('99539','47173','1','12','$.data..fork.first()','0',''),
('99540','47173','2','6','','0',''),
('99541','47173','3','20','6h','0',''),
('99542','47174','1','12','$.data..size.first()','0',''),
('99543','47174','2','1','1024','0',''),
('99544','47174','3','20','3h','0',''),
('99545','47175','1','12','$.data..stargazers_count.first()','0',''),
('99546','47175','2','20','3h','0',''),
('99547','47176','1','12','$.data..subscribers_count.first()','0',''),
('99548','47176','2','20','3h','0',''),
('99549','47177','1','12','$.headers[''x-ratelimit-limit'']','0',''),
('99550','47177','2','20','3h','0',''),
('99551','47178','1','12','$.headers[''x-ratelimit-used'']','0',''),
('99552','47179','1','21','const data = JSON.parse(value);

const requests_limit = data.headers[''x-ratelimit-limit''],
	  requests_used = data.headers[''x-ratelimit-used''];

return requests_used / requests_limit * 100;','0',''),
('99553','47180','1','12','$.error','2',''),
('99554','47180','2','20','3h','0',''),
('99587','47195','1','21','var data = JSON.parse(value).data;
var result = {};

data.forEach(function(item) {
	var attributes = item["{#JMXATTR}"].split(".");
	var license = attributes[0].replace("jira-","");
	var property = attributes.slice(1).join(''_'');
	if (!result[license]) {
		result[license] = {''properties'': {} };
	}

	result[license][''properties''][property] = item["{#JMXVALUE}"];
});

return JSON.stringify(result);','0',''),
('99588','47198','1','10','','0',''),
('99589','47199','1','10','','0',''),
('99590','47206','1','9','','0',''),
('99591','47207','1','9','','0',''),
('99592','47208','1','9','','0',''),
('99593','47209','1','9','','0',''),
('99594','47223','1','9','','0',''),
('99604','47236','1','12','$.items[*].status.containerStatuses[?(@.ready == ''true'')].length()','0',''),
('99605','47243','1','12','$.metrics.getOffice365ServicesUserCounts[0].exchangeActive','1',''),
('99606','47243','2','20','1d','0',''),
('99607','47244','1','12','$.metrics.getOffice365ServicesUserCounts[0].exchangeInactive','1',''),
('99608','47244','2','20','1d','0',''),
('99609','47245','1','12','$.metrics.getOffice365ServicesUserCounts[0].office365Active','1',''),
('99610','47245','2','20','1d','0',''),
('99611','47246','1','12','$.metrics.getOffice365ServicesUserCounts[0].office365Inactive','1',''),
('99612','47246','2','20','1d','0',''),
('99613','47247','1','12','$.metrics.getOffice365ServicesUserCounts[0].oneDriveActive','1',''),
('99614','47247','2','20','1d','0',''),
('99615','47248','1','12','$.metrics.getOffice365ServicesUserCounts[0].oneDriveInactive','1',''),
('99616','47248','2','20','1d','0',''),
('99617','47249','1','12','$.metrics.getOffice365ServicesUserCounts[0].reportRefreshDate','1',''),
('99618','47249','2','20','1d','0',''),
('99619','47250','1','12','$.metrics.getOffice365ServicesUserCounts[0].sharePointActive','1',''),
('99620','47250','2','20','1d','0',''),
('99621','47251','1','12','$.metrics.getOffice365ServicesUserCounts[0].sharePointInactive','1',''),
('99622','47251','2','20','1d','0',''),
('99623','47252','1','12','$.metrics.getOffice365ServicesUserCounts[0].skypeForBusinessActive','1',''),
('99624','47252','2','20','1d','0',''),
('99625','47253','1','12','$.metrics.getOffice365ServicesUserCounts[0].skypeForBusinessInactive','1',''),
('99626','47253','2','20','1d','0',''),
('99627','47254','1','12','$.metrics.getOffice365ServicesUserCounts[0].teamsActive','1',''),
('99628','47254','2','20','1d','0',''),
('99629','47255','1','12','$.metrics.getOffice365ServicesUserCounts[0].teamsInactive','1',''),
('99630','47255','2','20','1d','0',''),
('99631','47256','1','12','$.metrics.getOffice365ServicesUserCounts[0].yammerActive','1',''),
('99632','47256','2','20','1d','0',''),
('99633','47257','1','12','$.metrics.getOffice365ServicesUserCounts[0].yammerInactive','1',''),
('99634','47257','2','20','1d','0',''),
('99635','47258','1','12','$.error','2',''),
('99636','47258','2','20','1h','0',''),
('99637','47259','1','12','$.metrics.getM365AppUserCounts[0].userCounts[0].excel','1',''),
('99638','47259','2','20','1d','0',''),
('99639','47260','1','12','$.metrics.getM365AppUserCounts[0].userCounts[0].oneNote','1',''),
('99640','47260','2','20','1d','0',''),
('99641','47261','1','12','$.metrics.getM365AppUserCounts[0].userCounts[0].outlook','1',''),
('99642','47261','2','20','1d','0',''),
('99643','47262','1','12','$.metrics.getM365AppUserCounts[0].userCounts[0].powerPoint','1',''),
('99644','47262','2','20','1d','0',''),
('99645','47263','1','12','$.metrics.getM365AppUserCounts[0].userCounts[0].reportDate','1',''),
('99646','47263','2','20','1d','0',''),
('99647','47264','1','12','$.metrics.getM365AppUserCounts[0].userCounts[0].teams','1',''),
('99648','47264','2','20','1d','0',''),
('99649','47265','1','12','$.metrics.getM365AppUserCounts[0].userCounts[0].word','1',''),
('99650','47265','2','20','1d','0',''),
('99651','47266','1','12','$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].mac','1',''),
('99652','47266','2','20','1d','0',''),
('99653','47267','1','12','$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].mobile','1',''),
('99654','47267','2','20','1d','0',''),
('99655','47268','1','12','$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].reportDate','1',''),
('99656','47268','2','20','1d','0',''),
('99657','47269','1','12','$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].web','1',''),
('99658','47269','2','20','1d','0',''),
('99659','47270','1','12','$.metrics.getM365AppPlatformUserCounts[0].userCounts[0].windows','1',''),
('99660','47270','2','20','1d','0',''),
('99661','47271','1','12','$.metrics.getOffice365ActiveUserCounts[6].exchange','1',''),
('99662','47271','2','20','1d','0',''),
('99663','47272','1','12','$.metrics.getOffice365ActiveUserCounts[6].office365','1',''),
('99664','47272','2','20','1d','0',''),
('99665','47273','1','12','$.metrics.getOffice365ActiveUserCounts[6].oneDrive','1',''),
('99666','47273','2','20','1d','0',''),
('99667','47274','1','12','$.metrics.getOffice365ActiveUserCounts[6].reportDate','1',''),
('99668','47274','2','20','1d','0',''),
('99669','47275','1','12','$.metrics.getOffice365ActiveUserCounts[6].sharePoint','1',''),
('99670','47275','2','20','1d','0',''),
('99671','47276','1','12','$.metrics.getOffice365ActiveUserCounts[6].skypeForBusiness','1',''),
('99672','47276','2','20','1d','0',''),
('99673','47277','1','12','$.metrics.getOffice365ActiveUserCounts[6].teams','1',''),
('99674','47277','2','20','1d','0',''),
('99675','47278','1','12','$.metrics.getOffice365ActiveUserCounts[6].yammer','1',''),
('99676','47278','2','20','1d','0',''),
('99677','47279','1','12','$.error','2',''),
('99678','47279','2','20','1h','0',''),
('99679','47280','1','12','$.metrics.getOneDriveActivityFileCounts[0].reportDate','1',''),
('99680','47280','2','20','1d','0',''),
('99681','47281','1','12','$.metrics.getOneDriveActivityFileCounts[0].sharedExternally','1',''),
('99682','47281','2','20','1d','0',''),
('99683','47282','1','12','$.metrics.getOneDriveActivityFileCounts[0].sharedInternally','1',''),
('99684','47282','2','20','1d','0',''),
('99685','47283','1','12','$.metrics.getOneDriveActivityFileCounts[0].synced','1',''),
('99686','47283','2','20','1d','0',''),
('99687','47284','1','12','$.metrics.getOneDriveActivityFileCounts[0].viewedOrEdited','1',''),
('99688','47284','2','20','1d','0',''),
('99689','47285','1','12','$.metrics.getOneDriveUsageFileCounts[0].active','1',''),
('99690','47285','2','20','1d','0',''),
('99691','47286','1','12','$.metrics.getOneDriveUsageFileCounts[0].reportDate','1',''),
('99692','47286','2','20','1d','0',''),
('99693','47287','1','12','$.metrics.getOneDriveUsageFileCounts[0].total','1',''),
('99694','47287','2','20','1d','0',''),
('99695','47288','1','12','$.metrics.getOneDriveUsageAccountCounts[0].active','1',''),
('99696','47288','2','20','1d','0',''),
('99697','47289','1','12','$.metrics.getOneDriveUsageAccountCounts[0].reportDate','1',''),
('99698','47289','2','20','1d','0',''),
('99699','47290','1','12','$.metrics.getOneDriveUsageAccountCounts[0].total','1',''),
('99700','47290','2','20','1d','0',''),
('99701','47291','1','12','$.metrics.getOneDriveUsageStorage[0].reportDate','1',''),
('99702','47291','2','20','1d','0',''),
('99703','47292','1','12','$.metrics.getOneDriveUsageStorage[?(@.siteType == "All")].storageUsedInBytes.first()','1',''),
('99704','47292','2','20','1d','0',''),
('99705','47293','1','12','$.metrics.getOneDriveActivityUserCounts[0].reportDate','1',''),
('99706','47293','2','20','1d','0',''),
('99707','47294','1','12','$.metrics.getOneDriveActivityUserCounts[0].sharedExternally','1',''),
('99708','47294','2','20','1d','0',''),
('99709','47295','1','12','$.metrics.getOneDriveActivityUserCounts[0].sharedInternally','1',''),
('99710','47295','2','20','1d','0',''),
('99711','47296','1','12','$.metrics.getOneDriveActivityUserCounts[0].synced','1',''),
('99712','47296','2','20','1d','0',''),
('99713','47297','1','12','$.metrics.getOneDriveActivityUserCounts[0].viewedOrEdited','1',''),
('99714','47297','2','20','1d','0',''),
('99715','47298','1','12','$.metrics.getEmailActivityCounts[0].meetingCreated','1',''),
('99716','47298','2','20','1d','0',''),
('99717','47299','1','12','$.metrics.getEmailActivityCounts[0].meetingInteracted','1',''),
('99718','47299','2','20','1d','0',''),
('99719','47300','1','12','$.metrics.getEmailActivityCounts[0].read','1',''),
('99720','47300','2','20','1d','0',''),
('99721','47301','1','12','$.metrics.getEmailActivityCounts[0].receive','1',''),
('99722','47301','2','20','1d','0',''),
('99723','47302','1','12','$.metrics.getEmailActivityCounts[0].reportRefreshDate','1',''),
('99724','47302','2','20','1d','0',''),
('99725','47303','1','12','$.metrics.getEmailActivityCounts[0].send','1',''),
('99726','47303','2','20','1d','0',''),
('99727','47304','1','12','$.error','2',''),
('99728','47304','2','20','1h','0',''),
('99729','47305','1','12','$.metrics.getMailboxUsageMailboxCounts[0].active','1',''),
('99730','47305','2','20','1d','0',''),
('99731','47306','1','21','var data=JSON.parse(value);

return data.metrics.getMailboxUsageMailboxCounts[0].active * 100 / data.metrics.getMailboxUsageMailboxCounts[0].total;','0',''),
('99732','47306','2','20','1d','0',''),
('99733','47307','1','12','$.metrics.getMailboxUsageMailboxCounts[0].reportDate','1',''),
('99734','47307','2','20','1d','0',''),
('99735','47308','1','12','$.metrics.getMailboxUsageMailboxCounts[0].total','1',''),
('99736','47308','2','20','1d','0',''),
('99737','47309','1','12','$.metrics.getMailboxUsageStorage[0].reportDate','1',''),
('99738','47309','2','20','1d','0',''),
('99739','47310','1','12','$.metrics.getMailboxUsageStorage[0].storageUsedInBytes','1',''),
('99740','47310','2','20','1d','0',''),
('99741','47311','1','12','$.metrics.getEmailAppUsageUserCounts[6].imap4App','1',''),
('99742','47311','2','20','1d','0',''),
('99743','47312','1','12','$.metrics.getEmailAppUsageUserCounts[6].outlookForMac','1',''),
('99744','47312','2','20','1d','0',''),
('99745','47313','1','12','$.metrics.getEmailAppUsageUserCounts[6].mailForMac','1',''),
('99746','47313','2','20','1d','0',''),
('99747','47314','1','12','$.metrics.getEmailActivityUserCounts[0].meetingCreated','1',''),
('99748','47314','2','20','1d','0',''),
('99749','47315','1','12','$.metrics.getEmailActivityUserCounts[0].meetingInteracted','1',''),
('99750','47315','2','20','1d','0',''),
('99751','47316','1','12','$.metrics.getEmailAppUsageUserCounts[6].outlookForMobile','1',''),
('99752','47316','2','20','1d','0',''),
('99753','47317','1','12','$.metrics.getEmailAppUsageUserCounts[6].pop3App','1',''),
('99754','47317','2','20','1d','0',''),
('99755','47318','1','12','$.metrics.getEmailActivityUserCounts[0].read','1',''),
('99756','47318','2','20','1d','0',''),
('99757','47319','1','12','$.metrics.getEmailActivityUserCounts[0].receive','1',''),
('99758','47319','2','20','1d','0',''),
('99759','47320','1','12','$.metrics.getEmailActivityUserCounts[0].reportRefreshDate','1',''),
('99760','47320','2','20','1d','0',''),
('99761','47321','1','12','$.metrics.getEmailAppUsageUserCounts[6].reportDate','1',''),
('99762','47321','2','20','1d','0',''),
('99763','47322','1','12','$.metrics.getEmailActivityUserCounts[0].send','1',''),
('99764','47322','2','20','1d','0',''),
('99765','47323','1','12','$.metrics.getEmailAppUsageUserCounts[6].smtpApp','1',''),
('99766','47323','2','20','1d','0',''),
('99767','47324','1','12','$.metrics.getEmailAppUsageUserCounts[6].outlookForWeb','1',''),
('99768','47324','2','20','1d','0',''),
('99769','47325','1','12','$.metrics.getEmailAppUsageUserCounts[6].outlookForWindows','1',''),
('99770','47325','2','20','1d','0',''),
('99771','47326','1','12','$.error','2',''),
('99772','47326','2','20','1h','0',''),
('99773','47327','1','12','$.error','2',''),
('99774','47327','2','20','1h','0',''),
('99775','47328','1','12','$.metrics.getSharePointActivityFileCounts[0].reportDate','1',''),
('99776','47328','2','20','1d','0',''),
('99777','47329','1','12','$.metrics.getSharePointActivityFileCounts[0].sharedExternally','1',''),
('99778','47329','2','20','1d','0',''),
('99779','47330','1','12','$.metrics.getSharePointActivityFileCounts[0].sharedInternally','1',''),
('99780','47330','2','20','1d','0',''),
('99781','47331','1','12','$.metrics.getSharePointActivityFileCounts[0].synced','1',''),
('99782','47331','2','20','1d','0',''),
('99783','47332','1','12','$.metrics.getSharePointActivityFileCounts[0].viewedOrEdited','1',''),
('99784','47332','2','20','1d','0',''),
('99785','47333','1','12','$.metrics.getSharePointSiteUsageFileCounts[0].active','1',''),
('99786','47333','2','20','1d','0',''),
('99787','47334','1','12','$.metrics.getSharePointSiteUsageFileCounts[0].reportDate','1',''),
('99788','47334','2','20','1d','0',''),
('99789','47335','1','12','$.metrics.getSharePointSiteUsageFileCounts[0].total','1',''),
('99790','47335','2','20','1d','0',''),
('99791','47336','1','12','$.metrics.getSharePointSiteUsagePages[0].pageViewCount','1',''),
('99792','47336','2','20','1d','0',''),
('99793','47337','1','12','$.metrics.getSharePointSiteUsagePages[0].reportDate','1',''),
('99794','47337','2','20','1d','0',''),
('99795','47338','1','12','$.metrics.getSharePointActivityPages[0].visitedPageCount','1',''),
('99796','47338','2','20','1d','0',''),
('99797','47339','1','12','$.metrics.getSharePointActivityPages[0].reportDate','1',''),
('99798','47339','2','20','1d','0',''),
('99799','47340','1','12','$.metrics.getSharePointSiteUsageSiteCounts[0].reportDate','1',''),
('99800','47340','2','20','1d','0',''),
('99801','47341','1','12','$.metrics.getSharePointSiteUsageSiteCounts[0].active','1',''),
('99802','47341','2','20','1d','0',''),
('99803','47342','1','12','$.metrics.getSharePointSiteUsageSiteCounts[0].total','1',''),
('99804','47342','2','20','1d','0',''),
('99805','47343','1','12','$.metrics.getSharePointSiteUsageStorage[0].reportDate','1',''),
('99806','47343','2','20','1d','0',''),
('99807','47344','1','12','$.metrics.getSharePointSiteUsageStorage[0].storageUsedInBytes','1',''),
('99808','47344','2','20','1d','0',''),
('99809','47345','1','12','$.metrics.getSharePointActivityUserCounts[0].reportDate','1',''),
('99810','47345','2','20','1d','0',''),
('99811','47346','1','12','$.metrics.getSharePointActivityUserCounts[0].sharedExternally','1',''),
('99812','47346','2','20','1d','0',''),
('99813','47347','1','12','$.metrics.getSharePointActivityUserCounts[0].sharedInternally','1',''),
('99814','47347','2','20','1d','0',''),
('99815','47348','1','12','$.metrics.getSharePointActivityUserCounts[0].synced','1',''),
('99816','47348','2','20','1d','0',''),
('99817','47349','1','12','$.metrics.getSharePointActivityUserCounts[0].viewedOrEdited','1',''),
('99818','47349','2','20','1d','0',''),
('99819','47350','1','12','$.metrics.getSharePointActivityUserCounts[0].visitedPage','1',''),
('99820','47350','2','20','1d','0',''),
('99821','47351','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeChannels','1',''),
('99822','47351','2','20','1d','0',''),
('99823','47352','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeExternalUsers','1',''),
('99824','47352','2','20','1d','0',''),
('99825','47353','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeSharedChannels','1',''),
('99826','47353','2','20','1d','0',''),
('99827','47354','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].activeUsers','1',''),
('99828','47354','2','20','1d','0',''),
('99829','47355','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].channelMessages','1',''),
('99830','47355','2','20','1d','0',''),
('99831','47356','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].guests','1',''),
('99832','47356','2','20','1d','0',''),
('99833','47357','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].meetingsOrganized','1',''),
('99834','47357','2','20','1d','0',''),
('99835','47358','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].mentions','1',''),
('99836','47358','2','20','1d','0',''),
('99837','47359','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].postMessages','1',''),
('99838','47359','2','20','1d','0',''),
('99839','47360','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].replyMessages','1',''),
('99840','47360','2','20','1d','0',''),
('99841','47361','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].reactions','1',''),
('99842','47361','2','20','1d','0',''),
('99843','47362','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].reportRefreshDate','1',''),
('99844','47362','2','20','1d','0',''),
('99845','47363','1','12','$.metrics.getTeamsTeamActivityDistributionCounts[0].activityDistributions[0].urgentMessages','1',''),
('99846','47363','2','20','1d','0',''),
('99847','47364','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].calls','1',''),
('99848','47364','2','20','1d','0',''),
('99849','47365','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].audioDuration','1',''),
('99850','47365','2','20','1d','0',''),
('99851','47365','3','21',E'function iso8601DurationToSeconds(iso8601Duration) {
	const iso8601DurationRegex = /(-)?P(?:([.,\\d]+)Y)?(?:([.,\\d]+)M)?(?:([.,\\d]+)W)?(?:([.,\\d]+)D)?(?:T(?:([.,\\d]+)H)?(?:([.,\\d]+)M)?(?:([.,\\d]+)S)?)?/;
	const matches = iso8601Duration.match(iso8601DurationRegex);

	duration = 0;
	matches.forEach( function (field, index) {
		if (field != undefined) {
			switch(index) {
				case 2: duration += parseInt(field) * daysInThisYear() * 86400; break;
				case 3: duration += parseInt(field) * daysInThisMonth() * 86400; break;
				case 4: duration += parseInt(field) * 604800; break;
				case 5: duration += parseInt(field) * 86400; break;
				case 6: duration += parseInt(field) * 3600; break;
				case 7: duration += parseInt(field) * 60; break;
				case 8: duration += parseInt(field);
			}
		}
	});

	return duration;
};

function daysInThisMonth() {
	const now = new Date();

	return new Date(now.getFullYear(), now.getMonth()+1, 0).getDate();
};

function daysInThisYear() {
	const now = new Date();

	return new Date(now.getFullYear(), 2, 0).getDate() + 337;
};

return iso8601DurationToSeconds(value);','0',''),
('99852','47366','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].screenShareDuration','1',''),
('99853','47366','2','20','1d','0',''),
('99854','47366','3','21',E'function iso8601DurationToSeconds(iso8601Duration) {
	const iso8601DurationRegex = /(-)?P(?:([.,\\d]+)Y)?(?:([.,\\d]+)M)?(?:([.,\\d]+)W)?(?:([.,\\d]+)D)?(?:T(?:([.,\\d]+)H)?(?:([.,\\d]+)M)?(?:([.,\\d]+)S)?)?/;
	const matches = iso8601Duration.match(iso8601DurationRegex);

	duration = 0;
	matches.forEach( function (field, index) {
		if (field != undefined) {
			switch(index) {
				case 2: duration += parseInt(field) * daysInThisYear() * 86400; break;
				case 3: duration += parseInt(field) * daysInThisMonth() * 86400; break;
				case 4: duration += parseInt(field) * 604800; break;
				case 5: duration += parseInt(field) * 86400; break;
				case 6: duration += parseInt(field) * 3600; break;
				case 7: duration += parseInt(field) * 60; break;
				case 8: duration += parseInt(field);
			}
		}
	});

	return duration;
};

function daysInThisMonth() {
	const now = new Date();

	return new Date(now.getFullYear(), now.getMonth()+1, 0).getDate();
};

function daysInThisYear() {
	const now = new Date();

	return new Date(now.getFullYear(), 2, 0).getDate() + 337;
};

return iso8601DurationToSeconds(value);','0',''),
('99855','47367','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].videoDuration','1',''),
('99856','47367','2','20','1d','0',''),
('99857','47367','3','21',E'function iso8601DurationToSeconds(iso8601Duration) {
	const iso8601DurationRegex = /(-)?P(?:([.,\\d]+)Y)?(?:([.,\\d]+)M)?(?:([.,\\d]+)W)?(?:([.,\\d]+)D)?(?:T(?:([.,\\d]+)H)?(?:([.,\\d]+)M)?(?:([.,\\d]+)S)?)?/;
	const matches = iso8601Duration.match(iso8601DurationRegex);

	duration = 0;
	matches.forEach( function (field, index) {
		if (field != undefined) {
			switch(index) {
				case 2: duration += parseInt(field) * daysInThisYear() * 86400; break;
				case 3: duration += parseInt(field) * daysInThisMonth() * 86400; break;
				case 4: duration += parseInt(field) * 604800; break;
				case 5: duration += parseInt(field) * 86400; break;
				case 6: duration += parseInt(field) * 3600; break;
				case 7: duration += parseInt(field) * 60; break;
				case 8: duration += parseInt(field);
			}
		}
	});

	return duration;
};

function daysInThisMonth() {
	const now = new Date();

	return new Date(now.getFullYear(), now.getMonth()+1, 0).getDate();
};

function daysInThisYear() {
	const now = new Date();

	return new Date(now.getFullYear(), 2, 0).getDate() + 337;
};

return iso8601DurationToSeconds(value);','0',''),
('99858','47368','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].meetingsAttended','1',''),
('99859','47368','2','20','1d','0',''),
('99860','47369','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].meetingsOrganized','1',''),
('99861','47369','2','20','1d','0',''),
('99862','47370','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].meetings','1',''),
('99863','47370','2','20','1d','0',''),
('99864','47371','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].teamChatMessages','1',''),
('99865','47371','2','20','1d','0',''),
('99866','47372','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].postMessages','1',''),
('99867','47372','2','20','1d','0',''),
('99868','47373','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].privateChatMessages','1',''),
('99869','47373','2','20','1d','0',''),
('99870','47374','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].userCounts[0].replyMessages','1',''),
('99871','47374','2','20','1d','0',''),
('99872','47375','1','12','$.metrics.getTeamsUserActivityTotalDistributionCounts[0].reportRefreshDate','1',''),
('99873','47375','2','20','1d','0',''),
('99874','47376','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].androidPhone - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].androidPhone;','0',''),
('99875','47376','2','20','1d','0',''),
('99876','47377','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].chromeOS - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].chromeOS;','0',''),
('99877','47377','2','20','1d','0',''),
('99878','47378','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].ios - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].ios;','0',''),
('99879','47378','2','20','1d','0',''),
('99880','47379','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].linux - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].linux;','0',''),
('99881','47379','2','20','1d','0',''),
('99882','47380','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].mac - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].mac;','0',''),
('99883','47380','2','20','1d','0',''),
('99884','47381','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].web - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].web;','0',''),
('99885','47381','2','20','1d','0',''),
('99886','47382','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].windows - data.metrics.getTeamsDeviceUsageDistributionUserCounts[0].windows;','0',''),
('99887','47382','2','20','1d','0',''),
('99888','47383','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].androidPhone','1',''),
('99889','47383','2','20','1d','0',''),
('99890','47384','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].chromeOS','1',''),
('99891','47384','2','20','1d','0',''),
('99892','47385','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].ios','1',''),
('99893','47385','2','20','1d','0',''),
('99894','47386','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].linux','1',''),
('99895','47386','2','20','1d','0',''),
('99896','47387','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].mac','1',''),
('99897','47387','2','20','1d','0',''),
('99898','47388','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].reportRefreshDate','1',''),
('99899','47388','2','20','1d','0',''),
('99900','47389','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].web','1',''),
('99901','47389','2','20','1d','0',''),
('99902','47390','1','12','$.metrics.getTeamsDeviceUsageDistributionTotalUserCounts[0].windows','1',''),
('99903','47390','2','20','1d','0',''),
('99904','47391','1','12','$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].androidPhone','1',''),
('99905','47391','2','20','1d','0',''),
('99906','47392','1','12','$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].chromeOS','1',''),
('99907','47392','2','20','1d','0',''),
('99908','47393','1','12','$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].ios','1',''),
('99909','47393','2','20','1d','0',''),
('99910','47394','1','12','$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].linux','1',''),
('99911','47394','2','20','1d','0',''),
('99912','47395','1','12','$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].mac','1',''),
('99913','47395','2','20','1d','0',''),
('99914','47396','1','12','$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].web','1',''),
('99915','47396','2','20','1d','0',''),
('99916','47397','1','12','$.metrics.getTeamsDeviceUsageDistributionUserCounts[0].windows','1',''),
('99917','47397','2','20','1d','0',''),
('99918','47398','1','12','$.error','2',''),
('99919','47398','2','20','1h','0',''),
('99920','47399','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].calls - data.metrics.getTeamsUserActivityDistributionUserCounts[0].calls;','0',''),
('99921','47399','2','20','1d','0',''),
('99922','47400','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].meetings - data.metrics.getTeamsUserActivityDistributionUserCounts[0].meetings;','0',''),
('99923','47400','2','20','1d','0',''),
('99924','47401','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].teamChatMessages - data.metrics.getTeamsUserActivityDistributionUserCounts[0].teamChatMessages;','0',''),
('99925','47401','2','20','1d','0',''),
('99926','47402','1','21','var data=JSON.parse(value);

return data.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].privateChatMessages - data.metrics.getTeamsUserActivityDistributionUserCounts[0].privateChatMessages;','0',''),
('99927','47402','2','20','1d','0',''),
('99928','47403','1','12','$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].calls','1',''),
('99929','47403','2','20','1d','0',''),
('99930','47404','1','12','$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].meetings','1',''),
('99931','47404','2','20','1d','0',''),
('99932','47405','1','12','$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].teamChatMessages','1',''),
('99933','47405','2','20','1d','0',''),
('99934','47406','1','12','$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].privateChatMessages','1',''),
('99935','47406','2','20','1d','0',''),
('99936','47407','1','12','$.metrics.getTeamsUserActivityDistributionTotalUserCounts[0].reportRefreshDate','1',''),
('99937','47407','2','20','1d','0',''),
('99938','47408','1','12','$.metrics.getTeamsUserActivityDistributionUserCounts[0].calls','1',''),
('99939','47408','2','20','1d','0',''),
('99940','47409','1','12','$.metrics.getTeamsUserActivityDistributionUserCounts[0].meetings','1',''),
('99941','47409','2','20','1d','0',''),
('99942','47410','1','12','$.metrics.getTeamsUserActivityDistributionUserCounts[0].teamChatMessages','1',''),
('99943','47410','2','20','1d','0',''),
('99944','47411','1','12','$.metrics.getTeamsUserActivityDistributionUserCounts[0].privateChatMessages','1',''),
('99945','47411','2','20','1d','0',''),
('99951','47416','1','21','const idx = [
	''true'',
	''false''
].indexOf(value);
return idx !== -1 ? idx : 2;','0',''),
('99952','47416','2','20','1d','0',''),
('99953','47417','1','20','1h','0',''),
('99954','47418','1','20','1d','0',''),
('99955','47419','1','21','const idx = [
	''notRunning'',
	''resetting'',
	''running'',
	''shuttingDown'',
	''standby'',
	''unknown''
].indexOf(value);
return idx !== -1 ? idx : 5;','0',''),
('99956','47419','2','20','1h','0',''),
('99957','47420','1','21','const idx = [
	''guestToolsExecutingScripts'',
	''guestToolsNotRunning'',
	''guestToolsRunning''
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('99958','47420','2','20','1h','0',''),
('99959','47421','1','20','12h','0',''),
('99960','47422','1','21','const idx = [
	''connected'',
	''disconnected'',
	''notResponding''
].indexOf(value);
return idx !== -1 ? idx : 3;','0',''),
('99961','47422','2','20','1h','0',''),
('99962','47429','1','12','$.error','2',''),
('99963','47429','2','20','3h','0',''),
('99964','47430','1','12','$.health','0',''),
('99965','47430','2','20','3h','0',''),
('99966','47431','1','12','$.count','0',''),
('99967','47431','2','20','1d','0',''),
('99968','47432','1','12','$.latestdate','0',''),
('99969','47432','2','20','1d','0',''),
('99981','47445','1','12','$.error','2',''),
('99982','47445','2','20','3h','0',''),
('99983','47446','1','12','$.health','0',''),
('99984','47446','2','20','3h','0',''),
('99989','40183','1','20','12h','0',''),
('99990','40185','2','20','12h','0',''),
('99991','47453','1','12','$.data.process[''browser poller''].busy.avg','3','No "browser poller" processes started.'),
('99992','47454','1','12','$.data.process[''internal poller''].busy.avg','3','No "internal poller" processes started.'),
('100029','47481','1','12','$.data.process[''browser poller''].busy.avg','3','No "browser poller" processes started.'),
('100030','47482','1','12','$.data.process[''configuration syncer worker''].busy.avg','0',''),
('100031','47483','1','12','$.data.process[''internal poller''].busy.avg','3','No "internal poller" processes started.'),
('100032','47484','1','12','$.data.process[''proxy group manager''].busy.avg','0',''),
('100037','47485','1','26','-1','1',''),
('100038','47486','1','26','-1','1',''),
('100039','47487','1','12','$.error','2',''),
('100040','47487','2','20','3h','0',''),
('100041','47488','1','12','$.[?(@.Label == "AsyncEventsDropped")].Values.first().first()','1',''),
('100042','47489','1','12','$.[?(@.Label == "AsyncEventsReceived")].Values.first().first()','1',''),
('100043','47490','1','12','$.[?(@.Label == "AsyncEventAge")].Values.first().first()','1',''),
('100044','47490','2','1','0.001','0',''),
('100045','47491','1','12','$.[?(@.Label == "ConcurrentExecutions")].Values.first().first()','1',''),
('100046','47492','1','12','$.[?(@.Label == "DeadLetterErrors")].Values.first().first()','1',''),
('100047','47493','1','12','$.[?(@.Label == "Duration")].Values.first().first()','1',''),
('100048','47493','2','1','0.001','0',''),
('100049','47494','1','12','$.[?(@.Label == "Errors")].Values.first().first()','1',''),
('100050','47495','1','12','$.[?(@.Label == "Invocations")].Values.first().first()','1',''),
('100051','47496','1','12','$.error','2',''),
('100052','47496','2','20','3h','0',''),
('100053','47497','1','12','$.[?(@.Label == "Throttles")].Values.first().first()','1',''),
('100054','47498','1','12','$.[?(@.Label == "UnreservedConcurrentExecutions")].Values.first().first()','1',''),
('100062','43725','2','20','1h','0',''),
('100063','43726','2','20','1h','0',''),
('100064','43730','2','20','1h','0',''),
('100065','43731','2','20','1h','0',''),
('100066','43752','2','20','1h','0',''),
('100067','43753','2','20','1h','0',''),
('100068','43757','2','20','1h','0',''),
('100069','43758','2','20','1h','0',''),
('100070','47505','1','12','$.metrics.VmAvailabilityMetric.average','1',''),
('100071','47506','1','12','$.metrics.DataDiskLatency.average','1',''),
('100072','47506','2','1','0.001','0',''),
('100073','47507','1','12','$.metrics.OSDiskLatency.average','1',''),
('100074','47507','2','1','0.001','0',''),
('100075','47508','1','12','$.metrics.TempDiskLatency.average','1',''),
('100076','47508','2','1','0.001','0',''),
('100077','47509','1','12','$.metrics.TempDiskQueueDepth.average','1',''),
('100078','47510','1','12','$.metrics.TempDiskReadBytessec.average','1',''),
('100079','47511','1','12','$.metrics.TempDiskReadOperationsSec.average','1',''),
('100080','47512','1','12','$.metrics.TempDiskWriteBytessec.average','1',''),
('100081','47513','1','12','$.metrics.TempDiskWriteOperationsSec.average','1',''),
('100082','47514','1','12','$.metrics.VmAvailabilityMetric.average','1',''),
('100083','47514','2','20','1h','0',''),
('100084','47515','1','12','$.health.summary','1',''),
('100085','47515','2','20','1h','0',''),
('100086','47516','1','12','$.health.availabilityState','2','3'),
('100087','47516','2','25','Available
0','0',''),
('100088','47516','3','25','Degraded
1','0',''),
('100089','47516','4','25','Unavailable
2','0',''),
('100090','47516','5','25','Unknown
3','0',''),
('100091','47516','6','13','0
3','2','3'),
('100092','47516','7','20','1h','0',''),
('100093','47517','1','12','$.metrics.CPUCreditsConsumed.average','1',''),
('100094','47517','2','20','1h','0',''),
('100095','47518','1','12','$.metrics.CPUCreditsRemaining.average','1',''),
('100096','47518','2','20','1h','0',''),
('100097','47519','1','12','$.metrics.PercentageCPU.average','1',''),
('100098','47519','2','20','1h','0',''),
('100099','47520','1','12','$.metrics.DataDiskMaxBurstBandwidth.average','1',''),
('100100','47520','2','20','1h','0',''),
('100101','47521','1','12','$.metrics.DataDiskUsedBurstBPSCreditsPercentage.average','1',''),
('100102','47521','2','20','1h','0',''),
('100103','47522','1','12','$.metrics.DataDiskBandwidthConsumedPercentage.average','1',''),
('100104','47522','2','20','1h','0',''),
('100105','47523','1','12','$.metrics.DataDiskTargetBandwidth.average','1',''),
('100106','47523','2','20','1h','0',''),
('100107','47524','1','12','$.metrics.DataDiskMaxBurstIOPS.average','1',''),
('100108','47524','2','20','1h','0',''),
('100109','47525','1','12','$.metrics.DataDiskUsedBurstIOCreditsPercentage.average','1',''),
('100110','47525','2','20','1h','0',''),
('100111','47526','1','12','$.metrics.DataDiskIOPSConsumedPercentage.average','1',''),
('100112','47526','2','20','1h','0',''),
('100113','47527','1','12','$.metrics.DataDiskTargetIOPS.average','1',''),
('100114','47527','2','20','1h','0',''),
('100115','47528','1','12','$.metrics.DataDiskQueueDepth.average','1',''),
('100116','47528','2','20','1h','0',''),
('100117','47529','1','12','$.metrics.DataDiskReadBytessec.average','1',''),
('100118','47529','2','20','1h','0',''),
('100119','47530','1','12','$.metrics.DataDiskReadOperationsSec.average','1',''),
('100120','47530','2','20','1h','0',''),
('100121','47531','1','12','$.metrics.DataDiskWriteBytessec.average','1',''),
('100122','47531','2','20','1h','0',''),
('100123','47532','1','12','$.metrics.DataDiskWriteOperationsSec.average','1',''),
('100124','47532','2','20','1h','0',''),
('100125','47533','1','12','$.error','2',''),
('100126','47533','2','20','1h','0',''),
('100127','47534','1','12','$.metrics.DiskReadBytes.total','1',''),
('100128','47534','2','20','1h','0',''),
('100129','47535','1','12','$.metrics.DiskReadOperationsSec.average','1',''),
('100130','47535','2','20','1h','0',''),
('100131','47536','1','12','$.metrics.DiskWriteBytes.total','1',''),
('100132','47536','2','20','1h','0',''),
('100133','47537','1','12','$.metrics.DiskWriteOperationsSec.average','1',''),
('100134','47537','2','20','1h','0',''),
('100135','47538','1','12','$.metrics.InboundFlows.average','1',''),
('100136','47538','2','20','1h','0',''),
('100137','47539','1','12','$.metrics.InboundFlowsMaximumCreationRate.average','1',''),
('100138','47539','2','20','1h','0',''),
('100139','47540','1','12','$.metrics.OutboundFlows.average','1',''),
('100140','47540','2','20','1h','0',''),
('100141','47541','1','12','$.metrics.OutboundFlowsMaximumCreationRate.average','1',''),
('100142','47541','2','20','1h','0',''),
('100143','47542','1','12','$.metrics.NetworkInTotal.total','1',''),
('100144','47543','1','12','$.metrics.NetworkOutTotal.total','1',''),
('100145','47544','1','12','$.metrics.OSDiskUsedBurstBPSCreditsPercentage.average','1',''),
('100146','47544','2','20','1h','0',''),
('100147','47545','1','12','$.metrics.OSDiskBandwidthConsumedPercentage.average','1',''),
('100148','47545','2','20','1h','0',''),
('100149','47546','1','12','$.metrics.OSDiskMaxBurstBandwidth.average','1',''),
('100150','47546','2','20','1h','0',''),
('100151','47547','1','12','$.metrics.OSDiskTargetBandwidth.average','1',''),
('100152','47547','2','20','1h','0',''),
('100153','47548','1','12','$.metrics.OSDiskUsedBurstIOCreditsPercentage.average','1',''),
('100154','47548','2','20','1h','0',''),
('100155','47549','1','12','$.metrics.OSDiskIOPSConsumedPercentage.average','1',''),
('100156','47549','2','20','1h','0',''),
('100157','47550','1','12','$.metrics.OSDiskMaxBurstIOPS.average','1',''),
('100158','47550','2','20','1h','0',''),
('100159','47551','1','12','$.metrics.OSDiskTargetIOPS.average','1',''),
('100160','47551','2','20','1h','0',''),
('100161','47552','1','12','$.metrics.OSDiskQueueDepth.average','1',''),
('100162','47552','2','20','1h','0',''),
('100163','47553','1','12','$.metrics.OSDiskReadBytessec.average','1',''),
('100164','47553','2','20','1h','0',''),
('100165','47554','1','12','$.metrics.OSDiskReadOperationsSec.average','1',''),
('100166','47554','2','20','1h','0',''),
('100167','47555','1','12','$.metrics.OSDiskWriteBytessec.average','1',''),
('100168','47555','2','20','1h','0',''),
('100169','47556','1','12','$.metrics.OSDiskWriteOperationsSec.average','1',''),
('100170','47556','2','20','1h','0',''),
('100171','47557','1','12','$.metrics.PremiumDataDiskCacheReadHit.average','1',''),
('100172','47557','2','20','1h','0',''),
('100173','47558','1','12','$.metrics.PremiumDataDiskCacheReadMiss.average','1',''),
('100174','47558','2','20','1h','0',''),
('100175','47559','1','12','$.metrics.PremiumOSDiskCacheReadHit.average','1',''),
('100176','47559','2','20','1h','0',''),
('100177','47560','1','12','$.metrics.PremiumOSDiskCacheReadMiss.average','1',''),
('100178','47560','2','20','1h','0',''),
('100179','47561','1','12','$.metrics.VMCachedBandwidthConsumedPercentage.average','1',''),
('100180','47561','2','20','1h','0',''),
('100181','47562','1','12','$.metrics.VMCachedIOPSConsumedPercentage.average','1',''),
('100182','47562','2','20','1h','0',''),
('100183','47563','1','12','$.capacity','0',''),
('100184','47563','2','20','1h','0',''),
('100185','47564','1','12','$.metrics.AvailableMemoryBytes.average','1',''),
('100186','47564','2','20','1h','0',''),
('100187','47565','1','12','$.metrics.VMUncachedBandwidthConsumedPercentage.average','1',''),
('100188','47565','2','20','1h','0',''),
('100189','47566','1','12','$.metrics.VMUncachedIOPSConsumedPercentage.average','1',''),
('100190','47566','2','20','1h','0',''),
('100196','47571','1','1','1048576','0',''),
('100197','47571','2','20','6h','0',''),
('100198','47572','1','1','1048576','0',''),
('100199','47580','1','20','6h','0',''),
('100200','47581','1','20','6h','0',''),
('100201','47586','1','20','12h','0',''),
('100202','47587','1','20','12h','0',''),
('100203','47588','1','26','-1','2','0'),
('100204','47588','2','1','0.01','0',''),
('100205','47589','1','20','12h','0',''),
('100206','47590','1','20','12h','0',''),
('100207','47591','1','1','0.01','0',''),
('100208','47592','1','20','12h','0',''),
('100287','47640','1','20','10m','0',''),
('100288','47642','1','21',E'var lines = value.split(''\\n'');
var output = {},
	workers = {
		''_'': 0, ''S'': 0, ''R'': 0, ''W'': 0,
		''K'': 0, ''D'': 0, ''C'': 0, ''L'': 0,
		''G'': 0, ''I'': 0, ''.'': 0
	};

for (var i = 0; i < lines.length; i++) {
	var line = lines[i].match(/([A-z0-9 ]+): (.*)/);

	if (line !== null) {
		output[line[1]] = isNaN(line[2]) ? line[2] : Number(line[2]);
	}
}

output.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime;
output.ServerVersion = output.ServerVersion || output.Server;

if (typeof output.Scoreboard === ''string'') {
	for (var i = 0; i < output.Scoreboard.length; i++) {
		var char = output.Scoreboard[i];

		workers[char]++;
	}
}

output.Workers = {
	waiting: workers[''_''], starting: workers[''S''], reading: workers[''R''],
	sending: workers[''W''], keepalive: workers[''K''], dnslookup: workers[''D''],
	closing: workers[''C''], logging: workers[''L''], finishing: workers[''G''],
	cleanup: workers[''I''], slot: workers[''.'']
};

return JSON.stringify(output);','0',''),
('100289','47643','1','12','$["Total kBytes"]','0',''),
('100290','47643','2','1','1024','0',''),
('100291','47644','1','12','$["Total kBytes"]','0',''),
('100292','47644','2','1','1024','0',''),
('100293','47644','3','10','','0',''),
('100294','47645','1','12','$["Total Accesses"]','0',''),
('100295','47646','1','12','$["Total Accesses"]','0',''),
('100296','47646','2','10','','0',''),
('100297','47647','1','12','$.ServerUptimeSeconds','0',''),
('100298','47648','1','12','$.ServerVersion','0',''),
('100299','47648','2','20','1d','0',''),
('100300','47649','1','12','$.Workers.cleanup','0',''),
('100301','47650','1','12','$.Workers.closing','0',''),
('100302','47651','1','12','$.Workers.dnslookup','0',''),
('100303','47652','1','12','$.Workers.finishing','0',''),
('100304','47653','1','12','$.Workers.keepalive','0',''),
('100305','47654','1','12','$.Workers.logging','0',''),
('100306','47655','1','12','$.Workers.reading','0',''),
('100307','47656','1','12','$.Workers.sending','0',''),
('100308','47657','1','12','$.Workers.slot','0',''),
('100309','47658','1','12','$.Workers.starting','0',''),
('100310','47659','1','12','$.Workers.waiting','0',''),
('100311','47660','1','12','$.BusyWorkers','0',''),
('100312','47661','1','12','$.IdleWorkers','0',''),
('100340','47690','1','20','10m','0',''),
('100341','47693','1','5',E'server accepts handled requests\\s+([0-9]+) ([0-9]+) ([0-9]+)
\\1','0',''),
('100342','47693','2','10','','0',''),
('100343','47694','1','5',E'Active connections: ([0-9]+)
\\1','0',''),
('100344','47695','1','21',E'var a = value.match(/server accepts handled requests\\s+([0-9]+) ([0-9]+) ([0-9]+)/)
if (a) {
	return a[1]-a[2]
}','0',''),
('100345','47695','2','10','','0',''),
('100346','47696','1','5',E'server accepts handled requests\\s+([0-9]+) ([0-9]+) ([0-9]+)
\\2','0',''),
('100347','47696','2','10','','0',''),
('100348','47697','1','5',E'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)
\\1','0',''),
('100349','47698','1','5',E'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)
\\3','0',''),
('100350','47699','1','5',E'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)
\\2','0',''),
('100351','47700','1','5',E'server accepts handled requests\\s+([0-9]+) ([0-9]+) ([0-9]+)
\\3','0',''),
('100352','47701','1','5',E'server accepts handled requests\\s+([0-9]+) ([0-9]+) ([0-9]+)
\\3','0',''),
('100353','47701','2','10','','0',''),
('100354','47702','1','5',E'(?i)Server: nginx\\/(.+(?<!\\r))
\\1','0',''),
('100355','47702','2','20','1d','0',''),
('100362','47718','1','12','$.error','2',''),
('100363','47718','2','20','3h','0',''),
('100364','47719','1','12','$.operation_mode','1',''),
('100365','47719','2','21','const idx = [
  ''NORMAL'',
  ''OVERRIDE'',
  ''READONLY'',
  ''STANDALONE'',
  ''SWITCH_TO_TWO_NODE''
].indexOf(value.toUpperCase());
return idx !== -1 ? idx : 5;','0',''),
('100366','47719','3','20','1h','0',''),
('100367','47720','1','12','$.stats.content_cache_num_dedup_ref_count_pph','1',''),
('100368','47721','1','12','$.stats.content_cache_hit_ppm','1',''),
('100369','47721','2','1','0.0001','0',''),
('100370','47722','1','12','$.stats.content_cache_logical_memory_usage_bytes','1',''),
('100371','47722','2','20','1h','0',''),
('100372','47723','1','12','$.stats.content_cache_logical_ssd_usage_bytes','1',''),
('100373','47723','2','20','1h','0',''),
('100374','47724','1','12','$.stats.content_cache_num_lookups','1',''),
('100375','47725','1','12','$.stats.content_cache_physical_memory_usage_bytes','1',''),
('100376','47725','2','20','1h','0',''),
('100377','47726','1','12','$.stats.content_cache_physical_ssd_usage_bytes','1',''),
('100378','47726','2','20','1h','0',''),
('100379','47727','1','12','$.stats.content_cache_saved_memory_usage_bytes','1',''),
('100380','47727','2','20','1h','0',''),
('100381','47728','1','12','$.stats.content_cache_saved_ssd_usage_bytes','1',''),
('100382','47728','2','20','1h','0',''),
('100383','47729','1','12','$.stats.controller_num_random_io','1',''),
('100384','47730','1','12','$.stats.controller_random_io_ppm','1',''),
('100385','47730','2','1','0.0001','0',''),
('100386','47731','1','12','$.stats.controller_num_seq_io','1',''),
('100387','47732','1','12','$.stats.controller_seq_io_ppm','1',''),
('100388','47732','2','1','0.0001','0',''),
('100389','47733','1','12','$.stats.num_io','1',''),
('100390','47734','1','12','$.stats.io_bandwidth_kBps','1',''),
('100391','47734','2','1','1024','0',''),
('100392','47735','1','12','$.stats.avg_io_latency_usecs','1',''),
('100393','47735','2','1','1.0E-6','0',''),
('100394','47736','1','12','$.stats.num_random_io','1',''),
('100395','47737','1','12','$.stats.random_io_ppm','1',''),
('100396','47737','2','1','0.0001','0',''),
('100397','47738','1','12','$.stats.num_read_io','1',''),
('100398','47739','1','12','$.stats.read_io_bandwidth_kBps','1',''),
('100399','47739','2','1','1024','0',''),
('100400','47740','1','12','$.stats.avg_read_io_latency_usecs','1',''),
('100401','47740','2','1','1.0E-6','0',''),
('100402','47741','1','12','$.stats.read_io_ppm','1',''),
('100403','47741','2','1','0.0001','0',''),
('100404','47742','1','12','$.stats.total_read_io_size_kbytes','1',''),
('100405','47742','2','1','1024','0',''),
('100406','47743','1','12','$.stats.total_read_io_time_usecs','1',''),
('100407','47743','2','1','1.0E-6','0',''),
('100408','47744','1','12','$.stats.num_seq_io','1',''),
('100409','47745','1','12','$.stats.seq_io_ppm','1',''),
('100410','47745','2','1','0.0001','0',''),
('100411','47746','1','12','$.stats.total_io_size_kbytes','1',''),
('100412','47746','2','1','1024','0',''),
('100413','47747','1','12','$.stats.total_io_time_usecs','1',''),
('100414','47747','2','1','1.0E-6','0',''),
('100415','47748','1','12','$.stats.num_write_io','1',''),
('100416','47749','1','12','$.stats.write_io_bandwidth_kBps','1',''),
('100417','47749','2','1','1024','0',''),
('100418','47750','1','12','$.stats.avg_write_io_latency_usecs','1',''),
('100419','47750','2','1','1.0E-6','0',''),
('100420','47751','1','12','$.stats.write_io_ppm','1',''),
('100421','47751','2','1','0.0001','0',''),
('100422','47752','1','12','$.stats.num_iops','1',''),
('100423','47753','1','12','$.stats.num_read_iops','1',''),
('100424','47754','1','12','$.stats.num_write_iops','1',''),
('100425','47755','1','12','$.usage_stats.[''storage.capacity_bytes'']','0',''),
('100426','47755','2','20','1h','0',''),
('100427','47756','1','12','$.usage_stats.[''storage.free_bytes'']','0',''),
('100428','47756','2','20','1h','0',''),
('100429','47757','1','12','$.usage_stats.[''storage.logical_usage_bytes'']','0',''),
('100430','47757','2','20','1h','0',''),
('100431','47758','1','12','$.usage_stats.[''storage.usage_bytes'']','0',''),
('100432','47758','2','20','1h','0',''),
('100433','47759','1','12','$.stats.timespan_usecs','1',''),
('100434','47759','2','1','1.0E-6','0',''),
('100435','47760','1','12','$.stats.total_transformed_usage_bytes','1',''),
('100436','47761','1','12','$.stats.total_untransformed_usage_bytes','1',''),
('100437','47762','1','12','$.is_upgrade_in_progress','1',''),
('100438','47762','2','6','','2','2'),
('100439','47762','3','20','1h','0',''),
('100440','47763','1','12','$.version','1',''),
('100441','47763','2','20','12h','0',''),
('100442','47764','1','12','$.stats.hypervisor_cpu_usage_ppm','1',''),
('100443','47764','2','1','0.0001','0',''),
('100444','47765','1','12','$.stats.hypervisor_num_io','1',''),
('100445','47766','1','12','$.stats.hypervisor_io_bandwidth_kBps','1',''),
('100446','47766','2','1','1024','0',''),
('100447','47767','1','12','$.stats.hypervisor_avg_io_latency_usecs','1',''),
('100448','47767','2','1','1.0E-6','0',''),
('100449','47768','1','12','$.stats.hypervisor_num_read_io','1',''),
('100450','47769','1','12','$.stats.hypervisor_read_io_bandwidth_kBps','1',''),
('100451','47769','2','1','1024','0',''),
('100452','47770','1','12','$.stats.hypervisor_avg_read_io_latency_usecs','1',''),
('100453','47770','2','1','1.0E-6','0',''),
('100454','47771','1','12','$.stats.hypervisor_total_read_io_size_kbytes','1',''),
('100455','47771','2','1','1024','0',''),
('100456','47772','1','12','$.stats.hypervisor_total_read_io_time_usecs','1',''),
('100457','47772','2','1','1.0E-6','0',''),
('100458','47773','1','12','$.stats.hypervisor_total_io_size_kbytes','1',''),
('100459','47773','2','1','1024','0',''),
('100460','47774','1','12','$.stats.hypervisor_total_io_time_usecs','1',''),
('100461','47774','2','1','1.0E-6','0',''),
('100462','47775','1','12','$.stats.hypervisor_num_write_io','1',''),
('100463','47776','1','12','$.stats.hypervisor_write_io_bandwidth_kBps','1',''),
('100464','47776','2','1','1024','0',''),
('100465','47777','1','12','$.stats.hypervisor_avg_write_io_latency_usecs','1',''),
('100466','47777','2','1','1.0E-6','0',''),
('100467','47778','1','12','$.stats.hypervisor_num_iops','1',''),
('100468','47779','1','12','$.stats.hypervisor_num_read_iops','1',''),
('100469','47780','1','12','$.stats.hypervisor_num_write_iops','1',''),
('100470','47781','1','12','$.stats.hypervisor_memory_usage_ppm','1',''),
('100471','47781','2','1','0.0001','0',''),
('100472','47782','1','12','$.stats.hypervisor_timespan_usecs','1',''),
('100473','47782','2','1','1.0E-6','0',''),
('100474','47783','1','12','$.error','2',''),
('100475','47783','2','20','3h','0',''),
('100476','47784','1','12','$.cluster_redundancy_state.current_redundancy_factor','1',''),
('100477','47784','2','20','1h','0',''),
('100478','47785','1','12','$.cluster_redundancy_state.desired_redundancy_factor','1',''),
('100479','47785','2','20','1h','0',''),
('100480','47786','1','12','$.stats.controller_num_io','1',''),
('100481','47787','1','12','$.stats.controller_io_bandwidth_kBps','1',''),
('100482','47787','2','1','1024','0',''),
('100483','47788','1','12','$.stats.controller_avg_io_latency_usecs','1',''),
('100484','47788','2','1','1.0E-6','0',''),
('100485','47789','1','12','$.stats.controller_num_read_io','1',''),
('100486','47790','1','12','$.stats.controller_read_io_bandwidth_kBps','1',''),
('100487','47790','2','1','1024','0',''),
('100488','47791','1','12','$.stats.controller_avg_read_io_size_kbytes','1',''),
('100489','47791','2','1','1024','0',''),
('100490','47792','1','12','$.stats.controller_avg_read_io_latency_usecs','1',''),
('100491','47792','2','1','1.0E-6','0',''),
('100492','47793','1','12','$.stats.controller_read_io_ppm','1',''),
('100493','47793','2','1','0.0001','0',''),
('100494','47794','1','12','$.stats.controller_total_read_io_size_kbytes','1',''),
('100495','47794','2','1','1024','0',''),
('100496','47795','1','12','$.stats.controller_total_read_io_time_usecs','1',''),
('100497','47795','2','1','1.0E-6','0',''),
('100498','47796','1','12','$.stats.controller_total_io_size_kbytes','1',''),
('100499','47796','2','1','1024','0',''),
('100500','47797','1','12','$.stats.controller_total_io_time_usecs','1',''),
('100501','47797','2','1','1.0E-6','0',''),
('100502','47798','1','12','$.stats.controller_num_write_io','1',''),
('100503','47799','1','12','$.stats.controller_write_io_bandwidth_kBps','1',''),
('100504','47799','2','1','1024','0',''),
('100505','47800','1','12','$.stats.controller_avg_write_io_size_kbytes','1',''),
('100506','47800','2','1','1024','0',''),
('100507','47801','1','12','$.stats.controller_avg_write_io_latency_usecs','1',''),
('100508','47801','2','1','1.0E-6','0',''),
('100509','47802','1','12','$.stats.controller_write_io_ppm','1',''),
('100510','47802','2','1','0.0001','0',''),
('100511','47803','1','12','$.stats.controller_num_iops','1',''),
('100512','47804','1','12','$.stats.controller_num_read_iops','1',''),
('100513','47805','1','12','$.stats.controller_num_write_iops','1',''),
('100514','47806','1','12','$.usage_stats.[''storage_tier.das-sata.capacity_bytes'']','0',''),
('100515','47806','2','20','1h','0',''),
('100516','47807','1','12','$.usage_stats.[''storage_tier.das-sata.free_bytes'']','0',''),
('100517','47807','2','20','1h','0',''),
('100518','47808','1','12','$.usage_stats.[''storage_tier.das-sata.usage_bytes'']','0',''),
('100519','47808','2','20','1h','0',''),
('100520','47809','1','12','$.usage_stats.[''storage_tier.ssd.capacity_bytes'']','0',''),
('100521','47809','2','20','1h','0',''),
('100522','47810','1','12','$.usage_stats.[''storage_tier.ssd.free_bytes'']','0',''),
('100523','47810','2','20','1h','0',''),
('100524','47811','1','12','$.usage_stats.[''storage_tier.ssd.usage_bytes'']','0',''),
('100525','47811','2','20','1h','0',''),
('100526','47812','1','12','$.stats.controller_timespan_usecs','1',''),
('100527','47812','2','1','1.0E-6','0',''),
('100528','47812','3','20','1h','0',''),
('100529','47813','1','12','$.stats.controller_total_transformed_usage_bytes','1',''),
('100530','47814','1','12','$.error','2',''),
('100531','47814','2','20','3h','0',''),
('100532','47815','1','12','$.stats.content_cache_num_dedup_ref_count_pph','1',''),
('100533','47816','1','12','$.stats.content_cache_hit_ppm','1',''),
('100534','47816','2','1','0.0001','0',''),
('100535','47817','1','12','$.stats.content_cache_logical_memory_usage_bytes','1',''),
('100536','47817','2','20','1h','0',''),
('100537','47818','1','12','$.stats.content_cache_logical_ssd_usage_bytes','1',''),
('100538','47818','2','20','1h','0',''),
('100539','47819','1','12','$.stats.content_cache_num_lookups','1',''),
('100540','47820','1','12','$.stats.content_cache_physical_memory_usage_bytes','1',''),
('100541','47820','2','20','1h','0',''),
('100542','47821','1','12','$.stats.content_cache_physical_ssd_usage_bytes','1',''),
('100543','47821','2','20','1h','0',''),
('100544','47822','1','12','$.stats.content_cache_saved_memory_usage_bytes','1',''),
('100545','47822','2','20','1h','0',''),
('100546','47823','1','12','$.stats.content_cache_saved_ssd_usage_bytes','1',''),
('100547','47823','2','20','1h','0',''),
('100548','47824','1','12','$.stats.controller_num_random_io','1',''),
('100549','47825','1','12','$.stats.controller_random_io_ppm','1',''),
('100550','47825','2','1','0.0001','0',''),
('100551','47826','1','12','$.stats.controller_num_seq_io','1',''),
('100552','47827','1','12','$.stats.controller_seq_io_ppm','1',''),
('100553','47827','2','1','0.0001','0',''),
('100554','47828','1','12','$.error','2',''),
('100555','47828','2','20','3h','0',''),
('100556','47829','1','12','$.boot_time_in_usecs','0',''),
('100557','47829','2','1','1.0E-6','0',''),
('100558','47829','3','20','1h','0',''),
('100559','47830','1','12','$.cpu_capacity_in_hz','0',''),
('100560','47830','2','20','1h','0',''),
('100561','47831','1','12','$.cpu_frequency_in_hz','0',''),
('100562','47831','2','20','1h','0',''),
('100563','47832','1','12','$.cpu_model','0',''),
('100564','47832','2','20','12h','0',''),
('100565','47833','1','12','$.is_degraded','0',''),
('100566','47833','2','6','','2','2'),
('100567','47833','3','20','1h','0',''),
('100568','47834','1','12','$.stats.num_io','1',''),
('100569','47834','2','1','0.0001','0',''),
('100570','47835','1','12','$.stats.io_bandwidth_kBps','1',''),
('100571','47835','2','1','1024','0',''),
('100572','47836','1','12','$.stats.avg_io_latency_usecs','1',''),
('100573','47836','2','1','1.0E-6','0',''),
('100574','47837','1','12','$.stats.num_random_io','1',''),
('100575','47838','1','12','$.stats.random_io_ppm','1',''),
('100576','47838','2','1','0.0001','0',''),
('100577','47839','1','12','$.stats.num_read_io','1',''),
('100578','47840','1','12','$.stats.read_io_bandwidth_kBps','1',''),
('100579','47840','2','1','1024','0',''),
('100580','47841','1','12','$.stats.avg_read_io_latency_usecs','1',''),
('100581','47841','2','1','1.0E-6','0',''),
('100582','47842','1','12','$.stats.read_io_ppm','1',''),
('100583','47842','2','1','0.0001','0',''),
('100584','47843','1','12','$.stats.total_read_io_size_kbytes','1',''),
('100585','47843','2','1','1024','0',''),
('100586','47844','1','12','$.stats.total_read_io_time_usecs','1',''),
('100587','47844','2','1','1.0E-6','0',''),
('100588','47845','1','12','$.stats.num_seq_io','1',''),
('100589','47846','1','12','$.stats.seq_io_ppm','1',''),
('100590','47846','2','1','0.0001','0',''),
('100591','47847','1','12','$.stats.total_io_size_kbytes','1',''),
('100592','47847','2','1','1024','0',''),
('100593','47848','1','12','$.stats.total_io_time_usecs','1',''),
('100594','47848','2','1','1.0E-6','0',''),
('100595','47849','1','12','$.stats.num_write_io','1',''),
('100596','47850','1','12','$.stats.write_io_bandwidth_kBps','1',''),
('100597','47850','2','1','1024','0',''),
('100598','47851','1','12','$.stats.avg_write_io_latency_usecs','1',''),
('100599','47851','2','1','1.0E-6','0',''),
('100600','47852','1','12','$.stats.write_io_ppm','1',''),
('100601','47852','2','1','0.0001','0',''),
('100602','47853','1','12','$.stats.num_iops','1',''),
('100603','47854','1','12','$.stats.num_read_iops','1',''),
('100604','47855','1','12','$.stats.num_write_iops','1',''),
('100605','47856','1','12','$.host_in_maintenance_mode','0',''),
('100606','47856','2','6','','2','2'),
('100607','47856','3','20','1h','0',''),
('100608','47857','1','12','$.memory_capacity_in_bytes','0',''),
('100609','47857','2','20','1h','0',''),
('100610','47858','1','12','$.reboot_pending','0',''),
('100611','47858','2','6','','2','2'),
('100612','47858','3','20','1h','0',''),
('100613','47859','1','12','$.state','0',''),
('100614','47859','2','21','const idx = [
  ''NEW'',
  ''NORMAL'',
  ''MARKED_FOR_REMOVAL_BUT_NOT_DETACHABLE'',
  ''DETACHABLE''
].indexOf(value.toUpperCase());
return idx !== -1 ? idx : 4;','0',''),
('100615','47859','3','20','10m','0',''),
('100616','47860','1','12','$.usage_stats.[''storage.capacity_bytes'']','0',''),
('100617','47860','2','20','1h','0',''),
('100618','47861','1','12','$.usage_stats.[''storage.free_bytes'']','0',''),
('100619','47861','2','20','1h','0',''),
('100620','47862','1','12','$.usage_stats.[''storage.logical_usage_bytes'']','0',''),
('100621','47862','2','20','1h','0',''),
('100622','47863','1','12','$.usage_stats.[''storage.usage_bytes'']','0',''),
('100623','47863','2','20','1h','0',''),
('100624','47864','1','12','$.stats.timespan_usecs','1',''),
('100625','47864','2','1','1.0E-6','0',''),
('100626','47865','1','12','$.stats.total_transformed_usage_bytes','1',''),
('100627','47866','1','12','$.host_type','0',''),
('100628','47866','2','21','const idx = [
  ''HYPER_CONVERGED'',
  ''COMPUTE_ONLY''
].indexOf(value.toUpperCase());
return idx !== -1 ? idx : 2;','0',''),
('100629','47866','3','20','1h','0',''),
('100630','47867','1','12','$.stats.total_untransformed_usage_bytes','1',''),
('100631','47868','1','12','$.num_vms','0',''),
('100632','47868','2','20','1h','0',''),
('100633','47869','1','12','$.num_cpu_cores','0',''),
('100634','47869','2','20','12h','0',''),
('100635','47870','1','12','$.num_cpu_sockets','0',''),
('100636','47870','2','20','12h','0',''),
('100637','47871','1','12','$.num_cpu_threads','0',''),
('100638','47871','2','20','12h','0',''),
('100639','47872','1','12','$.stats.hypervisor_cpu_usage_ppm','1',''),
('100640','47872','2','1','0.0001','0',''),
('100641','47873','1','12','$.stats.hypervisor_num_io','1',''),
('100642','47874','1','12','$.stats.hypervisor_io_bandwidth_kBps','1',''),
('100643','47874','2','1','1024','0',''),
('100644','47875','1','12','$.stats.hypervisor_avg_io_latency_usecs','1',''),
('100645','47875','2','1','1.0E-6','0',''),
('100646','47876','1','12','$.stats.hypervisor_num_read_io','1',''),
('100647','47877','1','12','$.stats.hypervisor_read_io_bandwidth_kBps','1',''),
('100648','47877','2','1','1024','0',''),
('100649','47878','1','12','$.stats.hypervisor_avg_read_io_latency_usecs','1',''),
('100650','47878','2','1','1.0E-6','0',''),
('100651','47879','1','12','$.stats.hypervisor_total_read_io_size_kbytes','1',''),
('100652','47879','2','1','1024','0',''),
('100653','47880','1','12','$.stats.hypervisor_total_read_io_time_usecs','1',''),
('100654','47880','2','1','1.0E-6','0',''),
('100655','47881','1','12','$.stats.hypervisor_total_io_size_kbytes','1',''),
('100656','47881','2','1','1024','0',''),
('100657','47882','1','12','$.stats.hypervisor_total_io_time_usecs','1',''),
('100658','47882','2','1','1.0E-6','0',''),
('100659','47883','1','12','$.stats.hypervisor_num_write_io','1',''),
('100660','47884','1','12','$.stats.hypervisor_write_io_bandwidth_kBps','1',''),
('100661','47884','2','1','1024','0',''),
('100662','47885','1','12','$.stats.hypervisor_avg_write_io_latency_usecs','1',''),
('100663','47885','2','1','1.0E-6','0',''),
('100664','47886','1','12','$.stats.hypervisor_num_iops','1',''),
('100665','47887','1','12','$.stats.hypervisor_num_read_iops','1',''),
('100666','47888','1','12','$.stats.hypervisor_num_write_iops','1',''),
('100667','47889','1','12','$.stats.hypervisor_memory_usage_ppm','1',''),
('100668','47889','2','1','0.0001','0',''),
('100669','47890','1','12','$.hypervisor_full_name','0',''),
('100670','47890','2','20','12h','0',''),
('100671','47891','1','12','$.stats.hypervisor_num_received_bytes','1',''),
('100672','47891','2','20','1h','0',''),
('100673','47892','1','12','$.stats.hypervisor_timespan_usecs','1',''),
('100674','47892','2','1','1.0E-6','0',''),
('100675','47893','1','12','$.stats.hypervisor_num_transmitted_bytes','1',''),
('100676','47893','2','20','1h','0',''),
('100677','47894','1','12','$.error','2',''),
('100678','47894','2','20','3h','0',''),
('100679','47895','1','12','$.stats.controller_num_io','1',''),
('100680','47896','1','12','$.stats.controller_io_bandwidth_kBps','1',''),
('100681','47896','2','1','1024','0',''),
('100682','47897','1','12','$.stats.controller_avg_io_latency_usecs','1',''),
('100683','47897','2','1','1.0E-6','0',''),
('100684','47898','1','12','$.stats.controller_num_read_io','1',''),
('100685','47899','1','12','$.stats.controller_read_io_bandwidth_kBps','1',''),
('100686','47899','2','1','1024','0',''),
('100687','47900','1','12','$.stats.controller_avg_read_io_size_kbytes','1',''),
('100688','47900','2','1','1024','0',''),
('100689','47901','1','12','$.stats.controller_avg_read_io_latency_usecs','1',''),
('100690','47901','2','1','1.0E-6','0',''),
('100691','47902','1','12','$.stats.controller_read_io_ppm','1',''),
('100692','47902','2','1','0.0001','0',''),
('100693','47903','1','12','$.stats.controller_total_read_io_size_kbytes','1',''),
('100694','47903','2','1','1024','0',''),
('100695','47904','1','12','$.stats.controller_total_read_io_time_usecs','1',''),
('100696','47904','2','1','1.0E-6','0',''),
('100697','47905','1','12','$.stats.controller_total_io_size_kbytes','1',''),
('100698','47905','2','1','1024','0',''),
('100699','47906','1','12','$.stats.controller_total_io_time_usecs','1',''),
('100700','47906','2','1','1.0E-6','0',''),
('100701','47907','1','12','$.stats.controller_num_write_io','1',''),
('100702','47908','1','12','$.stats.controller_write_io_bandwidth_kBps','1',''),
('100703','47908','2','1','1024','0',''),
('100704','47909','1','12','$.stats.controller_avg_write_io_size_kbytes','1',''),
('100705','47909','2','1','1024','0',''),
('100706','47910','1','12','$.stats.controller_avg_write_io_latency_usecs','1',''),
('100707','47910','2','1','1.0E-6','0',''),
('100708','47911','1','12','$.stats.controller_write_io_ppm','1',''),
('100709','47911','2','1','0.0001','0',''),
('100710','47912','1','12','$.stats.controller_num_iops','1',''),
('100711','47913','1','12','$.stats.controller_num_read_iops','1',''),
('100712','47914','1','12','$.stats.controller_num_write_iops','1',''),
('100713','47915','1','12','$.usage_stats.[''storage_tier.das-sata.capacity_bytes'']','0',''),
('100714','47915','2','20','1h','0',''),
('100715','47916','1','12','$.usage_stats.[''storage_tier.das-sata.free_bytes'']','0',''),
('100716','47916','2','20','1h','0',''),
('100717','47917','1','12','$.usage_stats.[''storage_tier.das-sata.usage_bytes'']','0',''),
('100718','47917','2','20','1h','0',''),
('100719','47918','1','12','$.usage_stats.[''storage_tier.ssd.capacity_bytes'']','0',''),
('100720','47918','2','20','1h','0',''),
('100721','47919','1','12','$.usage_stats.[''storage_tier.ssd.free_bytes'']','0',''),
('100722','47919','2','20','1h','0',''),
('100723','47920','1','12','$.usage_stats.[''storage_tier.ssd.usage_bytes'']','0',''),
('100724','47920','2','20','1h','0',''),
('100725','47921','1','12','$.stats.controller_timespan_usecs','1',''),
('100726','47921','2','1','1.0E-6','0',''),
('100727','47921','3','20','1h','0',''),
('100728','47922','1','12','$.stats.controller_total_transformed_usage_bytes','1',''),
('100729','47923','1','12','$.error','2',''),
('100730','47923','2','20','3h','0',''),
('100731','47924','1','12','$.error','2',''),
('100732','47924','2','20','3h','0',''),
('100733','47925','1','12','$.error','2',''),
('100734','47925','2','20','3h','0',''),
('100806','47962','1','5',E'^[.\\s\\S]*({.+})
\\1','0',''),
('100807','47963','1','12','$.[''accepted conn'']','0',''),
('100808','47963','2','10','','0',''),
('100809','47964','1','12','$.[''listen queue'']','0',''),
('100810','47965','1','12','$.[''listen queue len'']','0',''),
('100811','47966','1','12','$.[''max listen queue'']','0',''),
('100812','47967','1','12','$.[''max children reached'']','0',''),
('100813','47967','2','9','','0',''),
('100814','47968','1','12','$.pool','0',''),
('100815','47968','2','20','3h','0',''),
('100816','47969','1','5',E'{$PHP_FPM.PING.REPLY}($|\\r?\\n)
1','2','0'),
('100817','47970','1','12','$.[''active processes'']','0',''),
('100818','47971','1','12','$.[''idle processes'']','0',''),
('100819','47972','1','12','$.[''max active processes'']','0',''),
('100820','47973','1','12','$.[''total processes'']','0',''),
('100821','47974','1','12','$.[''process manager'']','0',''),
('100822','47974','2','20','3h','0',''),
('100823','47975','1','12','$.[''slow requests'']','0',''),
('100824','47975','2','9','','0',''),
('100825','47976','1','12','$.[''start time'']','0',''),
('100826','47977','1','12','$.[''start since'']','0',''),
('100827','47978','1','5',E'^[.\\s\\S]*X-Powered-By: PHP/([.\\d]{1,})
\\1','1',''),
('100828','47978','2','20','3h','0',''),
('100839','47991','1','20','6h','0',''),
('100840','47992','1','20','10m','0',''),
('100841','47993','1','20','6h','0',''),
('100842','47994','1','12','$.Aborted_clients','0',''),
('100843','47994','2','10','','0',''),
('100844','47995','1','12','$.Aborted_connects','0',''),
('100845','47995','2','10','','0',''),
('100846','47996','1','12','$.Binlog_cache_disk_use','0',''),
('100847','47996','2','20','6h','0',''),
('100848','47997','1','12','$.Bytes_received','0',''),
('100849','47997','2','10','','0',''),
('100850','47998','1','12','$.Bytes_sent','0',''),
('100851','47998','2','10','','0',''),
('100852','47999','1','12','$.Com_delete','0',''),
('100853','47999','2','10','','0',''),
('100854','48000','1','12','$.Com_insert','0',''),
('100855','48000','2','10','','0',''),
('100856','48001','1','12','$.Com_select','0',''),
('100857','48001','2','10','','0',''),
('100858','48002','1','12','$.Com_update','0',''),
('100859','48002','2','10','','0',''),
('100860','48003','1','12','$.Connections','0',''),
('100861','48003','2','10','','0',''),
('100862','48004','1','12','$.Connection_errors_accept','0',''),
('100863','48004','2','10','','0',''),
('100864','48005','1','12','$.Connection_errors_internal','0',''),
('100865','48005','2','10','','0',''),
('100866','48006','1','12','$.Connection_errors_max_connections','0',''),
('100867','48006','2','10','','0',''),
('100868','48007','1','12','$.Connection_errors_peer_address','0',''),
('100869','48007','2','10','','0',''),
('100870','48008','1','12','$.Connection_errors_select','0',''),
('100871','48008','2','10','','0',''),
('100872','48009','1','12','$.Connection_errors_tcpwrap','0',''),
('100873','48009','2','10','','0',''),
('100874','48010','1','12','$.Created_tmp_disk_tables','0',''),
('100875','48010','2','10','','0',''),
('100876','48011','1','12','$.Created_tmp_files','0',''),
('100877','48011','2','10','','0',''),
('100878','48012','1','12','$.Created_tmp_tables','0',''),
('100879','48012','2','10','','0',''),
('100880','48013','1','12','$.Innodb_buffer_pool_pages_free','0',''),
('100881','48014','1','12','$.Innodb_buffer_pool_pages_total','0',''),
('100882','48014','2','20','1h','0',''),
('100883','48015','1','12','$.Innodb_buffer_pool_reads','0',''),
('100884','48016','1','12','$.Innodb_buffer_pool_reads','0',''),
('100885','48016','2','10','','0',''),
('100886','48017','1','12','$.Innodb_buffer_pool_read_requests','0',''),
('100887','48018','1','12','$.Innodb_buffer_pool_read_requests','0',''),
('100888','48018','2','10','','0',''),
('100889','48019','1','12','$.Innodb_buffer_pool_wait_free','0',''),
('100890','48019','2','20','6h','0',''),
('100891','48020','1','12','$.Innodb_num_open_files','0',''),
('100892','48020','2','20','6h','0',''),
('100893','48021','1','12','$.Innodb_os_log_written','0',''),
('100894','48021','2','20','6h','0',''),
('100895','48022','1','12','$.Innodb_row_lock_time','0',''),
('100896','48022','2','1','0.001','0',''),
('100897','48022','3','20','1h','0',''),
('100898','48023','1','12','$.Innodb_row_lock_time_max','0',''),
('100899','48023','2','1','0.001','0',''),
('100900','48023','3','20','1h','0',''),
('100901','48024','1','12','$.Innodb_row_lock_waits','0',''),
('100902','48025','1','12','$.Max_used_connections','0',''),
('100903','48025','2','20','1h','0',''),
('100904','48026','1','12','$.Open_tables','0',''),
('100905','48026','2','20','6h','0',''),
('100906','48027','1','12','$.Open_table_definitions','0',''),
('100907','48027','2','20','6h','0',''),
('100908','48028','1','12','$.Queries','0',''),
('100909','48028','2','10','','0',''),
('100910','48029','1','12','$.Questions','0',''),
('100911','48029','2','10','','0',''),
('100912','48030','1','12','$.Slow_queries','0',''),
('100913','48030','2','10','','0',''),
('100914','48031','1','12','$.Threads_cached','0',''),
('100915','48032','1','12','$.Threads_connected','0',''),
('100916','48033','1','12','$.Threads_created','0',''),
('100917','48033','2','10','','0',''),
('100918','48034','1','12','$.Threads_running','0',''),
('100919','48035','1','12','$.Uptime','0',''),
('100941','48053','1','20','6h','0',''),
('100942','48054','1','21','return value.indexOf(''is alive'') !== -1 ? 1 : 0;','0',''),
('100943','48054','2','20','10m','0',''),
('100944','48055','1','5',E'(Server version)\\s+(.+)
\\2','0',''),
('100945','48055','2','20','1d','0',''),
('100946','48056','1','11','/resultset/row[field/text()=''Aborted_clients'']/field[@name=''Value'']/text()','0',''),
('100947','48056','2','10','','0',''),
('100948','48057','1','11','/resultset/row[field/text()=''Aborted_connects'']/field[@name=''Value'']/text()','0',''),
('100949','48057','2','10','','0',''),
('100950','48058','1','11','/resultset/row[field/text()=''Binlog_cache_disk_use'']/field[@name=''Value'']/text()','0',''),
('100951','48058','2','20','6h','0',''),
('100952','48059','1','11','/resultset/row[field/text()=''Bytes_received'']/field[@name=''Value'']/text()','0',''),
('100953','48059','2','10','','0',''),
('100954','48060','1','11','/resultset/row[field/text()=''Bytes_sent'']/field[@name=''Value'']/text()','0',''),
('100955','48060','2','10','','0',''),
('100956','48061','1','11','/resultset/row[field/text()=''Com_delete'']/field[@name=''Value'']/text()','0',''),
('100957','48061','2','10','','0',''),
('100958','48062','1','11','/resultset/row[field/text()=''Com_insert'']/field[@name=''Value'']/text()','0',''),
('100959','48062','2','10','','0',''),
('100960','48063','1','11','/resultset/row[field/text()=''Com_select'']/field[@name=''Value'']/text()','0',''),
('100961','48063','2','10','','0',''),
('100962','48064','1','11','/resultset/row[field/text()=''Com_update'']/field[@name=''Value'']/text()','0',''),
('100963','48064','2','10','','0',''),
('100964','48065','1','11','/resultset/row[field/text()=''Connections'']/field[@name=''Value'']/text()','0',''),
('100965','48065','2','10','','0',''),
('100966','48066','1','11','/resultset/row[field/text()=''Connection_errors_accept'']/field[@name=''Value'']/text()','0',''),
('100967','48066','2','10','','0',''),
('100968','48067','1','11','/resultset/row[field/text()=''Connection_errors_internal'']/field[@name=''Value'']/text()','0',''),
('100969','48067','2','10','','0',''),
('100970','48068','1','11','/resultset/row[field/text()=''Connection_errors_max_connections'']/field[@name=''Value'']/text()','0',''),
('100971','48068','2','10','','0',''),
('100972','48069','1','11','/resultset/row[field/text()=''Connection_errors_peer_address'']/field[@name=''Value'']/text()','0',''),
('100973','48069','2','10','','0',''),
('100974','48070','1','11','/resultset/row[field/text()=''Connection_errors_select'']/field[@name=''Value'']/text()','0',''),
('100975','48070','2','10','','0',''),
('100976','48071','1','11','/resultset/row[field/text()=''Connection_errors_tcpwrap'']/field[@name=''Value'']/text()','0',''),
('100977','48071','2','10','','0',''),
('100978','48072','1','11','/resultset/row[field/text()=''Created_tmp_disk_tables'']/field[@name=''Value'']/text()','0',''),
('100979','48072','2','10','','0',''),
('100980','48073','1','11','/resultset/row[field/text()=''Created_tmp_files'']/field[@name=''Value'']/text()','0',''),
('100981','48073','2','10','','0',''),
('100982','48074','1','11','/resultset/row[field/text()=''Created_tmp_tables'']/field[@name=''Value'']/text()','0',''),
('100983','48074','2','10','','0',''),
('100984','48075','1','11','/resultset/row[field/text()=''Innodb_buffer_pool_pages_free'']/field[@name=''Value'']/text()','0',''),
('100985','48076','1','11','/resultset/row[field/text()=''Innodb_buffer_pool_pages_total'']/field[@name=''Value'']/text()','0',''),
('100986','48076','2','20','1h','0',''),
('100987','48077','1','11','/resultset/row[field/text()=''Innodb_buffer_pool_reads'']/field[@name=''Value'']/text()','0',''),
('100988','48078','1','11','/resultset/row[field/text()=''Innodb_buffer_pool_reads'']/field[@name=''Value'']/text()','0',''),
('100989','48078','2','10','','0',''),
('100990','48079','1','11','/resultset/row[field/text()=''Innodb_buffer_pool_read_requests'']/field[@name=''Value'']/text()','0',''),
('100991','48080','1','11','/resultset/row[field/text()=''Innodb_buffer_pool_read_requests'']/field[@name=''Value'']/text()','0',''),
('100992','48080','2','10','','0',''),
('100993','48081','1','11','/resultset/row[field/text()=''Innodb_buffer_pool_wait_free'']/field[@name=''Value'']/text()','0',''),
('100994','48081','2','20','6h','0',''),
('100995','48082','1','11','/resultset/row[field/text()=''Innodb_num_open_files'']/field[@name=''Value'']/text()','0',''),
('100996','48082','2','20','6h','0',''),
('100997','48083','1','11','/resultset/row[field/text()=''Innodb_os_log_written'']/field[@name=''Value'']/text()','0',''),
('100998','48084','1','11','/resultset/row[field/text()=''Innodb_row_lock_time'']/field[@name=''Value'']/text()','0',''),
('100999','48084','2','1','0.001','0',''),
('101000','48084','3','20','1h','0',''),
('101001','48085','1','11','/resultset/row[field/text()=''Innodb_row_lock_time_max'']/field[@name=''Value'']/text()','0',''),
('101002','48085','2','1','0.001','0',''),
('101003','48085','3','20','1h','0',''),
('101004','48086','1','11','/resultset/row[field/text()=''Innodb_row_lock_waits'']/field[@name=''Value'']/text()','0',''),
('101005','48087','1','11','/resultset/row[field/text()=''Max_used_connections'']/field[@name=''Value'']/text()','0',''),
('101006','48087','2','20','1h','0',''),
('101007','48088','1','11','/resultset/row[field/text()=''Open_tables'']/field[@name=''Value'']/text()','0',''),
('101008','48088','2','20','6h','0',''),
('101009','48089','1','11','/resultset/row[field/text()=''Open_table_definitions'']/field[@name=''Value'']/text()','0',''),
('101010','48089','2','20','6h','0',''),
('101011','48090','1','11','/resultset/row[field/text()=''Queries'']/field[@name=''Value'']/text()','0',''),
('101012','48090','2','10','','0',''),
('101013','48091','1','11','/resultset/row[field/text()=''Questions'']/field[@name=''Value'']/text()','0',''),
('101014','48091','2','10','','0',''),
('101015','48092','1','11','/resultset/row[field/text()=''Slow_queries'']/field[@name=''Value'']/text()','0',''),
('101016','48092','2','10','','0',''),
('101017','48093','1','11','/resultset/row[field/text()=''Threads_cached'']/field[@name=''Value'']/text()','0',''),
('101018','48094','1','11','/resultset/row[field/text()=''Threads_connected'']/field[@name=''Value'']/text()','0',''),
('101019','48095','1','11','/resultset/row[field/text()=''Threads_created'']/field[@name=''Value'']/text()','0',''),
('101020','48095','2','10','','0',''),
('101021','48096','1','11','/resultset/row[field/text()=''Threads_running'']/field[@name=''Value'']/text()','0',''),
('101022','48097','1','11','/resultset/row[field/text()=''Uptime'']/field[@name=''Value'']/text()','0',''),
('101046','48122','1','20','1h','0',''),
('101047','48131','1','20','1d','0',''),
('101048','48133','1','12','$.archived_count','0',''),
('101049','48134','1','12','$.count_files','0',''),
('101050','48135','1','12','$.failed_count','0',''),
('101051','48136','1','12','$.size_files','0',''),
('101052','48137','1','12','$.buffers_alloc','0',''),
('101053','48137','2','10','','0',''),
('101054','48138','1','12','$.buffers_backend','1',''),
('101055','48138','2','10','','0',''),
('101056','48139','1','12','$.buffers_backend_fsync','1',''),
('101057','48139','2','10','','0',''),
('101058','48140','1','12','$.buffers_checkpoint','0',''),
('101059','48140','2','10','','0',''),
('101060','48141','1','12','$.buffers_clean','0',''),
('101061','48141','2','10','','0',''),
('101062','48142','1','12','$.checkpoints_req','0',''),
('101063','48142','2','10','','0',''),
('101064','48143','1','12','$.checkpoints_timed','0',''),
('101065','48143','2','10','','0',''),
('101066','48144','1','12','$.checkpoint_sync_time','0',''),
('101067','48144','2','1','0.001','0',''),
('101068','48144','3','10','','0',''),
('101069','48145','1','12','$.checkpoint_write_time','0',''),
('101070','48145','2','1','0.001','0',''),
('101071','48145','3','10','','0',''),
('101072','48146','1','12','$.maxwritten_clean','0',''),
('101073','48146','2','10','','0',''),
('101074','48147','1','12','$.active','0',''),
('101075','48148','1','12','$.disabled','0',''),
('101076','48149','1','12','$.fastpath_function_call','0',''),
('101077','48150','1','12','$.idle','0',''),
('101078','48151','1','12','$.idle_in_transaction','0',''),
('101079','48152','1','12','$.idle_in_transaction_aborted','0',''),
('101080','48153','1','12','$.prepared','0',''),
('101081','48154','1','12','$.total','0',''),
('101082','48155','1','12','$.total_pct','0',''),
('101083','48156','1','12','$.waiting','0',''),
('101084','48157','1','12','$.blks_hit','0',''),
('101085','48157','2','10','','0',''),
('101086','48158','1','12','$.blks_read','0',''),
('101087','48158','2','10','','0',''),
('101088','48159','1','12','$.blk_read_time','0',''),
('101089','48159','2','1','0.001','0',''),
('101090','48160','1','12','$.blk_write_time','0',''),
('101091','48160','2','1','0.001','0',''),
('101092','48161','1','12','$.checksum_failures','0',''),
('101093','48161','2','14',E'^\\d*$','2','-2'),
('101094','48161','3','10','','2','-1'),
('101095','48162','1','12','$.conflicts','0',''),
('101096','48162','2','10','','0',''),
('101097','48163','1','12','$.deadlocks','0',''),
('101098','48163','2','10','','0',''),
('101099','48164','1','12','$.numbackends','0',''),
('101100','48165','1','12','$.temp_bytes','0',''),
('101101','48165','2','10','','0',''),
('101102','48166','1','12','$.temp_files','0',''),
('101103','48166','2','10','','0',''),
('101104','48167','1','12','$.tup_deleted','0',''),
('101105','48167','2','10','','0',''),
('101106','48168','1','12','$.tup_fetched','0',''),
('101107','48168','2','10','','0',''),
('101108','48169','1','12','$.tup_inserted','0',''),
('101109','48169','2','10','','0',''),
('101110','48170','1','12','$.tup_returned','0',''),
('101111','48170','2','10','','0',''),
('101112','48171','1','12','$.tup_updated','0',''),
('101113','48171','2','10','','0',''),
('101114','48172','1','12','$.xact_commit','0',''),
('101115','48172','2','10','','0',''),
('101116','48173','1','12','$.xact_rollback','0',''),
('101117','48173','2','10','','0',''),
('101118','48174','1','12','$.count','0',''),
('101119','48175','1','12','$.receive','0',''),
('101120','48175','2','10','','0',''),
('101121','48176','1','12','$.write','0',''),
('101122','48176','2','10','','0',''),
('101184','48226','1','20','1h','0',''),
('101185','48230','1','5',E'Time:\\s+(\\d+\\.\\d+)\\s+ms
\\1','0',''),
('101186','48230','2','1','0.001','0',''),
('101187','48231','1','21','return value.search(/accepting connections/)>0 ? 1 : 0','0',''),
('101188','48231','2','20','1h','0',''),
('101189','48239','1','20','1d','0',''),
('101190','48241','1','12','$.buffers_alloc','0',''),
('101191','48241','2','10','','0',''),
('101192','48242','1','12','$.buffers_backend','1',''),
('101193','48242','2','10','','0',''),
('101194','48243','1','12','$.buffers_backend_fsync','1',''),
('101195','48243','2','10','','0',''),
('101196','48244','1','12','$.buffers_checkpoint','0',''),
('101197','48244','2','10','','0',''),
('101198','48245','1','12','$.buffers_clean','0',''),
('101199','48245','2','10','','0',''),
('101200','48246','1','12','$.checkpoints_req','0',''),
('101201','48246','2','10','','0',''),
('101202','48247','1','12','$.checkpoints_timed','0',''),
('101203','48247','2','10','','0',''),
('101204','48248','1','12','$.checkpoint_sync_time','0',''),
('101205','48248','2','1','0.001','0',''),
('101206','48248','3','10','','0',''),
('101207','48249','1','12','$.checkpoint_write_time','0',''),
('101208','48249','2','1','0.001','0',''),
('101209','48249','3','10','','0',''),
('101210','48250','1','12','$.maxwritten_clean','0',''),
('101211','48250','2','10','','0',''),
('101212','48251','1','12','$.active','0',''),
('101213','48252','1','12','$.idle','0',''),
('101214','48253','1','12','$.idle_in_transaction','0',''),
('101215','48254','1','12','$.prepared','0',''),
('101216','48255','1','12','$.total','0',''),
('101217','48256','1','12','$.total_pct','0',''),
('101218','48257','1','12','$.waiting','0',''),
('101219','48258','1','12','$.active','0',''),
('101220','48259','1','12','$.idle','0',''),
('101221','48260','1','12','$.prepared','0',''),
('101222','48261','1','12','$.waiting','0',''),
('101223','48262','1','12','$.count','0',''),
('101224','48263','1','12','$.write','0',''),
('101225','48263','2','10','','0',''),
('101270','48298','1','20','1d','0',''),
('101271','48300','1','20','1d','0',''),
('101272','48301','1','20','1d','0',''),
('101305','48341','1','20','1d','0',''),
('101306','48343','1','20','1d','0',''),
('101307','48344','1','20','1d','0',''),
('101340','48386','1','12','$.health.summary','1',''),
('101341','48386','2','20','1h','0',''),
('101342','48387','1','12','$.health.availabilityState','2','3'),
('101343','48387','2','25','Available
0','0',''),
('101344','48387','3','25','Degraded
1','0',''),
('101345','48387','4','25','Unavailable
2','0',''),
('101346','48387','5','25','Unknown
3','0',''),
('101347','48387','6','13','0
3','2','3'),
('101348','48387','7','20','1h','0',''),
('101349','48388','1','12','$.metrics.io_bytes_read.average','1',''),
('101350','48389','1','12','$.metrics.io_bytes_written.average','1',''),
('101351','48390','1','12','$.instance.properties.collation','1',''),
('101352','48390','2','20','1d','0',''),
('101353','48391','1','12','$.metrics.virtual_core_count.average','1',''),
('101354','48391','2','20','1h','0',''),
('101355','48392','1','12','$.metrics.avg_cpu_percent.average','1',''),
('101356','48393','1','12','$.error','2',''),
('101357','48393','2','20','1h','0',''),
('101358','48394','1','12','$.instance.properties.provisioningState','1',''),
('101359','48394','2','21','const idx = {
	''Unknown'': 0,
	''Accepted'': 1,
	''Canceled'': 2,
	''Created'': 3,
	''Creating'': 4,
	''Deleted'': 5,
	''Deleting'': 6,
	''Failed'': 7,
	''NotSpecified'': 8,
	''Registering'': 9,
	''Running'': 10,
	''Succeeded'': 11,
	''TimedOut'': 12,
	''Unrecognized'': 13,
	''Updating'': 14
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('101360','48394','3','20','1h','0',''),
('101361','48395','1','12','$.metrics.io_requests.average','1',''),
('101362','48396','1','12','$.instance.properties.state','1',''),
('101363','48396','2','20','1h','0',''),
('101364','48397','1','12','$.metrics.reserved_storage_mb.average','1',''),
('101365','48397','2','1','1048576','0',''),
('101366','48397','3','20','1h','0',''),
('101367','48398','1','12','$.metrics.storage_space_used_mb.average','1',''),
('101368','48398','2','1','1048576','0',''),
('101371','48412','1','20','12h','0',''),
('101372','48413','1','20','12h','0',''),
('101373','48414','1','20','1d','0',''),
('101374','48415','1','20','1d','0',''),
('101375','48416','1','26','-1','2','0'),
('101376','48416','2','1','0.01','0',''),
('101377','48417','1','20','12h','0',''),
('101378','48418','1','20','12h','0',''),
('101379','48419','1','1','0.01','0',''),
('101380','48420','1','20','12h','0',''),
('101381','48421','1','5',E'kernel (JUNOS [0-9a-zA-Z\\.\\-]+)
\\1','0',''),
('101382','48421','2','20','1d','0',''),
('101472','48472','1','27','','0',''),
('101473','48473','1','27','','0',''),
('101474','48473','2','21','var certificates = JSON.parse(value),
	result = {
		response: {
			''@status'': ''success'',
			data: []
		}
	};

if (certificates.response[''@status''] !== ''success'') {
	certificates.response.data = [];
	return JSON.stringify(certificates);
}

if (certificates.response.result && certificates.response.result.certificate && certificates.response.result.certificate.entry) {
	result.response.data = Array.isArray(certificates.response.result.certificate.entry) ? certificates.response.result.certificate.entry : [certificates.response.result.certificate.entry];

	return JSON.stringify(result);
}

return JSON.stringify(result);','0',''),
('101475','48474','1','27','','0',''),
('101476','48475','1','27','','0',''),
('101477','48476','1','27','','0',''),
('101478','48476','2','21','function parseDate(date_string) {
	var parts = date_string.split('' ''),
		months = {
			''January'': 0, ''February'': 1, ''March'': 2, ''April'': 3,
			''May'': 4, ''June'': 5, ''July'': 6, ''August'': 7,
			''September'': 8, ''October'': 9, ''November'': 10, ''December'': 11
		};

	var month = months[parts[0]],
		day = parseInt(parts[1].replace('','', ''''), 10),
		year = parseInt(parts[2], 10);

	var date = new Date(year, month, day);

	return Math.floor(date.getTime() / 1000);
}

var licenses = JSON.parse(value),
	result = {
		response: {
			''@status'': ''success'',
			data: []
		}
	};

if (licenses.response[''@status''] !== ''success'') {
	licenses.response.data = [];
	return JSON.stringify(licenses);
}

if (licenses.response.result && licenses.response.result.licenses && licenses.response.result.licenses.entry) {
	result.response.data = Array.isArray(licenses.response.result.licenses.entry) ? licenses.response.result.licenses.entry : [licenses.response.result.licenses.entry];

	for (var i in result.response.data) {
		if (result.response.data[i].expires !== ''Never'') {
			result.response.data[i].expires = parseDate(result.response.data[i].expires);
		}
	}

	return JSON.stringify(result);
}

return JSON.stringify(result);','0',''),
('101479','48477','1','27','','0',''),
('101480','48477','2','21','var ospf_neighbors = JSON.parse(value),
	result = {
		response: {
			''@status'': ''success'',
			data: []
		}
	};

if (ospf_neighbors.response[''@status''] !== ''success'') {
	ospf_neighbors.response.data = [];
	return JSON.stringify(ospf_neighbors);
}

if (ospf_neighbors.response.result.entry) {
	result.response.data = Array.isArray(ospf_neighbors.response.result.entry) ? ospf_neighbors.response.result.entry : [ospf_neighbors.response.result.entry];

	return JSON.stringify(result);
}

return JSON.stringify(result);','0',''),
('101481','48478','1','27','','0',''),
('101482','48478','2','21','var ospfv3_neighbors = JSON.parse(value),
	result = {
		response: {
			''@status'': ''success'',
			data: []
		}
	};

if (ospfv3_neighbors.response[''@status''] !== ''success'') {
	ospfv3_neighbors.response.data = [];
	return JSON.stringify(ospfv3_neighbors);
}

if (ospfv3_neighbors.response.result.entry) {
	result.response.data = Array.isArray(ospfv3_neighbors.response.result.entry) ? ospfv3_neighbors.response.result.entry : [ospfv3_neighbors.response.result.entry];

	return JSON.stringify(result);
}

return JSON.stringify(result);','0',''),
('101483','48479','1','27','','0',''),
('101484','48480','1','27','','0',''),
('101485','48481','1','27','','0',''),
('101486','48482','1','12','$.response.result.system[''app-release-date'']','1',''),
('101487','48482','2','20','12h','0',''),
('101488','48483','1','12','$.response.result.system[''app-version'']','0',''),
('101489','48483','2','20','12h','0',''),
('101490','48484','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101491','48484','2','20','3h','0',''),
('101492','48485','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101493','48485','2','20','3h','0',''),
('101494','48486','1','12','$.response.result.thermal.Slot1.entry.DegreesC','0',''),
('101495','48487','1','12','$.response.result','0',''),
('101496','48487','2','5',E'(?m)^sys\\.monitor\\.s1\\.dp0\\.exports:.*1minavg''?:\\s*(\\d+)
\\1','0',''),
('101497','48488','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101498','48488','2','20','3h','0',''),
('101499','48489','1','12','$.response.result.system[''global-protect-client-package-version'']','0',''),
('101500','48489','2','20','12h','0',''),
('101501','48490','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101502','48490','2','20','3h','0',''),
('101503','48491','1','12','$.response.result.system.hostname','0',''),
('101504','48491','2','20','12h','0',''),
('101505','48492','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101506','48492','2','20','3h','0',''),
('101507','48493','1','12','$.response.result','0',''),
('101508','48493','2','5',E'(?m)^sys\\.monitor\\.s1\\.mp\\.exports:.*1minavg''?:\\s*(\\d+)
\\1','0',''),
('101509','48494','1','12','$.response.result.system[''sw-version'']','0',''),
('101510','48494','2','20','12h','0',''),
('101511','48495','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101512','48495','2','20','3h','0',''),
('101513','48496','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101514','48496','2','20','3h','0',''),
('101515','48497','1','12','$.response.result.system.serial','0',''),
('101516','48497','2','20','12h','0',''),
('101517','48498','1','12','$.response.result[''num-active'']','0',''),
('101518','48499','1','12','$.response.result[''num-icmp'']','0',''),
('101519','48500','1','12','$.response.result[''num-max'']','0',''),
('101520','48500','2','20','12h','0',''),
('101521','48501','1','21','const session_data = JSON.parse(value);

return session_data.response.result[''num-active''] / session_data.response.result[''num-max''] * 100;','0',''),
('101522','48502','1','12','$.response.result[''num-tcp'']','0',''),
('101523','48503','1','12','$.response.result[''num-udp'']','0',''),
('101524','48504','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101525','48504','2','20','3h','0',''),
('101526','48505','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101527','48505','2','20','3h','0',''),
('101528','48506','1','21','const item_data = JSON.parse(value);

var zbx_error_msg = '''';

if (item_data.response[''@status''] !== ''success'') {
	zbx_error_msg = ''Unknown error. Test the item manually and check the retrieved value.'';

	if (item_data.response.msg && item_data.response.msg.line) {
		zbx_error_msg = item_data.response.msg.line;
	}

	if (item_data.response.result && item_data.response.result.msg) {
		zbx_error_msg = item_data.response.result.msg;
	}
}

return zbx_error_msg;','0',''),
('101529','48506','2','20','3h','0',''),
('101530','48507','1','12','$.response.result.system[''threat-version'']','0',''),
('101531','48507','2','20','12h','0',''),
('101532','48508','1','12','$.response.result.system.uptime','0',''),
('101533','48508','2','21',E'const uptime_pattern = /(?:(\\d+)\\s+days?,\\s+)?(\\d+):(\\d+):(\\d+)/;

const match = value.match(uptime_pattern);

if (match) {
	const days = parseInt(match[1] || "0", 10),
		  hours = parseInt(match[2], 10),
		  minutes = parseInt(match[3], 10),
		  seconds = parseInt(match[4], 10);

	return days * 86400 + hours * 3600 + minutes * 60 + seconds;
} else {
	throw ''Incorrect uptime string received: '' + value + ''. Expected format: D days, HH:mm:ss'';
}','0',''),
('101534','48509','1','12','$.response.result.system[''url-filtering-version'']','0',''),
('101535','48509','2','20','12h','0',''),
('101619','48555','1','12','$.firmware','0',''),
('101620','48555','2','20','6h','0',''),
('101621','48556','1','12','$.model','0',''),
('101622','48556','2','20','6h','0',''),
('101623','48557','1','12','$.serialnumber','0',''),
('101624','48557','2','20','6h','0',''),
('101625','48558','1','12','$.status','0',''),
('101626','48558','2','21','const idx = {
	''OK'': 1,
	''Warning'': 2,
	''Critical'': 3,
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('101627','48558','3','20','6h','0',''),
('101628','48559','1','12','$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()','0',''),
('101629','48560','1','12','$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()','0',''),
('101630','48561','1','12','$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()','0',''),
('101631','48562','1','12','$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()','0',''),
('101712','48604','1','20','6h','0',''),
('101713','48605','1','20','1d','0',''),
('101714','48607','1','20','1d','0',''),
('101715','48611','1','20','1d','0',''),
('101716','48612','1','20','6h','0',''),
('101717','48613','1','20','6h','0',''),
('101718','48615','1','20','6h','0',''),
('101719','48616','1','20','6h','0',''),
('101720','48618','1','20','6h','0',''),
('101721','48621','1','20','6h','0',''),
('101722','48624','1','20','6h','0',''),
('101723','48625','1','20','1d','0',''),
('101724','48629','1','20','6h','0',''),
('101809','36218','3','20','6h','0',''),
('101810','48675','1','12','$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()','0',''),
('101811','48676','1','12','$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()','0',''),
('101812','48677','1','12','$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()','0',''),
('101813','48678','1','12','$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()','0',''),
('101894','48720','1','20','6h','0',''),
('101895','48726','1','20','6h','0',''),
('101957','36300','3','20','6h','0',''),
('101958','48758','1','12','$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()','0',''),
('101959','48759','1','12','$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()','0',''),
('101960','48760','1','12','$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()','0',''),
('101961','48761','1','12','$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()','0',''),
('102042','48803','1','20','6h','0',''),
('102043','48809','1','20','6h','0',''),
('102105','48843','1','12','$.firmware','0',''),
('102106','48843','2','20','6h','0',''),
('102107','48844','1','12','$.model','0',''),
('102108','48844','2','20','6h','0',''),
('102109','48845','1','12','$.serialnumber','0',''),
('102110','48845','2','20','6h','0',''),
('102111','48846','1','12','$.status','0',''),
('102112','48846','2','21','const idx = {
	''OK'': 1,
	''Warning'': 2,
	''Critical'': 3,
};

return typeof idx[value] === ''undefined'' ? 0 : idx[value];','0',''),
('102113','48846','3','20','6h','0',''),
('102114','48847','1','12','$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()','0',''),
('102115','48848','1','12','$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()','0',''),
('102116','48849','1','12','$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()','0',''),
('102117','48850','1','12','$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()','0',''),
('102198','48892','1','20','6h','0',''),
('102199','48893','1','20','1d','0',''),
('102200','48895','1','20','1d','0',''),
('102201','48899','1','20','1d','0',''),
('102202','48900','1','20','6h','0',''),
('102203','48901','1','20','6h','0',''),
('102204','48903','1','20','6h','0',''),
('102205','48904','1','20','6h','0',''),
('102206','48906','1','20','6h','0',''),
('102207','48909','1','20','6h','0',''),
('102208','48912','1','20','6h','0',''),
('102209','48913','1','20','1d','0',''),
('102210','48917','1','20','6h','0',''),
('102295','36382','3','20','6h','0',''),
('102296','48963','1','12','$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()','0',''),
('102297','48964','1','12','$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()','0',''),
('102298','48965','1','12','$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()','0',''),
('102299','48966','1','12','$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()','0',''),
('102380','49008','1','20','6h','0',''),
('102381','49014','1','20','6h','0',''),
('102443','36464','3','20','6h','0',''),
('102444','49046','1','12','$.sysBoard[?(@.id == "SystemBoardCPUUsage")].reading.first()','0',''),
('102445','49047','1','12','$.sysBoard[?(@.id == "SystemBoardIOUsage")].reading.first()','0',''),
('102446','49048','1','12','$.sysBoard[?(@.id == "SystemBoardMEMUsage")].reading.first()','0',''),
('102447','49049','1','12','$.sysBoard[?(@.id == "SystemBoardSYSUsage")].reading.first()','0',''),
('102528','49091','1','20','6h','0',''),
('102529','49097','1','20','6h','0',''),
('102591','42641','1','20','6h','0',''),
('102592','49127','1','20','6h','0',''),
('102593','49128','1','20','1d','0',''),
('102594','49130','1','20','1d','0',''),
('102595','49134','1','20','1d','0',''),
('102596','49135','1','20','6h','0',''),
('102597','49136','1','20','6h','0',''),
('102598','49138','1','20','6h','0',''),
('102599','49139','1','20','6h','0',''),
('102600','49141','1','20','6h','0',''),
('102601','49144','1','20','6h','0',''),
('102602','49147','1','20','6h','0',''),
('102603','49148','1','20','1d','0',''),
('102689','49188','1','26','-1','2','0'),
('102690','49188','2','13','
0','2','1'),
('102691','49188','3','20','1d','0',''),
('102692','49189','1','12','$.queue','0',''),
('102693','49190','1','12','$.queue','0',''),
('102694','49192','1','12','$.queue','0',''),
('102695','49193','1','12','$.queue','0',''),
('102696','49195','1','12','$.data.triggers','2','0'),
('102697','49195','2','13','
0','2','1'),
('102698','49195','3','20','1d','0',''),
('102699','49196','1','12','$.data.discovery_queue','3','No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.'),
('102700','49197','1','12','$.data.preprocessing_queue','0',''),
('102701','49198','1','12','$.data.process[''agent poller''].busy.avg','3','Processes agent poller not started'),
('102702','49199','1','12','$.data.process[''availability manager''].busy.avg','0',''),
('102703','49200','1','12','$.data.process[''browser poller''].busy.avg','3','No "browser poller" processes started.'),
('102704','49201','1','12','$.data.process[''configuration syncer''].busy.avg','3','Processes configuration syncer not started'),
('102705','49202','1','12','$.data.process[''data sender''].busy.avg','3','Processes data sender not started'),
('102706','49203','1','12','$.data.process[''discovery manager''].busy.avg','3','No "discovery manager" processes started.'),
('102707','49204','1','12','$.data.process[''discovery worker''].busy.avg','3','No "discovery worker" processes started.'),
('102708','49205','1','12','$.data.process[''history syncer''].busy.avg','3','Processes history syncer not started'),
('102709','49206','1','12','$.data.process[''housekeeper''].busy.avg','3','Processes housekeeper not started'),
('102710','49207','1','12','$.data.process[''http agent poller''].busy.avg','3','Processes http agent poller not started'),
('102711','49208','1','12','$.data.process[''http poller''].busy.avg','3','Processes http poller not started'),
('102712','49209','1','12','$.data.process[''icmp pinger''].busy.avg','3','Processes icmp pinger not started'),
('102713','49210','1','12','$.data.process[''internal poller''].busy.avg','3','No "internal poller" processes started.'),
('102714','49211','1','12','$.data.process[''ipmi manager''].busy.avg','3','Processes ipmi manager not started'),
('102715','49212','1','12','$.data.process[''ipmi poller''].busy.avg','3','Processes ipmi poller not started'),
('102716','49213','1','12','$.data.process[''java poller''].busy.avg','3','Processes java poller not started'),
('102717','49214','1','12','$.data.process[''odbc poller''].busy.avg','3','Processes odbc poller not started'),
('102718','49215','1','12','$.data.process[''poller''].busy.avg','3','Processes poller not started'),
('102719','49216','1','12','$.data.process[''preprocessing manager''].busy.avg','3','Processes preprocessing manager not started'),
('102720','49217','1','12','$.data.process[''preprocessing worker''].busy.avg','3','Processes preprocessing worker not started'),
('102721','49218','1','12','$.data.process[''self-monitoring''].busy.avg','3','Processes self-monitoring not started'),
('102722','49219','1','12','$.data.process[''snmp poller''].busy.avg','3','Processes snmp poller not started'),
('102723','49220','1','12','$.data.process[''snmp trapper''].busy.avg','3','Processes snmp trapper not started'),
('102724','49221','1','12','$.data.process[''task manager''].busy.avg','3','Processes task manager not started'),
('102725','49222','1','12','$.data.process[''trapper''].busy.avg','3','Processes trapper not started'),
('102726','49223','1','12','$.data.process[''unreachable poller''].busy.avg','3','Processes unreachable poller not started'),
('102727','49224','1','12','$.data.process[''vmware collector''].busy.avg','3','Processes vmware collector not started'),
('102728','49225','1','12','$.data.wcache.[''proxy buffer''].memory.pused','3','Proxy memory buffer is disabled.'),
('102729','49226','1','12','$.data.wcache.[''proxy buffer''].[''state change'']','2','0'),
('102730','49226','2','20','1h','0',''),
('102731','49227','1','12','$.data.wcache.[''proxy buffer''].state','2','0'),
('102732','49227','2','20','1h','0',''),
('102733','49228','1','12','$.data.triggers','2','0'),
('102734','49228','2','13','
0','2','1'),
('102735','49228','3','20','1d','0',''),
('102736','49229','1','12','$.data.rcache.pused','0',''),
('102737','49230','1','12','$.data.requiredperformance','0',''),
('102738','49230','2','20','12h','0',''),
('102739','49231','1','12','$.data.uptime','0',''),
('102740','49232','1','12','$.data.version','0',''),
('102741','49232','2','20','1d','0',''),
('102742','49233','1','12','$.data.vmware.pused','3','No vmware collector processes started'),
('102743','49234','1','12','$.data.wcache.history.pused','0',''),
('102744','49235','1','12','$.data.wcache.index.pused','0',''),
('102745','49236','1','12','$.data.wcache.values.all','0',''),
('102746','49236','2','10','','0',''),
('102747','49237','1','12','$.data.wcache.values.float','0',''),
('102748','49237','2','10','','0',''),
('102749','49238','1','12','$.data.wcache.values.log','0',''),
('102750','49238','2','10','','0',''),
('102751','49239','1','12','$.data.wcache.values[''not supported'']','0',''),
('102752','49239','2','10','','0',''),
('102753','49240','1','12','$.data.wcache.values.str','0',''),
('102754','49240','2','10','','0',''),
('102755','49241','1','12','$.data.wcache.values.text','0',''),
('102756','49241','2','10','','0',''),
('102757','49242','1','12','$.data.wcache.values.uint','0',''),
('102758','49242','2','10','','0',''),
('102759','49243','1','12','$.data.discovery_queue','3','No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.'),
('102760','49244','1','12','$.data.preprocessing_queue','0',''),
('102761','49245','1','12','$.data.process[''agent poller''].busy.avg','3','Processes agent poller not started'),
('102762','49246','1','12','$.data.process[''availability manager''].busy.avg','0',''),
('102763','49247','1','12','$.data.process[''browser poller''].busy.avg','3','No "browser poller" processes started.'),
('102764','49248','1','12','$.data.process[''configuration syncer''].busy.avg','3','Processes configuration syncer not started'),
('102765','49249','1','12','$.data.process[''data sender''].busy.avg','3','Processes data sender not started'),
('102766','49250','1','12','$.data.process[''discovery manager''].busy.avg','3','No "discovery manager" processes started.'),
('102767','49251','1','12','$.data.process[''discovery worker''].busy.avg','3','No "discovery worker" processes started.'),
('102768','49252','1','12','$.data.process[''history syncer''].busy.avg','3','Processes history syncer not started'),
('102769','49253','1','12','$.data.process[''housekeeper''].busy.avg','3','Processes housekeeper not started'),
('102770','49254','1','12','$.data.process[''http agent poller''].busy.avg','3','Processes http agent poller not started'),
('102771','49255','1','12','$.data.process[''http poller''].busy.avg','3','Processes http poller not started'),
('102772','49256','1','12','$.data.process[''icmp pinger''].busy.avg','3','Processes icmp pinger not started'),
('102773','49257','1','12','$.data.process[''internal poller''].busy.avg','3','No "internal poller" processes started.'),
('102774','49258','1','12','$.data.process[''ipmi manager''].busy.avg','3','Processes ipmi manager not started'),
('102775','49259','1','12','$.data.process[''ipmi poller''].busy.avg','3','Processes ipmi poller not started'),
('102776','49260','1','12','$.data.process[''java poller''].busy.avg','3','Processes java poller not started'),
('102777','49261','1','12','$.data.process[''odbc poller''].busy.avg','3','Processes odbc poller not started'),
('102778','49262','1','12','$.data.process[''poller''].busy.avg','3','Processes poller not started'),
('102779','49263','1','12','$.data.process[''preprocessing manager''].busy.avg','3','Processes preprocessing manager not started'),
('102780','49264','1','12','$.data.process[''preprocessing worker''].busy.avg','3','Processes preprocessing worker not started'),
('102781','49265','1','12','$.data.process[''self-monitoring''].busy.avg','3','Processes self-monitoring not started'),
('102782','49266','1','12','$.data.process[''snmp poller''].busy.avg','3','Processes snmp poller not started'),
('102783','49267','1','12','$.data.process[''snmp trapper''].busy.avg','3','Processes snmp trapper not started'),
('102784','49268','1','12','$.data.process[''task manager''].busy.avg','3','Processes task manager not started'),
('102785','49269','1','12','$.data.process[''trapper''].busy.avg','3','Processes trapper not started'),
('102786','49270','1','12','$.data.process[''unreachable poller''].busy.avg','3','Processes unreachable poller not started'),
('102787','49271','1','12','$.data.process[''vmware collector''].busy.avg','3','Processes vmware collector not started'),
('102788','49272','1','12','$.data.wcache.[''proxy buffer''].memory.pused','3','Proxy memory buffer is disabled.'),
('102789','49273','1','12','$.data.wcache.[''proxy buffer''].[''state change'']','2','0'),
('102790','49273','2','20','1h','0',''),
('102791','49274','1','12','$.data.wcache.[''proxy buffer''].state','2','0'),
('102792','49274','2','20','1h','0',''),
('102793','49275','1','12','$.data.triggers','2','0'),
('102794','49275','2','13','
0','2','1'),
('102795','49275','3','20','1d','0',''),
('102796','49276','1','12','$.data.rcache.pused','0',''),
('102797','49277','1','12','$.data.requiredperformance','0',''),
('102798','49277','2','20','12h','0',''),
('102799','49278','1','12','$.data.uptime','0',''),
('102800','49279','1','12','$.data.version','0',''),
('102801','49279','2','20','1d','0',''),
('102802','49280','1','12','$.data.vmware.pused','3','No vmware collector processes started'),
('102803','49281','1','12','$.data.wcache.history.pused','0',''),
('102804','49282','1','12','$.data.wcache.index.pused','0',''),
('102805','49283','1','12','$.data.wcache.values.all','0',''),
('102806','49283','2','10','','0',''),
('102807','49284','1','12','$.data.wcache.values.float','0',''),
('102808','49284','2','10','','0',''),
('102809','49285','1','12','$.data.wcache.values.log','0',''),
('102810','49285','2','10','','0',''),
('102811','49286','1','12','$.data.wcache.values[''not supported'']','0',''),
('102812','49286','2','10','','0',''),
('102813','49287','1','12','$.data.wcache.values.str','0',''),
('102814','49287','2','10','','0',''),
('102815','49288','1','12','$.data.wcache.values.text','0',''),
('102816','49288','2','10','','0',''),
('102817','49289','1','12','$.data.wcache.values.uint','0',''),
('102818','49289','2','10','','0',''),
('102819','49290','1','26','-1','2','0'),
('102820','49290','2','13','
0','2','1'),
('102821','49290','3','20','1d','0',''),
('102822','49291','1','12','$.queue','0',''),
('102823','49292','1','12','$.queue','0',''),
('102824','49294','1','12','$.queue','0',''),
('102825','49295','1','12','$.queue','0',''),
('102826','49297','1','26','-1','2','0'),
('102827','49297','2','13','
0','2','1'),
('102828','49297','3','20','1d','0',''),
('102829','49298','1','12','$.data.triggers','2','0'),
('102830','49298','2','13','
0','2','1'),
('102831','49298','3','20','1d','0',''),
('102832','49299','1','12','$.data.connector_queue','3','No "connector" processes started. Please check "StartConnectors" parameter in the server configuration file.'),
('102833','49300','1','12','$.data.discovery_queue','3','No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.'),
('102834','49301','1','12','$.data.lld_queue','0',''),
('102835','49302','1','12','$.data.preprocessing.queue','0',''),
('102836','49303','1','12','$.data.process[''agent poller''].busy.avg','3','No "agent poller" processes started.'),
('102837','49304','1','12','$.data.process[''alerter''].busy.avg','3','No "alerter" processes started.'),
('102838','49305','1','12','$.data.process[''alert manager''].busy.avg','3','No "alert manager" processes started.'),
('102839','49306','1','12','$.data.process[''alert syncer''].busy.avg','3','No "alert syncer" processes started.'),
('102840','49307','1','12','$.data.process[''availability manager''].busy.avg','3','No "availability manager" processes started.'),
('102841','49308','1','12','$.data.process[''browser poller''].busy.avg','3','No "browser poller" processes started.'),
('102842','49309','1','12','$.data.process[''configuration syncer''].busy.avg','3','No "configuration syncer" processes started.'),
('102843','49310','1','12','$.data.process[''configuration syncer worker''].busy.avg','0',''),
('102844','49311','1','12','$.data.process[''connector manager''].busy.avg','3','No "connector manager" processes started.'),
('102845','49312','1','12','$.data.process[''connector worker''].busy.avg','3','No "connector worker" processes started.'),
('102846','49313','1','12','$.data.process[''discovery manager''].busy.avg','3','No "discovery manager" processes started.'),
('102847','49314','1','12','$.data.process[''discovery worker''].busy.avg','3','No "discovery worker" processes started.'),
('102848','49315','1','12','$.data.process[''escalator''].busy.avg','3','No "escalator" processes started.'),
('102849','49316','1','12','$.data.process[''history poller''].busy.avg','3','No "history poller" processes started.'),
('102850','49317','1','12','$.data.process[''history syncer''].busy.avg','3','No "history syncer" processes started.'),
('102851','49318','1','12','$.data.process[''housekeeper''].busy.avg','3','No "housekeeper" processes started.'),
('102852','49319','1','12','$.data.process[''http agent poller''].busy.avg','3','No "http agent poller" processes started.'),
('102853','49320','1','12','$.data.process[''http poller''].busy.avg','3','No "http poller" processes started.'),
('102854','49321','1','12','$.data.process[''icmp pinger''].busy.avg','3','No "icmp pinger" processes started.'),
('102855','49322','1','12','$.data.process[''internal poller''].busy.avg','3','No "internal poller" processes started.'),
('102856','49323','1','12','$.data.process[''ipmi manager''].busy.avg','3','No "ipmi manager" processes started.'),
('102857','49324','1','12','$.data.process[''ipmi poller''].busy.avg','3','No "ipmi poller" processes started.'),
('102858','49325','1','12','$.data.process[''java poller''].busy.avg','3','No "java poller" processes started.'),
('102859','49326','1','12','$.data.process[''lld manager''].busy.avg','3','No "LLD manager" processes started.'),
('102860','49327','1','12','$.data.process[''lld worker''].busy.avg','3','No "LLD worker" processes started.'),
('102861','49328','1','12','$.data.process[''odbc poller''].busy.avg','3','Processes odbc poller not started'),
('102862','49329','1','12','$.data.process[''poller''].busy.avg','3','No "poller" processes started.'),
('102863','49330','1','12','$.data.process[''preprocessing manager''].busy.avg','3','No "preprocessing manager" processes started.'),
('102864','49331','1','12','$.data.process[''preprocessing worker''].busy.avg','3','No "preprocessing worker" processes started.'),
('102865','49332','1','12','$.data.process[''proxy group manager''].busy.avg','0',''),
('102866','49333','1','12','$.data.process[''proxy poller''].busy.avg','3','No "proxy poller" processes started.'),
('102867','49334','1','12','$.data.process[''report manager''].busy.avg','3','No "report manager" processes started.'),
('102868','49335','1','12','$.data.process[''report writer''].busy.avg','3','No "report writer" processes started.'),
('102869','49336','1','12','$.data.process[''self-monitoring''].busy.avg','3','No "self-monitoring" processes started.'),
('102870','49337','1','12','$.data.process[''service manager''].busy.avg','3','No "service manager" processes started.'),
('102871','49338','1','12','$.data.process[''snmp poller''].busy.avg','3','No "snmp poller" processes started.'),
('102872','49339','1','12','$.data.process[''snmp trapper''].busy.avg','3','No "snmp trapper" processes started.'),
('102873','49340','1','12','$.data.process[''task manager''].busy.avg','3','No "task manager" processes started.'),
('102874','49341','1','12','$.data.process[''timer''].busy.avg','3','No "timer" processes started.'),
('102875','49342','1','12','$.data.process[''trapper''].busy.avg','3','No "trapper" processes started.'),
('102876','49343','1','12','$.data.process[''trigger housekeeper''].busy.avg','3','No "trigger housekeeper" processes started.'),
('102877','49344','1','12','$.data.process[''unreachable poller''].busy.avg','3','No "unreachable poller" processes started.'),
('102878','49345','1','12','$.data.process[''vmware collector''].busy.avg','3','No "vmware collector" processes started.'),
('102879','49346','1','12','$.data.rcache.pused','0',''),
('102880','49347','1','12','$.data.triggers','2','0'),
('102881','49347','2','13','
0','2','1'),
('102882','49347','3','20','1d','0',''),
('102883','49348','1','12','$.data.tcache.pitems','3','Not supported in this version.'),
('102884','49349','1','12','$.data.tcache.pmisses','3','Not supported in this version.'),
('102885','49350','1','12','$.data.vcache.buffer.pused','0',''),
('102886','49351','1','12','$.data.vcache.cache.hits','0',''),
('102887','49351','2','10','','0',''),
('102888','49352','1','12','$.data.vcache.cache.misses','0',''),
('102889','49352','2','10','','0',''),
('102890','49353','1','12','$.data.vcache.cache.mode','0',''),
('102891','49354','1','12','$.data.version','0',''),
('102892','49354','2','20','1d','0',''),
('102893','49355','1','12','$.data.vmware.pused','3','No "vmware collector" processes started.'),
('102894','49356','1','12','$.data.vps.written_total','0',''),
('102895','49356','2','10','','0',''),
('102896','49357','1','12','$.data.wcache.history.pused','0',''),
('102897','49358','1','12','$.data.wcache.index.pused','0',''),
('102898','49359','1','12','$.data.wcache.trend.pused','0',''),
('102899','49360','1','12','$.data.wcache.values.all','0',''),
('102900','49360','2','10','','0',''),
('102901','49361','1','12','$.data.wcache.values.float','0',''),
('102902','49361','2','10','','0',''),
('102903','49362','1','12','$.data.wcache.values.log','0',''),
('102904','49362','2','10','','0',''),
('102905','49363','1','12','$.data.wcache.values[''not supported'']','0',''),
('102906','49363','2','10','','0',''),
('102907','49364','1','12','$.data.wcache.values.str','0',''),
('102908','49364','2','10','','0',''),
('102909','49365','1','12','$.data.wcache.values.text','0',''),
('102910','49365','2','10','','0',''),
('102911','49366','1','12','$.data.wcache.values.uint','0',''),
('102912','49366','2','10','','0',''),
('102913','49367','1','12','$.data.proxy','0',''),
('102914','49368','1','12','$.data.connector_queue','3','No "connector" processes started. Please check "StartConnectors" parameter in the server configuration file.'),
('102915','49369','1','12','$.data.discovery_queue','3','No "discoverer" processes started. Please check "StartDiscoverers" parameter in the server configuration file.'),
('102916','49370','1','12','$.data.lld_queue','0',''),
('102917','49371','1','12','$.data.preprocessing.queue','0',''),
('102918','49372','1','12','$.data.process[''agent poller''].busy.avg','3','No "agent poller" processes started.'),
('102919','49373','1','12','$.data.process[''alerter''].busy.avg','3','No "alerter" processes started.'),
('102920','49374','1','12','$.data.process[''alert manager''].busy.avg','3','No "alert manager" processes started.'),
('102921','49375','1','12','$.data.process[''alert syncer''].busy.avg','3','No "alert syncer" processes started.'),
('102922','49376','1','12','$.data.process[''availability manager''].busy.avg','3','No "availability manager" processes started.'),
('102923','49377','1','12','$.data.process[''browser poller''].busy.avg','3','No "browser poller" processes started.'),
('102924','49378','1','12','$.data.process[''configuration syncer''].busy.avg','3','No "configuration syncer" processes started.'),
('102925','49379','1','12','$.data.process[''configuration syncer worker''].busy.avg','0',''),
('102926','49380','1','12','$.data.process[''connector manager''].busy.avg','3','No "connector manager" processes started.'),
('102927','49381','1','12','$.data.process[''connector worker''].busy.avg','3','No "connector worker" processes started.'),
('102928','49382','1','12','$.data.process[''discovery manager''].busy.avg','3','No "discovery manager" processes started.'),
('102929','49383','1','12','$.data.process[''discovery worker''].busy.avg','3','No "discovery worker" processes started.'),
('102930','49384','1','12','$.data.process[''escalator''].busy.avg','3','No "escalator" processes started.'),
('102931','49385','1','12','$.data.process[''history poller''].busy.avg','3','No "history poller" processes started.'),
('102932','49386','1','12','$.data.process[''history syncer''].busy.avg','3','No "history syncer" processes started.'),
('102933','49387','1','12','$.data.process[''housekeeper''].busy.avg','3','No "housekeeper" processes started.'),
('102934','49388','1','12','$.data.process[''http agent poller''].busy.avg','3','No "http agent poller" processes started.'),
('102935','49389','1','12','$.data.process[''http poller''].busy.avg','3','No "http poller" processes started.'),
('102936','49390','1','12','$.data.process[''icmp pinger''].busy.avg','3','No "icmp pinger" processes started.'),
('102937','49391','1','12','$.data.process[''internal poller''].busy.avg','3','No "internal poller" processes started.'),
('102938','49392','1','12','$.data.process[''ipmi manager''].busy.avg','3','No "ipmi manager" processes started.'),
('102939','49393','1','12','$.data.process[''ipmi poller''].busy.avg','3','No "ipmi poller" processes started.'),
('102940','49394','1','12','$.data.process[''java poller''].busy.avg','3','No "java poller" processes started.'),
('102941','49395','1','12','$.data.process[''lld manager''].busy.avg','3','No "LLD manager" processes started.'),
('102942','49396','1','12','$.data.process[''lld worker''].busy.avg','3','No "LLD worker" processes started.'),
('102943','49397','1','12','$.data.process[''odbc poller''].busy.avg','3','Processes odbc poller not started'),
('102944','49398','1','12','$.data.process[''poller''].busy.avg','3','No "poller" processes started.'),
('102945','49399','1','12','$.data.process[''preprocessing manager''].busy.avg','3','No "preprocessing manager" processes started.'),
('102946','49400','1','12','$.data.process[''preprocessing worker''].busy.avg','3','No "preprocessing worker" processes started.'),
('102947','49401','1','12','$.data.process[''proxy group manager''].busy.avg','0',''),
('102948','49402','1','12','$.data.process[''proxy poller''].busy.avg','3','No "proxy poller" processes started.'),
('102949','49403','1','12','$.data.process[''report manager''].busy.avg','3','No "report manager" processes started.'),
('102950','49404','1','12','$.data.process[''report writer''].busy.avg','3','No "report writer" processes started.'),
('102951','49405','1','12','$.data.process[''self-monitoring''].busy.avg','3','No "self-monitoring" processes started.'),
('102952','49406','1','12','$.data.process[''service manager''].busy.avg','3','No "service manager" processes started.'),
('102953','49407','1','12','$.data.process[''snmp poller''].busy.avg','3','No "snmp poller" processes started.'),
('102954','49408','1','12','$.data.process[''snmp trapper''].busy.avg','3','No "snmp trapper" processes started.'),
('102955','49409','1','12','$.data.process[''task manager''].busy.avg','3','No "task manager" processes started.'),
('102956','49410','1','12','$.data.process[''timer''].busy.avg','3','No "timer" processes started.'),
('102957','49411','1','12','$.data.process[''trapper''].busy.avg','3','No "trapper" processes started.'),
('102958','49412','1','12','$.data.process[''trigger housekeeper''].busy.avg','3','No "trigger housekeeper" processes started.'),
('102959','49413','1','12','$.data.process[''unreachable poller''].busy.avg','3','No "unreachable poller" processes started.'),
('102960','49414','1','12','$.data.process[''vmware collector''].busy.avg','3','No "vmware collector" processes started.'),
('102961','49415','1','12','$.data.rcache.pused','0',''),
('102962','49416','1','12','$.data.triggers','2','0'),
('102963','49416','2','13','
0','2','1'),
('102964','49416','3','20','1d','0',''),
('102965','49417','1','12','$.data.tcache.pitems','3','Not supported in this version.'),
('102966','49418','1','12','$.data.tcache.pmisses','3','Not supported in this version.'),
('102967','49419','1','12','$.data.vcache.buffer.pused','0',''),
('102968','49420','1','12','$.data.vcache.cache.hits','0',''),
('102969','49420','2','10','','0',''),
('102970','49421','1','12','$.data.vcache.cache.misses','0',''),
('102971','49421','2','10','','0',''),
('102972','49422','1','12','$.data.vcache.cache.mode','0',''),
('102973','49423','1','12','$.data.version','0',''),
('102974','49423','2','20','1d','0',''),
('102975','49424','1','12','$.data.vmware.pused','3','No "vmware collector" processes started.'),
('102976','49425','1','12','$.data.vps.written_total','0',''),
('102977','49425','2','10','','0',''),
('102978','49426','1','12','$.data.wcache.history.pused','0',''),
('102979','49427','1','12','$.data.wcache.index.pused','0',''),
('102980','49428','1','12','$.data.wcache.trend.pused','0',''),
('102981','49429','1','12','$.data.wcache.values.all','0',''),
('102982','49429','2','10','','0',''),
('102983','49430','1','12','$.data.wcache.values.float','0',''),
('102984','49430','2','10','','0',''),
('102985','49431','1','12','$.data.wcache.values.log','0',''),
('102986','49431','2','10','','0',''),
('102987','49432','1','12','$.data.wcache.values[''not supported'']','0',''),
('102988','49432','2','10','','0',''),
('102989','49433','1','12','$.data.wcache.values.str','0',''),
('102990','49433','2','10','','0',''),
('102991','49434','1','12','$.data.wcache.values.text','0',''),
('102992','49434','2','10','','0',''),
('102993','49435','1','12','$.data.wcache.values.uint','0',''),
('102994','49435','2','10','','0',''),
('102995','49436','1','12','$.data.proxy','0',''),
('103074','49476','1','12','$.error','2',''),
('103075','49476','2','20','1h','0',''),
('103076','49477','1','12','$.error','2',''),
('103077','49477','2','20','1h','0',''),
('103078','49478','1','12','$.health.summary','0',''),
('103079','49478','2','20','1h','0',''),
('103080','49479','1','12','$.health.availabilityState','2','3'),
('103081','49479','2','25','Available
0','0',''),
('103082','49479','3','25','Degraded
1','0',''),
('103083','49479','4','25','Unavailable
2','0',''),
('103084','49479','5','25','Unknown
3','0',''),
('103085','49479','6','13','0
3','2','3'),
('103086','49479','7','20','1h','0',''),
('103087','49480','1','12','$.metrics.connection_failed.total','1',''),
('103088','49481','1','12','$.metrics.connection_successful.total','1',''),
('103089','49482','1','12','$.metrics.cpu_percent.average','1',''),
('103090','49483','1','12','$.errors','1',''),
('103091','49483','2','20','1h','0',''),
('103092','49484','1','12','$.metrics.physical_data_read_percent.average','1',''),
('103093','49485','1','12','$.metrics.deadlock.total','1',''),
('103094','49486','1','12','$.metrics.dtu_limit.average','1',''),
('103095','49487','1','12','$.metrics.dtu_consumption_percent.average','1',''),
('103096','49488','1','12','$.metrics.dtu_used.average','1',''),
('103097','49489','1','12','$.metrics.blocked_by_firewall.total','1',''),
('103098','49490','1','12','$.metrics.log_write_percent.average','1',''),
('103099','49491','1','12','$.metrics.sql_instance_cpu_percent.maximum','1',''),
('103100','49492','1','12','$.metrics.sql_instance_cpu_percent.maximum','1',''),
('103101','49493','1','12','$.metrics.sessions_count.average','1',''),
('103102','49494','1','12','$.metrics.sessions_percent.average','1',''),
('103103','49495','1','12','$.metrics.allocated_data_storage.average','1',''),
('103104','49496','1','12','$.metrics.log_backup_size_bytes.maximum','1',''),
('103105','49496','2','20','1d','0',''),
('103106','49497','1','12','$.metrics.storage_percent.maximum','1',''),
('103107','49498','1','12','$.metrics.storage.maximum','1',''),
('103108','49499','1','12','$.metrics.xtp_storage_percent.average','1',''),
('103109','49500','1','12','$.metrics.tempdb_data_size.maximum','1',''),
('103110','49500','2','1','1024','0',''),
('103111','49501','1','12','$.metrics.tempdb_log_used_percent.maximum','1',''),
('103112','49502','1','12','$.metrics.tempdb_log_size.maximum','1',''),
('103113','49502','2','1','1024','0',''),
('103114','49503','1','12','$.metrics.workers_percent.average','1',''),
('103445','28031','1','1','0.01','0',''),
('103446','49724','1','1','0.01','0',''),
('103447','49725','1','1','0.01','0',''),
('103448','49728','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	storage_array = {},
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	request.addHeader(''Accept: application/json'');
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
			if (Array.isArray(response) & response.length > 0) {
				response = response[0]
			}
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected cookie value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	storage_array = getHttpData(
		url + ''api/'' + version + ''/array'',
		creds.cookie
	);

	storage_array[''space''] = getHttpData(
		url + ''api/'' + version + ''/array?space=true'',
		creds.cookie
	);

	storage_array[''monitor''] = getHttpData(
		url + ''api/'' + version + ''/array?action=monitor'',
		creds.cookie
	);

	storage_array[''remote_assist''] = getHttpData(
		url + ''api/'' + version + ''/array/remoteassist'',
		creds.cookie, {}
	);

	storage_array[''phone_home''] = getHttpData(
		url + ''api/'' + version + ''/array/phonehome'',
		creds.cookie, {}
	);
} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''array'': storage_array,
	''error'': error_msg.toString()
});','0',''),
('103449','49729','1','12','$.error','0',''),
('103450','49729','2','20','1h','0',''),
('103451','49730','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	certs = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected cookie value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	certs = getHttpData(
		url + ''api/'' + version + ''/cert'',
		creds.cookie
	);

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''certs'': certs,
	''error'': error_msg.toString()
});','0',''),
('103452','49731','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	drives = [],
	hardware = [],
	controllers = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected cookie value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	drives = getHttpData(
		url + ''api/'' + version + ''/drive'',
		creds.cookie
	);

	controllers = getHttpData(
		url + ''api/'' + version + ''/array?controllers=true'',
		creds.cookie
	);

	getHttpData(
		url + ''api/'' + version + ''/hardware'',
		creds.cookie
	).forEach(function (item) {
		var applied = false;
		drives.forEach(function (drive, index) {
			if (drive[''name''] && item[''name''] && drive[''name''] == item[''name'']) {
				drives[index][''hardware''] = item;
				applied = true;
			}
		});
		controllers.forEach(function (ctrl, index) {
			if (ctrl[''name''] && item[''name''] && ctrl[''name''] == item[''name'']) {
				controllers[index][''hardware''] = item;
				applied = true;
			}
		});
		if (!applied) {
			var nameArray = item[''name''].split(''.'');
			if (nameArray.length > 1) {
				item[''parent''] = nameArray[0];
			}
			hardware.push(item);
		}
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''drives'': drives,
	''hardware'': hardware,
	''controllers'': controllers,
	''error'': error_msg.toString()
});','0',''),
('103453','49732','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	hosts = {},
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	request.addHeader(''Accept: application/json'');
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected cookie value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	hosts = getHttpData(
		url + ''api/'' + version + ''/host'',
		creds.cookie
	);

	getHttpData(
		url + ''api/'' + version + ''/host?space=true'',
		creds.cookie
	).forEach(function (item) {
		hosts.forEach(function (host, index) {
			if (host[''name''] && item[''name''] && host[''name''] == item[''name'']) {
				hosts[index][''space''] = item;
			}
		});
	});

	getHttpData(
		url + ''api/'' + version + ''/host?action=monitor'',
		creds.cookie
	).forEach(function (item) {
		hosts.forEach(function (host, index) {
			if (host[''name''] && item[''name''] && host[''name''] == item[''name'']) {
				hosts[index][''monitor''] = item;
			}
		});
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''hosts'': hosts,
	''error'': error_msg.toString()
});','0',''),
('103454','49733','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	interfaces = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	request.addHeader(''Accept: application/json'');
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected cookie value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	interfaces = getHttpData(
		url + ''api/'' + version + ''/network'',
		creds.cookie
	);

	getHttpData(
		url + ''api/'' + version + ''/hardware'',
		creds.cookie
	).forEach(function (item) {
		interfaces.forEach(function (netif, index) {
			if (netif[''name''] && item[''name''] && netif[''name''].toLowerCase() == item[''name''].toLowerCase()) {
				interfaces[index][''name''] = item[''name''].toLowerCase();
				interfaces[index][''hardware''] = item;
			}
		});
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''interfaces'': interfaces,
	''error'': error_msg.toString()
});','0',''),
('103455','49734','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	pods = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected cookie value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	pods = getHttpData(
		url + ''api/'' + version + ''/pod'',
		creds.cookie
	);

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''pods'': pods,
	''error'': error_msg.toString()
});','0',''),
('103456','49735','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	volumes = {},
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url, cookie) {
	request.addHeader(''Cookie: '' + cookie);
	request.addHeader(''Accept: application/json'');
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response);
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''cookie''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected cookie value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	volumes = getHttpData(
		url + ''api/'' + version + ''/volume'',
		creds.cookie, {}
	);

	getHttpData(
		url + ''api/'' + version + ''/volume?space=true'',
		creds.cookie
	).forEach(function (item) {
		volumes.forEach(function (volume, index) {
			if (volume[''name''] && item[''name''] && volume[''name''] == item[''name'']) {
				volumes[index][''space''] = item;
			}
		});
	});

	getHttpData(
		url + ''api/'' + version + ''/volume?action=monitor'',
		creds.cookie
	).forEach(function (item) {
		volumes.forEach(function (volume, index) {
			if (volume[''name''] && item[''name''] && volume[''name''] == item[''name'']) {
				volumes[index][''monitor''] = item;
			}
		});
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''volumes'': volumes,
	''error'': error_msg.toString()
});','0',''),
('103457','49736','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	alerts = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	alerts = getHttpData(
		url + ''api/'' + version + ''/alerts''
	).filter(function (item) {
		if (item[''state''] == ''open'') {
			return true;
		}
		return false;
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''alerts'': alerts,
	''error'': error_msg.toString()
});','0',''),
('103458','49737','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	storage_array = {},
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
			if (Array.isArray(response) & response.length > 0) {
				response = response[0]
			}
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	storage_array = getHttpData(url + ''api/'' + version + ''/arrays'');

	storage_array[''performance''] = getHttpData(url + ''api/'' + version + ''/arrays/performance'');

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''array'': storage_array,
	''error'': error_msg.toString()
});','0',''),
('103459','49738','1','12','$.error','0',''),
('103460','49738','2','20','1h','0',''),
('103461','49739','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	certs = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	certs = getHttpData(url + ''api/'' + version + ''/certificates'');

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''certs'': certs,
	''error'': error_msg.toString()
});','0',''),
('103462','49740','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	drives = [],
	hardware = [],
	controllers = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	drives = getHttpData(url + ''api/'' + version + ''/drives'');

	controllers = getHttpData(url + ''api/'' + version + ''/controllers'');

	getHttpData(
		url + ''api/'' + version + ''/hardware''
	).forEach(function (item) {
		var applied = false;
		drives.forEach(function (drive, index) {
			if (drive[''name''] && item[''name''] && drive[''name''] == item[''name'']) {
				drives[index][''hardware''] = item;
				applied = true;
			}
		});
		controllers.forEach(function (ctrl, index) {
			if (ctrl[''name''] && item[''name''] && ctrl[''name''] == item[''name'']) {
				controllers[index][''hardware''] = item;
				applied = true;
			}
		});
		if (!applied) {
			var nameArray = item[''name''].split(''.'');
			if (nameArray.length > 1) {
				item[''parent''] = nameArray[0];
			}
			hardware.push(item);
		}
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''drives'': drives,
	''hardware'': hardware,
	''controllers'': controllers,
	''error'': error_msg.toString()
});','0',''),
('103463','49741','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	hosts = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	hosts = getHttpData(url + ''api/'' + version + ''/hosts'');

	getHttpData(
		url + ''api/'' + version + ''/hosts/performance''
	).forEach(function (item) {
		hosts.forEach(function (host, index) {
			if (host[''name''] && item[''name''] && host[''name''] == item[''name'']) {
				hosts[index][''performance''] = item;
			}
		});
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''hosts'': hosts,
	''error'': error_msg.toString()
});','0',''),
('103464','49742','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	interfaces = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	interfaces = getHttpData(url + ''api/'' + version + ''/network-interfaces'');

	getHttpData(
		url + ''api/'' + version + ''/network-interfaces/performance''
	).forEach(function (item) {
		interfaces.forEach(function (netif, index) {
			if (netif[''name''] && item[''name''] && netif[''name''] == item[''name'']) {
				interfaces[index][''performance''] = item[''eth''];
			}
		});
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''interfaces'': interfaces,
	''error'': error_msg.toString()
});','0',''),
('103465','49743','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	pods = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	pods = getHttpData(url + ''api/'' + version + ''/pods'');

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''pods'': pods,
	''error'': error_msg.toString()
});','0',''),
('103466','49744','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	support_data = {},
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
			if (Array.isArray(response) & response.length > 0) {
				response = response[0]
			}
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	support_data = getHttpData(url + ''api/'' + version + ''/support'');

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''support'': support_data,
	''error'': error_msg.toString()
});','0',''),
('103467','49745','1','21','try {
	var creds = JSON.parse(value);
}
catch (error) {
	throw ''Failed to parse authentication data from input value.'';
}

var request = new HttpRequest(),
	volumes = [],
	error_msg = '''',
	url = ''{$PURE.FLASHARRAY.API.URL}'',
	version = ''{$PURE.FLASHARRAY.API.VERSION}'',
	http_proxy = ''{$PURE.FLASHARRAY.HTTP_PROXY}'';

function getHttpData(url) {
	response = request.get(url);
	Zabbix.log(4, ''[ Pure Storage API ] [ '' + url + '' ] Received response with status code '' + request.getStatus() + '': '' + response);

	if (request.getStatus() !== 200) {
		throw ''Failed to receive data: invalid response status code.'';
	}

	if (response !== null) {
		try {
			response = JSON.parse(response)[''items''];
		}
		catch (error) {
			throw ''Failed to parse response received from Pure Storage API. Check debug log for more information.'';
		}
	}

	if (typeof response !== ''object'' || response === null) {
		throw ''Cannot process response data: received data is not an object.'';
	}

	return response;
};

try {

	[''token''].forEach(function (field) {
		if (creds[field] === null || creds[field] == '''' || typeof creds[field] === ''undefined'') {
			throw ''Unexpected session token value has been received''
			+ ((typeof creds.error !== ''undefined'' && creds.error != '''') ? '': '' + creds.error : '''');
		}
	});

	if (url === ''{'' + ''$PURE.FLASHARRAY.API.URL}'') {
		throw ''Please change {'' + ''$PURE.FLASHARRAY.API.URL} macro to the proper value.'';
	}

	if (url.indexOf(''http://'') === -1 && url.indexOf(''https://'') === -1) {
		url = ''https://'' + url + (!url.endsWith(''/'') ? ''/'' : '''');
	}

	if (http_proxy !== ''{'' + ''$PURE.FLASHARRAY.HTTP_PROXY}'' && http_proxy !== '''') {
		request.setProxy(http_proxy);
	}

	request.addHeader(''x-auth-token: '' + creds.token);
	request.addHeader(''Accept: application/json'');

	volumes = getHttpData(url + ''api/'' + version + ''/volumes'');

	getHttpData(
		url + ''api/'' + version + ''/volumes/performance''
	).forEach(function (item) {
		volumes.forEach(function (volume, index) {
			if (volume[''name''] && item[''name''] && volume[''name''] == item[''name'']) {
				volumes[index][''performance''] = item;
			}
		});
	});

} catch (err) {
	error_msg = err;
};

return JSON.stringify({
	''volumes'': volumes,
	''error'': error_msg.toString()
});','0',''),
('103468','49746','1','12','$.array.space.capacity','0',''),
('103469','49747','1','12','$.array.space.data_reduction','0',''),
('103470','49748','1','12','$.error','0',''),
('103471','49748','2','20','1h','0',''),
('103472','49749','1','12','$.array.space.hostname','0',''),
('103473','49749','2','20','1d','0',''),
('103474','49750','1','12','$.array.space.parity','0',''),
('103475','49750','2','1','100','0',''),
('103476','49751','1','12','$.array.monitor.output_per_sec','0',''),
('103477','49752','1','12','$.array.monitor.reads_per_sec','0',''),
('103478','49753','1','12','$.array.space.shared_space','0',''),
('103479','49754','1','12','$.array.space.snapshots','0',''),
('103480','49755','1','12','$.array.space.system','0',''),
('103481','49756','1','12','$.array.space.thin_provisioning','0',''),
('103482','49756','2','1','100','0',''),
('103483','49757','1','12','$.array.space.total_reduction','0',''),
('103484','49758','1','12','$.array.monitor.local_queue_usec_per_op','0',''),
('103485','49759','1','12','$.array.monitor.usec_per_read_op','0',''),
('103486','49760','1','12','$.array.monitor.usec_per_write_op','0',''),
('103487','49761','1','12','$.array.space.total','0',''),
('103488','49762','1','12','$.array.version','0',''),
('103489','49762','2','20','1d','0',''),
('103490','49763','1','12','$.array.space.volumes','0',''),
('103491','49764','1','12','$.array.monitor.writes_per_sec','0',''),
('103492','49765','1','12','$.array.monitor.input_per_sec','0',''),
('103493','49766','1','12','$.error','0',''),
('103494','49766','2','20','1h','0',''),
('103495','49767','1','12','$.error','0',''),
('103496','49767','2','20','1h','0',''),
('103497','49768','1','12','$.error','0',''),
('103498','49768','2','20','1h','0',''),
('103499','49769','1','12','$.error','0',''),
('103500','49769','2','20','1h','0',''),
('103501','49770','1','12','$.array.phone_home.status','0',''),
('103502','49770','2','21','const idx = [
	''disabled'',
	''enabled''
].indexOf(value);
return idx !== -1 ? idx : 2;','0',''),
('103503','49770','3','20','6h','0',''),
('103504','49771','1','12','$.error','0',''),
('103505','49771','2','20','1h','0',''),
('103506','49772','1','12','$.array.remote_assist.status','0',''),
('103507','49772','2','21','const idx = [
	''disconnected'',
	''connected''
].indexOf(value);
return idx !== -1 ? idx : 2;','0',''),
('103508','49772','3','20','6h','0',''),
('103509','49773','1','12','$.error','0',''),
('103510','49773','2','20','1h','0',''),
('103511','49774','1','12','$..[?(@.severity == "critical")].length()','0',''),
('103512','49775','1','12','$.error','0',''),
('103513','49775','2','20','1h','0',''),
('103514','49776','1','12','$..[?(@.severity == "warning")].length()','0',''),
('103515','49777','1','12','$.array.capacity','0',''),
('103516','49778','1','12','$.array.space.data_reduction','0',''),
('103517','49779','1','12','$.error','0',''),
('103518','49779','2','20','1h','0',''),
('103519','49780','1','12','$.array.name','0',''),
('103520','49780','2','20','1d','0',''),
('103521','49781','1','12','$.array.os','0',''),
('103522','49781','2','20','1d','0',''),
('103523','49782','1','12','$.array.parity','0',''),
('103524','49782','2','1','100','0',''),
('103525','49783','1','12','$.array.space.total_physical','0',''),
('103526','49784','1','12','$.array.performance.read_bytes_per_sec','0',''),
('103527','49785','1','12','$.array.performance.reads_per_sec','0',''),
('103528','49786','1','12','$.array.space.shared','0',''),
('103529','49787','1','12','$.array.space.snapshots','0',''),
('103530','49788','1','12','$.array.space.system','0',''),
('103531','49789','1','12','$.array.space.thin_provisioning','0',''),
('103532','49789','2','1','100','0',''),
('103533','49790','1','12','$.array.space.total_reduction','0',''),
('103534','49791','1','12','$.array.performance.local_queue_usec_per_op','0',''),
('103535','49792','1','12','$.array.performance.usec_per_read_op','0',''),
('103536','49793','1','12','$.array.performance.usec_per_write_op','0',''),
('103537','49794','1','12','$.array.space.total_used','1',''),
('103538','49795','1','12','$.array.version','0',''),
('103539','49795','2','20','1d','0',''),
('103540','49796','1','12','$.array.performance.writes_per_sec','0',''),
('103541','49797','1','12','$.array.performance.write_bytes_per_sec','0',''),
('103542','49798','1','12','$.error','0',''),
('103543','49798','2','20','1h','0',''),
('103544','49799','1','12','$.error','0',''),
('103545','49799','2','20','1h','0',''),
('103546','49800','1','12','$.error','0',''),
('103547','49800','2','20','1h','0',''),
('103548','49801','1','12','$.error','0',''),
('103549','49801','2','20','1h','0',''),
('103550','49802','1','12','$.support.phonehome_enabled','0',''),
('103551','49802','2','6','','0',''),
('103552','49802','3','20','6h','0',''),
('103553','49803','1','12','$.error','0',''),
('103554','49803','2','20','1h','0',''),
('103555','49804','1','12','$.support.remote_assist_active','0',''),
('103556','49804','2','6','','0',''),
('103557','49804','3','20','6h','0',''),
('103558','49805','1','12','$.error','0',''),
('103559','49805','2','20','1h','0',''),
('103560','49806','1','12','$.error','0',''),
('103561','49806','2','20','1h','0',''),
('103790','49953','1','20','1d','0',''),
('103791','49954','1','21','var version_num = parseInt(value, 10),
	result = [{
		''{#BELOW_V17}'': ''false'',
		''{#SINGLETON}'': ''''
	}];

if (version_num < 170000) {
	result[0][''{#BELOW_V17}''] = ''true'';
}

return JSON.stringify(result);','0',''),
('103832','49979','1','21',E'var parts = value.split('']]>]]>''),
	results = [],
	skipped_parts = [];

function cleanObject(obj) {
	if (Array.isArray(obj)) {
		return obj.map(cleanObject);
	} else if (typeof obj === ''object'' && obj !== null) {
		var cleaned_obj = {};
		for (var key in obj) {
			if (obj.hasOwnProperty(key)) {
				cleaned_obj[key] = cleanObject(obj[key]);
			}
		}
		return cleaned_obj;
	} else if (typeof obj === ''string'') {
		return obj.replace(/\\n/g, "");
	}
	return obj;
};

for (var i = 0; i < parts.length; i++) {
	var part = parts[i].trim();
	if (part) {
		if (part.startsWith(''<!--'') && part.endsWith(''-->'')) {
			skipped_parts.push({ skipped: ''comment in XML'', content: part });
			continue
		}

		try {
			results.push(JSON.parse(XML.toJson(part)));
		} catch (error) {
			results.push({ error: "Failed to parse XML response " + i, content: part });
		}
	}
};

results = cleanObject(results);

return JSON.stringify({ results, skipped_parts });','0',''),
('103833','49980','1','21',E'var parts = value.split('']]>]]>''),
	results = [],
	skipped_parts = [];

function cleanObject(obj) {
	if (Array.isArray(obj)) {
		return obj.map(cleanObject);
	} else if (typeof obj === ''object'' && obj !== null) {
		var cleaned_obj = {};
		for (var key in obj) {
			if (obj.hasOwnProperty(key)) {
				cleaned_obj[key] = cleanObject(obj[key]);
			}
		}
		return cleaned_obj;
	} else if (typeof obj === ''string'') {
		return obj.replace(/\\n/g, "");
	}
	return obj;
};

for (var i = 0; i < parts.length; i++) {
	var part = parts[i].trim();
	if (part) {
		if (part.startsWith(''<!--'') && part.endsWith(''-->'')) {
			skipped_parts.push({ skipped: ''comment in XML'', content: part });
			continue
		}

		try {
			results.push(JSON.parse(XML.toJson(part)));
		} catch (error) {
			results.push({ error: "Failed to parse XML response " + i, content: part });
		}
	}
};

results = cleanObject(results);

return JSON.stringify({ results, skipped_parts });','0',''),
('103834','49980','2','21','var data = JSON.parse(value),
	metrics = [],
	alarms = [],
	error;

function getField(data, path, default_value) {
	var steps = path.split(''.'');
	var step = steps.shift();

	while (typeof step !== ''undefined'') {
		if (typeof data === undefined || typeof data[step] === ''undefined'') {
			return default_value;
		}

		data = data[step];
		step = steps.shift();
	}
	return data;
};

var result = data.results[1];

if (typeof result[error] === undefined || result[''rpc-reply''] !== undefined) {

	var dom = getField(result, ''rpc-reply.interface-information.physical-interface'');

	dom.forEach(function (item) {
		var name = getField(item, ''name''),
			diagnostics = getField(item, ''optics-diagnostics''),
			lane_values = getField(diagnostics, ''optics-diagnostics-lane-values'');

		if (lane_values) {
			lane_values.forEach(function (lane) {
				metrics.push({
					name: name,
					lane_index: getField(lane, ''lane-index''),
					multi: 1,
					tx_power: getField(lane, ''laser-output-power-dbm''),
					rx_power: getField(lane, ''laser-rx-optical-power'')
				});

				alarms.push({
					name: name,
					lane_index: getField(lane, ''lane-index''),
					tx_loss_signal: getField(lane, ''tx-loss-of-signal-functionality-alarm''),
					tx_laser_disabled: getField(lane, ''tx-laser-disabled-alarm''),
					bias_high: getField(lane, ''laser-bias-current-high-alarm''),
					bias_low: getField(lane, ''laser-bias-current-low-alarm''),
					rx_loss_signal: getField(lane, ''rx-loss-of-signal-alarm''),
					rx_high: getField(lane, ''laser-rx-power-high-alarm''),
					rx_low: getField(lane, ''laser-rx-power-low-alarm''),
					voltage_high: getField(diagnostics, ''module-voltage-high-alarm''),
					voltage_low: getField(diagnostics, ''module-voltage-low-alarm''),
					temperature_high: getField(diagnostics, ''module-temperature-high-alarm''),
					temperature_low: getField(diagnostics, ''module-temperature-low-alarm'')
				});
			});
		} else {
			metrics.push({
				name: name,
				lane_index: 0,
				multi: 0,
				tx_power: getField(diagnostics, ''laser-output-power-dbm''),
				rx_power: getField(diagnostics, ''rx-signal-avg-optical-power-dbm'')
			});
			alarms.push({
				name: name,
				lane_index: 0,
				bias_high: getField(diagnostics, ''laser-bias-current-high-alarm''),
				bias_low: getField(diagnostics, ''laser-bias-current-low-alarm''),
				rx_high: getField(diagnostics, ''laser-rx-power-high-alarm''),
				rx_low: getField(diagnostics, ''laser-rx-power-low-alarm''),
				tx_high: getField(diagnostics, ''laser-tx-power-high-alarm''),
				tx_low: getField(diagnostics, ''laser-tx-power-low-alarm''),
				voltage_high: getField(diagnostics, ''module-voltage-high-alarm''),
				voltage_low: getField(diagnostics, ''module-voltage-low-alarm''),
				temperature_high: getField(diagnostics, ''module-temperature-high-alarm''),
				temperature_low: getField(diagnostics, ''module-temperature-low-alarm'')
			});
		}
	});
}
else {
	error = result.content;
};

return JSON.stringify({ metrics, alarms, error });','0',''),
('103835','49981','1','21',E'var parts = value.split('']]>]]>''),
	results = [],
	skipped_parts = [];

function cleanObject(obj) {
	if (Array.isArray(obj)) {
		return obj.map(cleanObject);
	} else if (typeof obj === ''object'' && obj !== null) {
		var cleaned_obj = {};
		for (var key in obj) {
			if (obj.hasOwnProperty(key)) {
				cleaned_obj[key] = cleanObject(obj[key]);
			}
		}
		return cleaned_obj;
	} else if (typeof obj === ''string'') {
		return obj.replace(/\\n/g, "");
	}
	return obj;
};

for (var i = 0; i < parts.length; i++) {
	var part = parts[i].trim();
	if (part) {
		if (part.startsWith(''<!--'') && part.endsWith(''-->'')) {
			skipped_parts.push({ skipped: ''comment in XML'', content: part });
			continue
		}

		try {
			results.push(JSON.parse(XML.toJson(part)));
		} catch (error) {
			results.push({ error: "Failed to parse XML response " + i, content: part });
		}
	}
};

results = cleanObject(results);

return JSON.stringify({ results, skipped_parts });','0',''),
('103836','49982','1','21',E'var parts = value.split('']]>]]>''),
	results = [],
	skipped_parts = [];

function cleanObject(obj) {
	if (Array.isArray(obj)) {
		return obj.map(cleanObject);
	} else if (typeof obj === ''object'' && obj !== null) {
		var cleaned_obj = {};
		for (var key in obj) {
			if (obj.hasOwnProperty(key)) {
				cleaned_obj[key] = cleanObject(obj[key]);
			}
		}
		return cleaned_obj;
	} else if (typeof obj === ''string'') {
		return obj.replace(/\\n/g, "");
	}
	return obj;
};

for (var i = 0; i < parts.length; i++) {
	var part = parts[i].trim();
	if (part) {
		if (part.startsWith(''<!--'') && part.endsWith(''-->'')) {
			skipped_parts.push({ skipped: ''comment in XML'', content: part });
			continue
		}

		try {
			results.push(JSON.parse(XML.toJson(part)));
		} catch (error) {
			results.push({ error: "Failed to parse XML response " + i, content: part });
		}
	}
};

results = cleanObject(results);

return JSON.stringify({ results, skipped_parts });','0',''),
('103837','49983','1','12','$.results..["rpc-reply"]["alarm-information"]','0',''),
('103838','49984','1','12','$.results..["rpc-reply"]["bgp-information-logical-system-all"]["logical-system"].first()','0',''),
('103839','49984','2','21','var data = JSON.parse(value),
	bgp = [],
	bgp_peers = [],
	bgp_rib = [];

function getField(data, path, default_value) {
	var steps = path.split(''.'');
	var step = steps.shift();

	while (typeof step !== ''undefined'') {
		if (typeof data === undefined || typeof data[step] === ''undefined'') {
			return default_value;
		}

		data = data[step];
		step = steps.shift();
	}
	return data;
};

data.forEach(function (item) {
	var name = getField(item, ''name''),
		bgp_information = getField(item, ''bgp-information'', {}),
		bgp_peer = getField(bgp_information, ''bgp-peer'', {}),
		bgp_peer = Array.isArray(bgp_peer) ? bgp_peer : [bgp_peer],
		output = getField(item, ''output'');

	if (bgp_peer && output !== "BGP is not running") {
		bgp_peer.forEach(function (peer) {
			var peer_rib = getField(peer, ''bgp-rib'', {});
			var peer_rib = Array.isArray(peer_rib) ? peer_rib : [peer_rib];
			bgp_peers.push({
				router_name: name,
				peer_address: getField(peer, ''peer-address''),
				peer_as: getField(peer, ''peer-as''),
				elapsed_time: getField(peer, ''elapsed-time.@seconds''),
				flap_count: getField(peer, ''flap-count''),
				bgp_thread_mode: getField(bgp_information, ''bgp-thread-mode''),
				peer_state: getField(peer, ''peer-state.#text'')
			});
			peer_rib.forEach(function (rib) {
				bgp_rib.push({
					router_name: name,
					name: getField(rib, ''name''),
					peer_address: getField(peer, ''peer-address''),
					peer_as: getField(peer, ''peer-as''),
					suppressed: getField(rib, ''suppressed-prefix-count''),
					received: getField(rib, ''received-prefix-count''),
					active: getField(rib, ''active-prefix-count''),
					accepted: getField(rib, ''accepted-prefix-count'')
				});
			});

		});
		bgp.push({
			router_name: name,
			down_peer_count: getField(bgp_information, ''down-peer-count''),
			peer_count: getField(bgp_information, ''peer-count''),
			bgp_thread_mode: getField(bgp_information, ''bgp-thread-mode'')
		});
	}
});

return JSON.stringify({ bgp, bgp_peers, bgp_rib });','0',''),
('103840','49985','1','12','$.results..content.first()','2',''),
('103841','49985','2','20','3h','0',''),
('103842','49986','1','12','$.error','2',''),
('103843','49986','2','20','3h','0',''),
('103844','49987','1','12','$.results..["rpc-reply"]["fan-information"]["fan-information-percent-rpm-item"].first()','0',''),
('103845','49988','1','12','$.results..["rpc-reply"]["fpc-information"]["fpc"]','0',''),
('103846','49988','2','21','var data = JSON.parse(value);

function mergeSlot(input) {
	var result = [],
		slot_map = {},
		arrays = Array.isArray(input[0]) ? input : [input];

	arrays.forEach(function (array) {
		array.forEach(function (obj) {
			var slot = obj.slot;
			if (!slot_map.hasOwnProperty(slot)) {
				slot_map[slot] = {};
			}

			Object.keys(obj).forEach(function (key) {
				if (key !== ''slot'') {
					slot_map[slot][key] = obj[key];
				}
			});

			slot_map[slot][''slot''] = slot;
		});
	});

	Object.keys(slot_map).forEach(function (key) {
		result.push(slot_map[key]);
	});

	return result;
};

var mergedData = mergeSlot(data);

return JSON.stringify(mergedData);','0',''),
('103847','49989','1','12','$.results..content.first()','2',''),
('103848','49989','2','20','3h','0',''),
('103849','49990','1','21','var data = JSON.parse(value),
	ospf = [],
	ospf3 = [];

function getField(data, path, default_value) {
	var steps = path.split(''.'');
	var step = steps.shift();

	while (typeof step !== ''undefined'') {
		if (typeof data === undefined || typeof data[step] === ''undefined'') {
			return default_value;
		}

		data = data[step];
		step = steps.shift();
	}
	return data;
};

var ospf_data = getField(data, ''results.2.rpc-reply.ospf-neighbor-information-logical-system-all.logical-system'', {});
var ospf3_data = getField(data, ''results.3.rpc-reply.ospf3-neighbor-information-logical-system-all.logical-system'', {});

ospf_data.forEach(function (item) {
	var name = getField(item, ''name''),
		ospf_information = getField(item, ''ospf-neighbor-information'', {}),
		ospf_neighbor = getField(ospf_information, ''ospf-neighbor'', {}),
		ospf_neighbor = Array.isArray(ospf_neighbor) ? ospf_neighbor : [ospf_neighbor],
		output = getField(item, ''output'');

	if (ospf_neighbor && output !== "OSPF instance is not running") {
		ospf_neighbor.forEach(function (neighbor) {
			ospf.push({
				router_name: name,
				neighbor_address: getField(neighbor, ''neighbor-address''),
				interface_name: getField(neighbor, ''interface-name''),
				uptime: getField(neighbor, ''neighbor-up-time.@seconds''),
				neighbor_state: getField(neighbor, ''ospf-neighbor-state''),
			});
		});
	}
});

ospf3_data.forEach(function (item) {
	var name = getField(item, ''name''),
		ospf_information = getField(item, ''ospf3-neighbor-information'', {}),
		ospf_neighbor = getField(ospf_information, ''ospf3-neighbor'', {}),
		ospf_neighbor = Array.isArray(ospf_neighbor) ? ospf_neighbor : [ospf_neighbor],
		output = getField(item, ''output'');

	if (ospf_neighbor && output !== "OSPF instance is not running") {
		ospf_neighbor.forEach(function (neighbor) {
			ospf3.push({
				router_name: name,
				neighbor_address: getField(neighbor, ''neighbor-address''),
				interface_name: getField(neighbor, ''interface-name''),
				uptime: getField(neighbor, ''neighbor-up-time.@seconds''),
				neighbor_state: getField(neighbor, ''ospf-neighbor-state''),
			});
		});
	}
});

return JSON.stringify({ ospf, ospf3 });','0',''),
('103850','49991','1','12','$.results..["rpc-reply"]["environment-component-information"]["environment-component-item"].first()','0',''),
('103851','49992','1','12','$.results..content.first()','2',''),
('103852','49992','2','20','3h','0',''),
('103853','49993','1','12','$.results..["rpc-reply"]["route-engine-information"]["route-engine"]','0',''),
('103854','49993','2','21','var data = JSON.parse(value);

function addSlot(arr) {
	for (var i = 0; i < arr.length; i++) {
		if (!arr[i].hasOwnProperty(''slot'')) {
			arr[i][''slot''] = ''0'';
		}
	}
	return arr;
}

data = addSlot(data);

return JSON.stringify(data);','0',''),
('103855','49994','1','12','$.results..["rpc-reply"]["system-storage-information"]["filesystem"].first()','0',''),
('103856','49995','1','12','$.results..["rpc-reply"]["environment-information"]["environment-item"].first()','0',''),
('103857','49995','2','21','var data = JSON.parse(value);

function addClass(arr) {
	for (var i = 0; i < arr.length; i++) {
		if (!arr[i].hasOwnProperty(''class'')) {
			arr[i][''class''] = ''Unknown'';
		}
	}
	return arr;
}

data = addClass(data);

return JSON.stringify(data);','0',''),
('104148','50224','1','20','1h','0',''),
('104163','50239','1','20','1h','0',''),
('106222','28248','1','12','$.data.queue','0',''),
('106223','28249','1','12','$.data.queue','0',''),
('106224','51787','1','12','$.data.preprocessing.queued.size','1',''),
('106225','51787','2','10','','0',''),
('106226','51788','1','12','$.data.queued.size','0',''),
('106227','51788','2','10','','0',''),
('106228','51789','1','12','$.data.preprocessing.queued.size','1',''),
('106229','51789','2','10','','0',''),
('106230','51790','1','12','$.data.preprocessing.queued.size','1',''),
('106231','51790','2','10','','0',''),
('106232','51791','1','12','$.data.queued.size','0',''),
('106233','51791','2','10','','0',''),
('106759','52114','1','12','$.health.summary','1',''),
('106760','52114','2','20','1h','0',''),
('106761','52115','1','12','$.health.availabilityState','2','3'),
('106762','52115','2','25','Available
0','0',''),
('106763','52115','3','25','Degraded
1','0',''),
('106764','52115','4','25','Unavailable
2','0',''),
('106765','52115','5','25','Unknown
3','0',''),
('106766','52115','6','13','0
3','2','3'),
('106767','52115','7','20','1h','0',''),
('106768','52116','1','12','$.error','2',''),
('106769','52116','2','20','1h','0',''),
('106770','52117','1','12','$.jobs[?(@.properties.operation == "Backup")].length()','0',''),
('106771','52118','1','12','$.jobs[?(@.properties.operation == "ConfigureBackup")].length()','0',''),
('106772','52119','1','12','$.jobs[?(@.properties.operation == "DeleteBackupData")].length()','0',''),
('106773','52120','1','12','$.jobs[?(@.properties.status == "Cancelled")].length()','0',''),
('106774','52121','1','12','$.jobs[?(@.properties.status == "Completed")].length()','0',''),
('106775','52122','1','12','$.jobs[?(@.properties.status == "Failed")].length()','0',''),
('106776','52123','1','12','$.jobs[?(@.properties.status == "InProgress")].length()','0',''),
('106777','52124','1','12','$.jobs[?(@.properties.operation == "Restore")].length()','0',''),
('106778','52125','1','12','$.jobs.length()','0',''),
('106779','52126','1','12','$.jobs[?(@.properties.status == "CompletedWithWarnings")].length()','0',''),
('117745','59365','1','20','1h','0',''),
('117746','59366','1','20','1h','0',''),
('117747','59367','1','20','1h','0',''),
('117748','59368','1','12','$.items[0]','3','Could not parse resource status data'),
('117749','59369','1','12','$[?(@.id == "{#ALERT_ID}")].severity.first()','3','Could not find alert severity'),
('117750','59369','2','21','const idx = [
	''ok'',
	''warning'',
	''error'',
	''critical'',
	''information''
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('117751','59369','3','20','1h','0',''),
('117752','59370','1','12','$[?(@.name == "{#NAME}")].enabled.first()','3','Could not find customer status'),
('117753','59370','2','6','','0',''),
('117754','59370','3','20','1h','0',''),
('117755','59371','1','12','$.context.attributes.[?(@.name == "agent")].kvs.[?(@.key == "enabled")].value.first()','3','Could not parse agent status'),
('117756','59371','2','20','1h','0',''),
('117757','59372','1','12','$.context.attributes.[?(@.name == "agent")].kvs.[?(@.key == "is_online")].value.first()','3','Could not parse agent reachability status'),
('117758','59372','2','20','1h','0',''),
('117759','59373','1','12','$.context.attributes.[?(@.name == "agent")].kvs.[?(@.key == "version")].value.first()','3','Could not parse agent version'),
('117760','59373','2','20','1h','0',''),
('117761','59374','1','12','$.policies.[?(@.type == "policy.backup.machine")].next_run.first()','1',''),
('117762','59374','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117763','59374','3','20','1h','0',''),
('117764','59375','1','12','$.policies.[?(@.type == "policy.backup.machine")].last_success_run.first()','1',''),
('117765','59375','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117766','59375','3','20','1h','0',''),
('117767','59376','1','12','$.policies.[?(@.type == "policy.backup.machine")].last_run.first()','1',''),
('117768','59376','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117769','59376','3','20','1h','0',''),
('117770','59377','1','12','$.context.attributes.[?(@.name == "cyberfit")].details.[?(@.key == "cyberfit_score_value")].value.first()','2','-1'),
('117771','59377','2','20','1h','0',''),
('117772','59378','1','12','$.policies.[?(@.type == "policy.security.patch_management")].next_run.first()','1',''),
('117773','59378','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117774','59378','3','20','1h','0',''),
('117775','59379','1','12','$.policies.[?(@.type == "policy.security.patch_management")].last_success_run.first()','1',''),
('117776','59379','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117777','59379','3','20','1h','0',''),
('117778','59380','1','12','$.policies.[?(@.type == "policy.security.patch_management")].last_run.first()','1',''),
('117779','59380','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117780','59380','3','20','1h','0',''),
('117781','59381','1','12','$.aggregate.names','3','Could not parse protection plan name'),
('117782','59381','2','20','1h','0',''),
('117783','59382','1','12','$.policies.[?(@.type == "policy.security.antimalware_protection")].next_run.first()','1',''),
('117784','59382','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117785','59382','3','20','1h','0',''),
('117786','59383','1','12','$.policies.[?(@.type == "policy.security.antimalware_protection")].last_success_run.first()','1',''),
('117787','59383','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117788','59383','3','20','1h','0',''),
('117789','59384','1','12','$.policies.[?(@.type == "policy.security.antimalware_protection")].last_run.first()','1',''),
('117790','59384','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117791','59384','3','20','1h','0',''),
('117792','59385','1','12','$.aggregate.status','3','Could not parse protection status'),
('117793','59385','2','20','1h','0',''),
('117794','59386','1','12','$.policies.[?(@.type == "policy.security.vulnerability_assessment")].next_run.first()','1',''),
('117795','59386','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117796','59386','3','20','1h','0',''),
('117797','59387','1','12','$.policies.[?(@.type == "policy.security.vulnerability_assessment")].last_success_run.first()','1',''),
('117798','59387','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117799','59387','3','20','1h','0',''),
('117800','59388','1','12','$.policies.[?(@.type == "policy.security.vulnerability_assessment")].last_run.first()','1',''),
('117801','59388','2','21','return Math.floor(Date.parse(value) / 1000);','0',''),
('117802','59388','3','20','1h','0',''),
('117803','59391','1','20','3h','0',''),
('117804','59392','1','20','1h','0',''),
('117805','59394','1','20','1h','0',''),
('117806','59396','1','20','1h','0',''),
('117807','59399','1','10','','0',''),
('117808','59400','1','10','','0',''),
('117809','59402','1','1','0.001','0',''),
('117810','59403','1','13','0
{$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH}','2','{$ACTIVEMQ.BROKER.CONSUMERS.MIN.HIGH}'),
('117811','59403','2','20','3h','0',''),
('117812','59404','1','13','0
{$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH}','2','{$ACTIVEMQ.BROKER.PRODUCERS.MIN.HIGH}'),
('117813','59404','2','20','3h','0',''),
('117814','59406','1','10','','0',''),
('117815','59407','1','10','','0',''),
('117816','59408','1','20','3h','0',''),
('117817','59412','1','21','return JSON.stringify(JSON.parse(value).ServerMPM === ''event''
	? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('117818','59412','2','20','3h','0',''),
('117819','59415','1','12','$.BytesPerReq','0',''),
('117820','59416','1','12','$.ConnsAsyncClosing','0',''),
('117821','59417','1','12','$.ConnsAsyncKeepAlive','0',''),
('117822','59418','1','12','$.ConnsAsyncWriting','0',''),
('117823','59419','1','12','$.ConnsTotal','0',''),
('117824','59420','1','12','$.Processes','0',''),
('117825','59421','1','12','$.[?(@["name"]=="{#APACHE.NAME}")].first()','2','Failed to retrieve process {#APACHE.NAME} data'),
('117826','59422','1','12','$.processes','2','0'),
('117827','59422','2','20','1h','0',''),
('117828','59423','1','12','$.pmem','1',''),
('117829','59424','1','12','$.rss','1',''),
('117830','59425','1','12','$.vsize','1',''),
('117831','59426','1','21','return JSON.stringify(JSON.parse(value).ServerMPM === ''event''
	? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('117832','59426','2','20','3h','0',''),
('117833','59429','1','12','$.BytesPerReq','0',''),
('117834','59430','1','12','$.ConnsAsyncClosing','0',''),
('117835','59431','1','12','$.ConnsAsyncKeepAlive','0',''),
('117836','59432','1','12','$.ConnsAsyncWriting','0',''),
('117837','59433','1','12','$.ConnsTotal','0',''),
('117838','59434','1','12','$.Processes','0',''),
('117839','59435','1','12','$.[?(@["name"]=="{#APACHE.NAME}")].first()','2','Failed to retrieve process {#APACHE.NAME} data'),
('117840','59436','1','12','$.processes','2','0'),
('117841','59436','2','20','1h','0',''),
('117842','59437','1','12','$.pmem','1',''),
('117843','59438','1','12','$.rss','1',''),
('117844','59439','1','12','$.vsize','1',''),
('117845','59440','1','21','return JSON.stringify(JSON.parse(value).ServerMPM === ''event''
	? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('117846','59440','2','20','3h','0',''),
('117847','59441','1','12','$.BytesPerReq','0',''),
('117848','59442','1','12','$.ConnsAsyncClosing','0',''),
('117849','59443','1','12','$.ConnsAsyncKeepAlive','0',''),
('117850','59444','1','12','$.ConnsAsyncWriting','0',''),
('117851','59445','1','12','$.ConnsTotal','0',''),
('117852','59446','1','12','$.Processes','0',''),
('117853','59468','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117854','59469','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117855','59470','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117856','59471','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117857','59472','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117858','59473','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117859','59474','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117860','59475','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117861','59475','2','21','return Math.floor(Date.now()/1000 - Number(value));','0',''),
('117862','59476','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117863','59477','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117864','59478','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117865','59479','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117866','59480','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117867','59481','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117868','59482','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117869','59483','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117870','59484','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117871','59485','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117872','59486','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117873','59487','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117874','59488','1','12','$[?(@.id == "{#SENSOR_ID}" && @.name == "{#SENSOR_NAME}")].metrics[?(@.name == "{#METRIC}")].value.first()','0',''),
('117875','59491','1','12','$.osds.{#OSDNAME}.osd_fill','1',''),
('117876','59492','1','12','$.osds.{#OSDNAME}.in','0',''),
('117877','59492','2','20','10m','0',''),
('117878','59493','1','12','$.osds.{#OSDNAME}.osd_latency_apply','1',''),
('117879','59494','1','12','$.osds.{#OSDNAME}.osd_latency_commit','1',''),
('117880','59495','1','12','$.osds.{#OSDNAME}.num_pgs','1',''),
('117881','59496','1','12','$.osds.{#OSDNAME}.up','0',''),
('117882','59496','2','20','10m','0',''),
('117883','59497','1','12','$.pools["{#POOLNAME}"].bytes_used','0',''),
('117884','59498','1','12','$.pools["{#POOLNAME}"].max_avail','0',''),
('117885','59499','1','12','$.pools["{#POOLNAME}"].objects','0',''),
('117886','59500','1','12','$.pools["{#POOLNAME}"].percent_used','0',''),
('117887','59501','1','12','$.pools["{#POOLNAME}"].rd_bytes','0',''),
('117888','59501','2','10','','0',''),
('117889','59502','1','12','$.pools["{#POOLNAME}"].rd_ops','0',''),
('117890','59502','2','10','','0',''),
('117891','59503','1','12','$.pools["{#POOLNAME}"].stored_raw','0',''),
('117892','59504','1','12','$.pools["{#POOLNAME}"].wr_bytes','0',''),
('117893','59504','2','10','','0',''),
('117894','59505','1','12','$.pools["{#POOLNAME}"].wr_ops','0',''),
('117895','59505','2','10','','0',''),
('117896','59506','1','12','$.data','0',''),
('117897','59507','1','20','6h','0',''),
('117898','59508','1','12','$.x509.alternative_names','0',''),
('117899','59509','1','12','$.x509.issuer','0',''),
('117900','59510','1','12','$.result.message','0',''),
('117901','59511','1','12','$.x509.not_after.timestamp','0',''),
('117902','59512','1','12','$.x509.not_before.timestamp','0',''),
('117903','59513','1','12','$.x509.public_key_algorithm','0',''),
('117904','59514','1','12','$.x509.serial_number','0',''),
('117905','59515','1','12','$.sha1_fingerprint','0',''),
('117906','59516','1','12','$.x509.signature_algorithm','0',''),
('117907','59517','1','12','$.x509.subject','0',''),
('117908','59518','1','12','$.result.value','0',''),
('117909','59519','1','12','$.x509.version','0',''),
('117910','59520','1','12','$.data','0',''),
('117911','59521','1','20','6h','0',''),
('117912','59522','1','12','$.x509.alternative_names','0',''),
('117913','59523','1','12','$.x509.issuer','0',''),
('117914','59524','1','12','$.result.message','0',''),
('117915','59525','1','12','$.x509.not_after.timestamp','0',''),
('117916','59526','1','12','$.x509.not_before.timestamp','0',''),
('117917','59527','1','12','$.x509.public_key_algorithm','0',''),
('117918','59528','1','12','$.x509.serial_number','0',''),
('117919','59529','1','12','$.sha1_fingerprint','0',''),
('117920','59530','1','12','$.x509.signature_algorithm','0',''),
('117921','59531','1','12','$.x509.subject','0',''),
('117922','59532','1','12','$.result.value','0',''),
('117923','59533','1','12','$.x509.version','0',''),
('117924','59534','1','23','consul_api_http{method =~ ".*"}','1',''),
('117925','59534','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var http_method = item.labels.method;
	if (!(lookup[http_method])) {
		lookup[http_method] = 1;
		result.push({ "{#HTTP_METHOD}": http_method });
	}
})

return JSON.stringify(result);','0',''),
('117926','59534','3','20','3h','0',''),
('117927','59535','1','21','var data = JSON.parse(value),
	result = [];

if (data.length === 0) {
	return ''[]''
};
data.forEach(function (service) {

	result.push({
		''{#TYPE}'': ''aggregated_status'',
		''{#SERVICE_NAME}'': service.name,
		''{#SERVICE_ID}'': service.id,
		''{#SERVICE_NAMESPACE}'': service.namespace
	});

	if (service[''checks''] !== 0) {
		service[''checks''].forEach(function (check) {
			result.push({
				''{#TYPE}'': ''service_check'',
				''{#SERVICE_NAME}'': service.name,
				''{#SERVICE_ID}'': service.id,
				''{#SERVICE_NAMESPACE}'': service.namespace,
				''{#SERVICE_CHECK_ID}'': check["CheckID"],
				''{#SERVICE_CHECK_NAME}'': check["Name"]
			});
		});
	}

});

return JSON.stringify(result)','0',''),
('117928','59535','2','20','3h','0',''),
('117929','59536','1','21','return JSON.stringify(JSON.parse(value)["Stats"]["leader"] === true
	? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('117930','59536','2','20','3h','0',''),
('117931','59537','1','21','return JSON.stringify(JSON.parse(value)["Config"]["Server"] === true
	? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('117932','59537','2','20','3h','0',''),
('117933','59538','1','22','consul_api_http{method = "{#HTTP_METHOD}", quantile = "0.5"}
function
sum','1',''),
('117934','59539','1','22','consul_api_http{method = "{#HTTP_METHOD}", quantile = "0.9"}
function
sum','1',''),
('117935','59540','1','22','consul_api_http_count{method = "{#HTTP_METHOD}"}
function
sum','1',''),
('117936','59540','2','10','','0',''),
('117937','59541','1','12','$[?(@.id == "{#SERVICE_ID}")].status.first()','0',''),
('117938','59541','2','21','var state = [''passing'', ''warning'', ''critical''];

return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim());','0',''),
('117939','59541','3','20','3h','0',''),
('117940','59542','1','12','$[?(@.id == "{#SERVICE_ID}")].checks[?(@.CheckID == "{#SERVICE_CHECK_ID}")].Output.first()','0',''),
('117941','59542','2','20','3h','0',''),
('117942','59543','1','12','$[?(@.id == "{#SERVICE_ID}")].checks[?(@.CheckID == "{#SERVICE_CHECK_ID}")].Status.first()','0',''),
('117943','59543','2','21','var state = [''passing'', ''warning'', ''critical''];

return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim());','0',''),
('117944','59543','3','20','3h','0',''),
('117945','59544','1','22','consul_autopilot_healthy
value
','1',''),
('117946','59545','1','22','consul_raft_commitTime{quantile="0.5"}
value
','1',''),
('117947','59545','2','21','return (isNaN(value)) ? 0 : value;','0',''),
('117948','59546','1','22','consul_raft_commitTime{quantile="0.9"}
value
','1',''),
('117949','59546','2','21','return (isNaN(value)) ? 0 : value;','0',''),
('117950','59547','1','22','consul_raft_commitTime_count
value
','1',''),
('117951','59547','2','10','','0',''),
('117952','59548','1','22','consul_raft_leader_dispatchLog{quantile="0.5"}
value
','1',''),
('117953','59548','2','21','return (isNaN(value)) ? 0 : value;','0',''),
('117954','59549','1','22','consul_raft_leader_dispatchLog{quantile="0.9"}
value
','1',''),
('117955','59549','2','21','return (isNaN(value)) ? 0 : value;','0',''),
('117956','59550','1','22','consul_raft_leader_dispatchLog_count
value
','1',''),
('117957','59550','2','10','','0',''),
('117958','59551','1','22','consul_raft_leader_lastContact{quantile="0.5"}
value
','1',''),
('117959','59551','2','21','return (isNaN(value)) ? 0 : value;','0',''),
('117960','59552','1','22','consul_raft_leader_lastContact{quantile="0.9"}
value
','1',''),
('117961','59552','2','21','return (isNaN(value)) ? 0 : value;','0',''),
('117962','59553','1','22','consul_raft_apply
value
','1',''),
('117963','59553','2','10','','0',''),
('117964','59554','1','12','$.Stats.raft.state','0',''),
('117965','59554','2','20','3h','0',''),
('117966','59555','1','22','consul_raft_state_candidate
value
','1',''),
('117967','59556','1','22','consul_raft_state_leader
value
','1',''),
('117968','59557','1','21','var data = JSON.parse(value),
	consul_api_scheme = ''{$CONSUL.API.SCHEME}'',
	consul_api_port = ''{$CONSUL.API.PORT}'',
	result = [];

data.forEach(function (instance) {
	if (instance["ID"] != '''') {
		result.push({
			''{#NODE_NAME}'': instance["Node"],
			''{#NODE_ADDRESS}'': instance["Address"],
			''{#NODE_API_URL}'': consul_api_scheme + ''://'' + instance["Address"] + '':'' + consul_api_port,
			''{#NODE_DATACENTER}'': instance["Datacenter"]
		});
	}
});

return JSON.stringify(result);','0',''),
('117969','59557','2','20','3h','0',''),
('117970','59558','1','21','var data = [];

Object.keys(JSON.parse(value)).forEach(function (v) {
	data.push({ ''{#SERVICE_NAME}'': v })
});

return JSON.stringify(data);','0',''),
('117971','59558','2','20','3h','0',''),
('117972','59559','1','26','-1','1',''),
('117973','59560','1','12','$[?(@.Node == "{#NODE_NAME}" && @.CheckID == "serfHealth")].Status.first()','0',''),
('117974','59560','2','21','var state = [''passing'', ''warning'', ''critical''];

return state.indexOf(value.trim()) === -1 ? 255 : state.indexOf(value.trim());','0',''),
('117975','59560','3','20','3h','0',''),
('117976','59561','1','12','$[?(@.Service.Service == "{#SERVICE_NAME}")].Checks[?(@.CheckID == "serfHealth" && @.Status == ''critical'')].length()','0',''),
('117977','59561','2','20','3h','0',''),
('117978','59562','1','12','$[?(@.Service.Service == "{#SERVICE_NAME}")].Checks[?(@.CheckID == "serfHealth" && @.Status == ''passing'')].length()','0',''),
('117979','59562','2','20','3h','0',''),
('117980','59563','1','12','$[?(@.Service.Service == "{#SERVICE_NAME}")].Checks[?(@.CheckID == "serfHealth" && @.Status == ''warning'')].length()','0',''),
('117981','59563','2','20','3h','0',''),
('117982','59564','1','20','2h','0',''),
('117983','59565','1','12','$.activeServices','2','[]'),
('117984','59565','2','20','1h','0',''),
('117985','59566','1','12','$.agents','2','[]'),
('117986','59566','2','20','1h','0',''),
('117987','59567','1','12','$.statuses','2','[]'),
('117988','59567','2','20','1h','0',''),
('117989','59568','1','12','$.activeServices.[?(@.serviceName == ''{#SERVICE.NAME}'')]','1',''),
('117990','59568','2','12','$.[?(@.serviceJob == ''{#SERVICE.JOB}'')].first()','1',''),
('117991','59569','1','12','$.agents.[?(@.nodeid == ''{#AGENT.NAME}'')].first()','1',''),
('117992','59570','1','12','$.statuses.[?(@.jobId == ''{#JOB.ID}'')].first()','1',''),
('117993','59571','1','12','$.statusByJobs.completed','0',''),
('117994','59571','2','20','1h','0',''),
('117995','59572','1','12','$.statusByJobs.error','0',''),
('117996','59572','2','20','1h','0',''),
('117997','59573','1','12','$.statusByJobs.executed','0',''),
('117998','59573','2','20','1h','0',''),
('117999','59574','1','12','$.statusByJobs.waitCondition','0',''),
('118000','59574','2','20','1h','0',''),
('118001','59575','1','12','$.statusByJobs.waitHost','0',''),
('118002','59575','2','20','1h','0',''),
('118003','59576','1','12','$.statusByJobs.waitResource','0',''),
('118004','59576','2','20','1h','0',''),
('118005','59577','1','12','$.statusByJobs.waitWorkload','0',''),
('118006','59577','2','20','1h','0',''),
('118007','59578','1','12','$.status','0',''),
('118008','59578','2','21','const idx = [
	''Not Ok'',
	''Ok'',
	''Completed Ok'',
	''Ended Late''
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('118009','59578','3','20','1h','0',''),
('118010','59579','1','12','$.status','0',''),
('118011','59579','2','21','const idx = [
	''Available'',
	''Unavailable'',
	''Disabled'',
	''Disable'',
	''Discovering'',
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('118012','59579','3','20','1h','0',''),
('118013','59580','1','12','$.version','2','Unknown'),
('118014','59580','2','20','1h','0',''),
('118015','59581','1','12','$.held','0',''),
('118016','59581','2','21','const idx = [
	''false'',
	''true'',
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('118017','59582','1','12','$.numberOfRuns','0',''),
('118018','59582','2','20','1h','0',''),
('118019','59583','1','12','$.status','0',''),
('118020','59583','2','21','const idx = [
	''Ended OK'',
	''Ended Not OK'',
	''Wait User'',
	''Wait Resource'',
	''Wait Host'',
	''Wait Workload'',
	''Wait Condition'',
	''Executing''
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('118021','59583','3','20','1h','0',''),
('118022','59584','1','12','$.type','0',''),
('118023','59584','2','21','const idx = [
	''Command'',
	''Script'',
	''File Transfer'',
	''File Watcher'',
	''Database'',
	''Hadoop'',
	''Dummy'',
	''Folder'',
	''Job''
].indexOf(value);
return idx !== -1 ? idx : 10;','0',''),
('118024','59584','3','20','1h','0',''),
('118025','59589','1','21','var input = JSON.parse(value);
  return truncatedTimestamp = Math.floor(Date.parse(input.Created) / 1000) || -1;','0',''),
('118026','59589','2','20','1d','0',''),
('118027','59590','1','21','var input = JSON.parse(value);
  return truncatedTimestamp = Math.floor(Date.parse(input.State.FinishedAt) / 1000) || -1;','0',''),
('118028','59590','2','20','1d','0',''),
('118029','59591','1','12','$[?(@.Names[0] == "{#NAME}")].Image.first()','0',''),
('118030','59591','2','20','1d','0',''),
('118031','59592','1','12','$.RestartCount','0',''),
('118032','59593','1','21','var input = JSON.parse(value);
  return truncatedTimestamp = Math.floor(Date.parse(input.State.StartedAt) / 1000) || -1;','0',''),
('118033','59593','2','20','1d','0',''),
('118034','59594','1','12','$.State.Dead','0',''),
('118035','59594','2','6','','0',''),
('118036','59595','1','12','$.State.Error','0',''),
('118037','59595','2','20','1d','0',''),
('118038','59596','1','12','$.State.ExitCode','0',''),
('118039','59596','2','20','1d','0',''),
('118040','59597','1','12','$.State.Health.FailingStreak','1',''),
('118041','59597','2','20','1h','0',''),
('118042','59598','1','21','var input = JSON.parse(value);
if (typeof input.State.Health !== ''object'' || typeof input.State.Health === ''undefined'') {
  return 4;
}
  return ([''starting'', ''unhealthy'', ''healthy'', ''none''].indexOf(input.State.Health.Status) + 1);','0',''),
('118043','59598','2','13','1
4','2','4'),
('118044','59599','1','12','$.State.OOMKilled','0',''),
('118045','59599','2','6','','0',''),
('118046','59600','1','12','$.State.Paused','0',''),
('118047','59600','2','6','','0',''),
('118048','59601','1','12','$.State.Pid','0',''),
('118049','59601','2','20','1d','0',''),
('118050','59602','1','12','$.State.Restarting','0',''),
('118051','59602','2','6','','0',''),
('118052','59603','1','12','$.State.Running','0',''),
('118053','59603','2','6','','0',''),
('118054','59604','1','12','$.State.Status','0',''),
('118055','59604','2','20','1h','0',''),
('118056','59605','1','12','$.cpu_stats.cpu_usage.percent_usage','0',''),
('118057','59606','1','12','$.cpu_stats.cpu_usage.usage_in_kernelmode','0',''),
('118058','59606','2','10','','0',''),
('118059','59606','3','1','1.0E-9','0',''),
('118060','59607','1','12','$.cpu_stats.throttling_data.throttled_periods','0',''),
('118061','59608','1','12','$.cpu_stats.throttling_data.throttled_time','0',''),
('118062','59608','2','1','1.0E-9','0',''),
('118063','59609','1','12','$.cpu_stats.throttling_data.periods','0',''),
('118064','59610','1','12','$.cpu_stats.cpu_usage.total_usage','0',''),
('118065','59610','2','10','','0',''),
('118066','59610','3','1','1.0E-9','0',''),
('118067','59611','1','12','$.cpu_stats.cpu_usage.usage_in_usermode','0',''),
('118068','59611','2','10','','0',''),
('118069','59611','3','1','1.0E-9','0',''),
('118070','59612','1','12','$.memory_stats.commitbytes','0',''),
('118071','59613','1','12','$.memory_stats.commitpeakbytes','0',''),
('118072','59614','1','12','$.memory_stats.max_usage','0',''),
('118073','59615','1','12','$.memory_stats.privateworkingset','0',''),
('118074','59616','1','12','$.memory_stats.usage','0',''),
('118075','59617','1','12','$.cpu_stats.online_cpus','0',''),
('118076','59618','1','12','$.pids_stats.current','0',''),
('118077','59619','1','12','$.networks[*].rx_bytes.sum()','2','0'),
('118078','59619','2','10','','0',''),
('118079','59620','1','12','$.networks[*].rx_dropped.sum()','2','0'),
('118080','59620','2','10','','0',''),
('118081','59621','1','12','$.networks[*].rx_errors.sum()','2','0'),
('118082','59621','2','10','','0',''),
('118083','59622','1','12','$.networks[*].rx_packets.sum()','2','0'),
('118084','59622','2','10','','0',''),
('118085','59623','1','12','$.networks[*].tx_bytes.sum()','2','0'),
('118086','59623','2','10','','0',''),
('118087','59624','1','12','$.networks[*].tx_dropped.sum()','2','0'),
('118088','59624','2','10','','0',''),
('118089','59625','1','12','$.networks[*].tx_errors.sum()','2','0'),
('118090','59625','2','10','','0',''),
('118091','59626','1','12','$.networks[*].tx_packets.sum()','2','0'),
('118092','59626','2','10','','0',''),
('118093','59627','1','12','$[?(@.Id == "{#ID}")].Created.first()','0',''),
('118094','59627','2','20','1d','0',''),
('118095','59628','1','12','$[?(@.Id == "{#ID}")].Size.first()','0',''),
('118096','59629','1','12','$.nodes.[*]','0',''),
('118097','59629','2','20','1d','0',''),
('118098','59634','1','12','$..[?(@.name==''{#ES.NODE}'')].first()','0',''),
('118099','59635','1','12','$..fs.total.available_in_bytes.first()','0',''),
('118100','59635','2','20','1h','0',''),
('118101','59636','1','12','$..fs.total.total_in_bytes.first()','0',''),
('118102','59636','2','20','1d','0',''),
('118103','59637','1','12','$..http.current_open.first()','0',''),
('118104','59637','2','20','1h','0',''),
('118105','59638','1','12','$..http.total_opened.first()','0',''),
('118106','59638','2','10','','0',''),
('118107','59639','1','12','$..indices.flush.total.first()','0',''),
('118108','59639','2','20','1h','0',''),
('118109','59640','1','12','$..indices.flush.total_time_in_millis.first()','0',''),
('118110','59640','2','20','1h','0',''),
('118111','59641','1','12','$..indices.indexing.index_current.first()','0',''),
('118112','59641','2','20','1h','0',''),
('118113','59642','1','12','$..indices.indexing.index_time_in_millis.first()','0',''),
('118114','59642','2','20','1h','0',''),
('118115','59643','1','12','$..indices.indexing.index_total.first()','0',''),
('118116','59643','2','20','1h','0',''),
('118117','59644','1','12','$..indices.indexing.throttle_time_in_millis.first()','0',''),
('118118','59644','2','1','0.001','0',''),
('118119','59644','3','9','','0',''),
('118120','59645','1','12','$..indices.merges.total_throttled_time_in_millis.first()','0',''),
('118121','59645','2','1','0.001','0',''),
('118122','59645','3','9','','0',''),
('118123','59646','1','12','$..indices.recovery.throttle_time_in_millis.first()','0',''),
('118124','59646','2','1','0.001','0',''),
('118125','59646','3','9','','0',''),
('118126','59647','1','12','$..indices.refresh.total.first()','0',''),
('118127','59647','2','10','','0',''),
('118128','59648','1','12','$..indices.refresh.total_time_in_millis.first()','0',''),
('118129','59648','2','1','0.001','0',''),
('118130','59648','3','9','','0',''),
('118131','59649','1','12','$..indices.search.fetch_total.first()','0',''),
('118132','59649','2','10','','0',''),
('118133','59650','1','12','$..indices.search.fetch_current.first()','0',''),
('118134','59651','1','12','$..indices.search.fetch_time_in_millis.first()','0',''),
('118135','59651','2','1','0.001','0',''),
('118136','59651','3','9','','0',''),
('118137','59652','1','12','$..indices.search.fetch_time_in_millis.first()','0',''),
('118138','59652','2','20','1h','0',''),
('118139','59653','1','12','$..indices.search.fetch_total.first()','0',''),
('118140','59653','2','20','1h','0',''),
('118141','59654','1','12','$..indices.search.query_total.first()','0',''),
('118142','59654','2','10','','0',''),
('118143','59655','1','12','$..indices.search.query_current.first()','0',''),
('118144','59656','1','12','$..indices.search.query_time_in_millis.first()','0',''),
('118145','59656','2','1','0.001','0',''),
('118146','59656','3','9','','0',''),
('118147','59657','1','12','$..indices.search.query_time_in_millis.first()','0',''),
('118148','59657','2','20','1h','0',''),
('118149','59658','1','12','$..indices.search.query_total.first()','0',''),
('118150','59658','2','20','1h','0',''),
('118151','59659','1','12','$..jvm.mem.heap_committed_in_bytes.first()','0',''),
('118152','59659','2','20','1h','0',''),
('118153','59660','1','12','$..jvm.mem.heap_max_in_bytes.first()','0',''),
('118154','59660','2','20','1d','0',''),
('118155','59661','1','12','$..jvm.mem.heap_used_in_bytes.first()','0',''),
('118156','59661','2','20','1h','0',''),
('118157','59662','1','12','$..jvm.mem.heap_used_percent.first()','0',''),
('118158','59662','2','20','1h','0',''),
('118159','59663','1','12','$..jvm.uptime_in_millis.first()','0',''),
('118160','59663','2','1','0.001','0',''),
('118161','59664','1','12','$..thread_pool.refresh.active.first()','0',''),
('118162','59665','1','12','$..thread_pool.refresh.completed.first()','0',''),
('118163','59665','2','10','','0',''),
('118164','59666','1','12','$..thread_pool.refresh.queue.first()','0',''),
('118165','59667','1','12','$..thread_pool.refresh.rejected.first()','0',''),
('118166','59667','2','10','','0',''),
('118167','59668','1','12','$..thread_pool.search.active.first()','0',''),
('118168','59669','1','12','$..thread_pool.search.completed.first()','0',''),
('118169','59669','2','10','','0',''),
('118170','59670','1','12','$..thread_pool.search.queue.first()','0',''),
('118171','59671','1','12','$..thread_pool.search.rejected.first()','0',''),
('118172','59671','2','10','','0',''),
('118173','59672','1','12','$..thread_pool.write.active.first()','0',''),
('118174','59673','1','12','$..thread_pool.write.completed.first()','0',''),
('118175','59673','2','10','','0',''),
('118176','59674','1','12','$..thread_pool.write.queue.first()','0',''),
('118177','59675','1','12','$..thread_pool.write.rejected.first()','0',''),
('118178','59675','2','10','','0',''),
('118179','59676','1','23','envoy_cluster_membership_total','0',''),
('118180','59676','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
		var envoy_cluster_name = item.labels.envoy_cluster_name;

		if (lookup[envoy_cluster_name]) {
			return;
		}
		lookup[envoy_cluster_name] = 1;
		result.push({
			''{#CLUSTER_NAME}'': envoy_cluster_name
		});
});

return JSON.stringify(result);','0',''),
('118181','59676','3','20','3h','0',''),
('118182','59677','1','23','envoy_http_downstream_rq_total','0',''),
('118183','59677','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
		var envoy_http_conn_manager_prefix = item.labels.envoy_http_conn_manager_prefix;

		if (lookup[envoy_http_conn_manager_prefix]) {
			return;
		}
		lookup[envoy_http_conn_manager_prefix] = 1;
		result.push({
			''{#CONN_MANAGER}'': envoy_http_conn_manager_prefix
		});
});

return JSON.stringify(result);','0',''),
('118184','59677','3','20','3h','0',''),
('118185','59678','1','23','envoy_listener_downstream_cx_active','0',''),
('118186','59678','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
		var envoy_listener_address = item.labels.envoy_listener_address;

		if (lookup[envoy_listener_address]) {
			return;
		}
		lookup[envoy_listener_address] = 1;
		result.push({
			''{#LISTENER_ADDRESS}'': envoy_listener_address
		});
});

return JSON.stringify(result);','0',''),
('118187','59678','3','20','3h','0',''),
('118188','59680','1','22','envoy_cluster_membership_degraded{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118189','59681','1','22','envoy_cluster_membership_healthy{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118190','59682','1','22','envoy_cluster_membership_total{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118191','59683','1','22','envoy_cluster_upstream_cx_active{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118192','59684','1','22','envoy_cluster_upstream_cx_rx_bytes_total{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118193','59684','2','10','','0',''),
('118194','59685','1','22','envoy_cluster_upstream_cx_total{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118195','59686','1','22','envoy_cluster_upstream_cx_tx_bytes_total{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118196','59686','2','10','','0',''),
('118197','59687','1','22','envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="2"}
function
sum','0',''),
('118198','59687','2','10','','0',''),
('118199','59688','1','22','envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="3"}
function
sum','0',''),
('118200','59688','2','10','','0',''),
('118201','59689','1','22','envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="4"}
function
sum','0',''),
('118202','59689','2','10','','0',''),
('118203','59690','1','22','envoy_cluster_upstream_rq_xx{envoy_cluster_name = "{#CLUSTER_NAME}", envoy_response_code_class="5"}
function
sum','0',''),
('118204','59690','2','10','','0',''),
('118205','59691','1','22','envoy_cluster_upstream_rq_active{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118206','59692','1','22','envoy_cluster_upstream_rq_completed{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118207','59692','2','10','','0',''),
('118208','59693','1','22','envoy_cluster_upstream_rq_pending_active{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118209','59694','1','22','envoy_cluster_upstream_rq_timeout{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118210','59694','2','10','','0',''),
('118211','59695','1','22','envoy_cluster_upstream_rq_total{envoy_cluster_name = "{#CLUSTER_NAME}"}
function
sum','0',''),
('118212','59695','2','10','','0',''),
('118213','59696','1','22','envoy_http_downstream_cx_active{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}
function
sum','0',''),
('118214','59697','1','22','envoy_http_downstream_cx_rx_bytes_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}
function
sum','0',''),
('118215','59697','2','10','','0',''),
('118216','59698','1','22','envoy_http_downstream_cx_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}
function
sum','0',''),
('118217','59698','2','10','','0',''),
('118218','59699','1','22','envoy_http_downstream_cx_tx_bytes_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}
function
sum','0',''),
('118219','59699','2','10','','0',''),
('118220','59700','1','22','envoy_http_downstream_rq_active{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}
function
sum','0',''),
('118221','59701','1','22','envoy_http_downstream_rq_timeout{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}
function
sum','0',''),
('118222','59701','2','10','','0',''),
('118223','59702','1','22','envoy_http_downstream_rq_total{envoy_http_conn_manager_prefix = "{#CONN_MANAGER}"}
function
sum','0',''),
('118224','59702','2','10','','0',''),
('118225','59703','1','22','envoy_listener_downstream_cx_active{envoy_listener_address = "{#LISTENER_ADDRESS}"}
function
sum','0',''),
('118226','59704','1','22','envoy_listener_downstream_cx_total{envoy_listener_address = "{#LISTENER_ADDRESS}"}
function
sum','0',''),
('118227','59704','2','10','','0',''),
('118228','59705','1','22','envoy_listener_downstream_pre_cx_active{envoy_listener_address = "{#LISTENER_ADDRESS}"}
function
sum','0',''),
('118229','59706','1','23','grpc_server_handled_total','0',''),
('118230','59706','2','21','var data = JSON.parse(value),
	lookup = {},
	result = [];
for (var item, i = 0; item = data[i++];) {
	var code = item.labels.grpc_code;
	if (!(code in lookup)) {
		lookup[code] = 1;
		result.push({ "{#GRPC.CODE}": code });
	}
}
return JSON.stringify(result);','0',''),
('118231','59706','3','20','1h','0',''),
('118232','59707','1','23','etcd_network_peer_sent_bytes_total','0',''),
('118233','59708','1','23','grpc_server_handled_total{grpc_method="{#GRPC.CODE}"}','0',''),
('118234','59708','2','21','var valueArr = JSON.parse(value);
return valueArr.reduce(function (acc, obj) {
	return acc + parseFloat(obj[''value'']);
}, 0);','0',''),
('118235','59708','3','10','','0',''),
('118236','59709','1','22','etcd_network_peer_received_bytes_total{From="{#ETCD.PEER}"}
value
','2','0'),
('118237','59709','2','10','','0',''),
('118238','59710','1','22','etcd_network_peer_sent_bytes_total{To="{#ETCD.PEER}"}
value
','2','0'),
('118239','59710','2','10','','0',''),
('118240','59711','1','22','etcd_network_peer_received_failures_total{To="{#ETCD.PEER}"}
value
','2','0'),
('118241','59711','2','10','','0',''),
('118242','59712','1','22','etcd_network_peer_sent_failures_total{To="{#ETCD.PEER}"}
value
','2','0'),
('118243','59712','2','10','','0',''),
('118244','59713','1','21','var data = JSON.parse(value);

data.forEach(function(instance) {
	if (instance["{#INSTANCE}"] === ''_total'') {
		instance["{#INF.STORE}"] = ''Information Store'';
	}
	else {
		instance["{#INF.STORE}"] = ''Information Store - '' + instance["{#INSTANCE}"];
	}
})

return JSON.stringify(data);','0',''),
('118245','59716','1','20','3h','0',''),
('118246','59721','1','1','0.001','0',''),
('118247','59722','1','1','0.001','0',''),
('118248','59724','1','1','0.001','0',''),
('118249','59725','1','1','0.001','0',''),
('118250','59727','1','20','3m','0',''),
('118251','59728','1','1','0.001','0',''),
('118252','59731','1','1','0.001','0',''),
('118253','59732','1','1','0.001','0',''),
('118254','59734','1','21','var data = JSON.parse(value);

data.forEach(function(instance) {
	if (instance["{#INSTANCE}"] === ''_total'') {
		instance["{#INF.STORE}"] = ''Information Store'';
	}
	else {
		instance["{#INF.STORE}"] = ''Information Store - '' + instance["{#INSTANCE}"];
	}
})

return JSON.stringify(data);','0',''),
('118255','59737','1','20','3h','0',''),
('118256','59742','1','1','0.001','0',''),
('118257','59743','1','1','0.001','0',''),
('118258','59745','1','1','0.001','0',''),
('118259','59746','1','1','0.001','0',''),
('118260','59748','1','20','3m','0',''),
('118261','59749','1','1','0.001','0',''),
('118262','59752','1','1','0.001','0',''),
('118263','59753','1','1','0.001','0',''),
('118264','59757','1','10','','0',''),
('118265','59758','1','1','0.001','0',''),
('118266','59758','2','20','10m','0',''),
('118267','59759','1','20','10m','0',''),
('118268','59760','1','20','10m','0',''),
('118269','59762','1','12','$.data','0',''),
('118270','59763','1','21','return JSON.stringify(JSON.parse(value).data[0].zbx_community_profile
	? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('118271','59763','2','20','6h','0',''),
('118272','59764','1','12','$.data','1',''),
('118273','59764','2','21','var runners = JSON.parse(value);

result = runners.map(function (runner) {
	return {
		''name'': runner.name,
		''id'': runner.id,
		''os'': runner.os
	};
});

return JSON.stringify(result);','0',''),
('118274','59764','3','20','1h','0',''),
('118275','59765','1','12','$.data','0',''),
('118276','59766','1','18',E'API rate limit exceeded
\\0','1',''),
('118277','59766','2','20','6h','0',''),
('118278','59767','1','18',E'API rate limit exceeded
\\0','1',''),
('118279','59767','2','12','$.data.first()','0',''),
('118280','59768','1','12','$.data..zbx_community_profile.health_percentage.first()','0',''),
('118281','59768','2','20','1h','0',''),
('118282','59769','1','12','$.data[?(@.id == "{#RUNNER_ID}")].busy.first()','0',''),
('118283','59769','2','6','','0',''),
('118284','59769','3','20','1h','0',''),
('118285','59770','1','12','$.data[?(@.id == "{#RUNNER_ID}")].status.first()','0',''),
('118286','59770','2','21','const idx = [
	''offline'',
	''online''
].indexOf(value);

return idx !== -1 ? idx : 10;','0',''),
('118287','59770','3','20','1h','0',''),
('118288','59771','1','12','$.conclusion','0',''),
('118289','59771','2','21','if (value !== ''null'') {
	const idx = [
		''success'',
		''failure'',
		''neutral'',
		''cancelled'',
		''skipped'',
		''timed_out'',
		''action_required'',
	].indexOf(value);

	return idx !== -1 ? idx : 10;
}

return null;','0',''),
('118290','59771','3','20','1h','0',''),
('118291','59772','1','21','const data = JSON.parse(value);

const start_date = Math.floor(new Date(data.run_started_at) / 1000),
	  update_date = Math.floor(new Date(data.updated_at) / 1000);

return (update_date - start_date);','0',''),
('118292','59772','2','20','3h','0',''),
('118293','59773','1','12','$.run_started_at','0',''),
('118294','59773','2','21','return Math.floor(new Date(value) / 1000);','0',''),
('118295','59773','3','20','3h','0',''),
('118296','59774','1','12','$.status','0',''),
('118297','59774','2','21','const idx = [
	''queued'',
	''in_progress'',
	''completed''
].indexOf(value);

return idx !== -1 ? idx : 10;','0',''),
('118298','59775','1','12','$.updated_at','0',''),
('118299','59775','2','21','return Math.floor(new Date(value) / 1000);','0',''),
('118300','59775','3','20','3h','0',''),
('118301','59776','1','23','puma_workers','0',''),
('118302','59776','2','21','return JSON.stringify(value != "[]" ? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('118303','59777','1','23','unicorn_workers','1',''),
('118304','59777','2','21','return JSON.stringify(value != "[]" ? [{''{#SINGLETON}'': ''''}] : []);','0',''),
('118305','59778','1','12','$[?(@.name==''puma_active_connections'')].value.sum()','0',''),
('118306','59779','1','12','$[?(@.name==''puma_idle_threads'')].value.sum()','0',''),
('118307','59780','1','12','$[?(@.name==''puma_killer_terminations_total'')].value.sum()','1',''),
('118308','59781','1','12','$[?(@.name==''puma_max_threads'')].value.sum()','0',''),
('118309','59782','1','12','$[?(@.name==''puma_pool_capacity'')].value.sum()','0',''),
('118310','59783','1','12','$[?(@.name==''puma_queued_connections'')].value.sum()','0',''),
('118311','59784','1','12','$[?(@.name==''puma_running'')].value.sum()','0',''),
('118312','59785','1','12','$[?(@.name==''puma_running_workers'')].value.sum()','0',''),
('118313','59786','1','12','$[?(@.name==''puma_stale_workers'')].value.sum()','0',''),
('118314','59787','1','12','$[?(@.name==''puma_workers'')].value.sum()','0',''),
('118315','59788','1','12','$[?(@.name==''unicorn_active_connections'')].value.sum()','0',''),
('118316','59789','1','12','$[?(@.name==''unicorn_queued_connections'')].value.sum()','0',''),
('118317','59790','1','12','$[?(@.name==''unicorn_workers'')].value.sum()','0',''),
('118318','59791','1','21','try {
	parsed = JSON.parse(value);
	var result = [];

	function getNodes(nodes) {
		Object.keys(nodes).forEach(function (field) {
			var Node = {};
			Node[''{#HOSTNAME}''] = field || '''';
			Node[''{#INFOADDR}''] = nodes[field].infoAddr || '''';
			result.push(Node);
		});
	}

	getNodes(JSON.parse(parsed.beans[0].LiveNodes));
	getNodes(JSON.parse(parsed.beans[0].DeadNodes));
	getNodes(JSON.parse(parsed.beans[0].DecomNodes));
	getNodes(JSON.parse(parsed.beans[0].EnteringMaintenanceNodes));

	return JSON.stringify(result);
}
catch (error) {
	throw ''Failed to process response received from Hadoop.'';
}','0',''),
('118319','59792','1','21','try {
	parsed = JSON.parse(value);
	var result = [];

	function getNodes(nodes) {
		Object.keys(nodes).forEach(function (field) {
			var Node = {};
			Node[''{#HOSTNAME}''] = nodes[field].HostName || '''';
			Node[''{#NODEHTTPADDRESS}''] = nodes[field].NodeHTTPAddress || '''';
			result.push(Node);
		});
	}

	getNodes(JSON.parse(parsed.beans[0].LiveNodeManagers));

	return JSON.stringify(result);
}
catch (error) {
	throw ''Failed to process response received from Hadoop.'';
}','0',''),
('118320','59795','1','12','$.beans[?(@.name==''Hadoop:service=DataNode,name=FSDatasetState'')].DfsUsed.first()','0',''),
('118321','59796','1','12','$.beans[?(@.name==''Hadoop:service=DataNode,name=JvmMetrics'')].GcTimeMillis.first()','0',''),
('118322','59797','1','12','$.beans[?(@.name==''Hadoop:service=DataNode,name=JvmMetrics'')].MemHeapUsedM.first()','0',''),
('118323','59798','1','12','$.beans[?(@.name==''java.lang:type=Threading'')].ThreadCount.first()','0',''),
('118324','59799','1','12','$.beans[?(@.name==''Hadoop:service=DataNode,name=FSDatasetState'')].NumFailedVolumes.first()','0',''),
('118325','59800','1','12','$.[?(@.HostName==''{#HOSTNAME}'')].first()','1',''),
('118326','59801','1','12','$.beans[?(@.name==''Hadoop:service=DataNode,name=FSDatasetState'')].Remaining.first()','0',''),
('118327','59802','1','12','$.beans[?(@.name==''java.lang:type=Runtime'')].Uptime.first()','0',''),
('118328','59802','2','1','0.001','0',''),
('118329','59803','1','12','$.beans[?(@.name==''Hadoop:service=NodeManager,name=NodeManagerMetrics'')].ContainerLaunchDurationAvgTime.first()','0',''),
('118330','59804','1','12','$.beans[?(@.name==''Hadoop:service=NodeManager,name=JvmMetrics'')].GcTimeMillis.first()','0',''),
('118331','59805','1','12','$.beans[?(@.name==''Hadoop:service=NodeManager,name=JvmMetrics'')].MemHeapUsedM.first()','0',''),
('118332','59806','1','12','$.beans[?(@.name==''java.lang:type=Threading'')].ThreadCount.first()','0',''),
('118333','59807','1','12','$.[?(@.HostName==''{#HOSTNAME}'')].first()','1',''),
('118334','59808','1','12','$.beans[?(@.name==''Hadoop:service=NodeManager,name=RpcActivityForPort8040'')].RpcProcessingTimeAvgTime.first()','0',''),
('118335','59809','1','12','$.beans[?(@.name==''java.lang:type=Runtime'')].Uptime.first()','0',''),
('118336','59809','2','1','0.001','0',''),
('118337','59810','1','12','$.adminState','0',''),
('118338','59810','2','20','6h','0',''),
('118339','59811','1','12','$.operState','0',''),
('118340','59811','2','20','6h','0',''),
('118341','59812','1','12','$.version','0',''),
('118342','59812','2','20','6h','0',''),
('118343','59813','1','12','$.AvailableMemoryMB','0',''),
('118344','59814','1','12','$.NumContainers','0',''),
('118345','59815','1','12','$.State','0',''),
('118346','59815','2','20','6h','0',''),
('118347','59816','1','12','$.UsedMemoryMB','0',''),
('118348','59817','1','12','$.NodeManagerVersion','0',''),
('118349','59817','2','20','6h','0',''),
('118350','59822','1','12','$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()','0',''),
('118351','59823','1','12','$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()','0',''),
('118352','59824','1','12','$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()','0',''),
('118353','59825','1','12','$.act','0',''),
('118354','59825','2','20','1h','0',''),
('118355','59826','1','12','$.bck','0',''),
('118356','59826','2','20','1h','0',''),
('118357','59827','1','12','$.bin','0',''),
('118358','59827','2','1','8','0',''),
('118359','59827','3','10','','0',''),
('118360','59828','1','12','$.bout','0',''),
('118361','59828','2','1','8','0',''),
('118362','59828','3','10','','0',''),
('118363','59829','1','12','$.dresp','0',''),
('118364','59829','2','10','','0',''),
('118365','59830','1','12','$.econ','0',''),
('118366','59830','2','10','','0',''),
('118367','59831','1','12','$.eresp','0',''),
('118368','59831','2','10','','0',''),
('118369','59832','1','12','$.hrsp_1xx','0',''),
('118370','59832','2','10','','0',''),
('118371','59833','1','12','$.hrsp_2xx','0',''),
('118372','59833','2','10','','0',''),
('118373','59834','1','12','$.hrsp_3xx','0',''),
('118374','59834','2','10','','0',''),
('118375','59835','1','12','$.hrsp_4xx','0',''),
('118376','59835','2','10','','0',''),
('118377','59836','1','12','$.hrsp_5xx','0',''),
('118378','59836','2','10','','0',''),
('118379','59837','1','12','$.qcur','0',''),
('118380','59838','1','12','$.qtime','0',''),
('118381','59838','2','1','0.001','0',''),
('118382','59839','1','12','$.rtime','0',''),
('118383','59839','2','1','0.001','0',''),
('118384','59840','1','12','$.status','0',''),
('118385','59840','2','20','10m','0',''),
('118386','59841','1','12','$.stot','0',''),
('118387','59841','2','10','','0',''),
('118388','59842','1','12','$.weight','0',''),
('118389','59842','2','20','1h','0',''),
('118390','59843','1','12','$.wredis','0',''),
('118391','59843','2','10','','0',''),
('118392','59844','1','12','$.wretr','0',''),
('118393','59844','2','10','','0',''),
('118394','59845','1','12','$.bin','0',''),
('118395','59845','2','1','8','0',''),
('118396','59845','3','10','','0',''),
('118397','59846','1','12','$.bout','0',''),
('118398','59846','2','1','8','0',''),
('118399','59846','3','10','','0',''),
('118400','59847','1','12','$.dreq','0',''),
('118401','59847','2','10','','0',''),
('118402','59848','1','12','$.ereq','0',''),
('118403','59848','2','10','','0',''),
('118404','59849','1','12','$.hrsp_1xx','0',''),
('118405','59849','2','10','','0',''),
('118406','59850','1','12','$.hrsp_2xx','0',''),
('118407','59850','2','10','','0',''),
('118408','59851','1','12','$.hrsp_3xx','0',''),
('118409','59851','2','10','','0',''),
('118410','59852','1','12','$.hrsp_4xx','0',''),
('118411','59852','2','10','','0',''),
('118412','59853','1','12','$.hrsp_5xx','0',''),
('118413','59853','2','10','','0',''),
('118414','59854','1','12','$.rate','0',''),
('118415','59855','1','12','$.req_rate','0',''),
('118416','59856','1','12','$.scur','0',''),
('118417','59857','1','12','$.slim','0',''),
('118418','59857','2','20','1h','0',''),
('118419','59858','1','12','$.status','0',''),
('118420','59858','2','20','6h','0',''),
('118421','59859','1','12','$.act','0',''),
('118422','59859','2','20','1h','0',''),
('118423','59860','1','12','$.bck','0',''),
('118424','59860','2','20','1h','0',''),
('118425','59861','1','12','$.bin','0',''),
('118426','59861','2','1','8','0',''),
('118427','59861','3','10','','0',''),
('118428','59862','1','12','$.bout','0',''),
('118429','59862','2','1','8','0',''),
('118430','59862','3','10','','0',''),
('118431','59863','1','12','$.check_status','0',''),
('118432','59863','2','20','10m','0',''),
('118433','59864','1','12','$.dresp','0',''),
('118434','59864','2','10','','0',''),
('118435','59865','1','12','$.econ','0',''),
('118436','59865','2','10','','0',''),
('118437','59866','1','12','$.eresp','0',''),
('118438','59866','2','10','','0',''),
('118439','59867','1','12','$.hrsp_1xx','0',''),
('118440','59867','2','10','','0',''),
('118441','59868','1','12','$.hrsp_2xx','0',''),
('118442','59868','2','10','','0',''),
('118443','59869','1','12','$.hrsp_3xx','0',''),
('118444','59869','2','10','','0',''),
('118445','59870','1','12','$.hrsp_4xx','0',''),
('118446','59870','2','10','','0',''),
('118447','59871','1','12','$.hrsp_5xx','0',''),
('118448','59871','2','10','','0',''),
('118449','59872','1','12','$.lbtot','0',''),
('118450','59872','2','10','','0',''),
('118451','59873','1','12','$.qcur','0',''),
('118452','59874','1','12','$.qlimit','0',''),
('118453','59874','2','20','6h','0',''),
('118454','59874','3','14',E'^\\d+$','2','0'),
('118455','59875','1','12','$.qtime','0',''),
('118456','59875','2','1','0.001','0',''),
('118457','59876','1','12','$.rtime','0',''),
('118458','59876','2','1','0.001','0',''),
('118459','59877','1','12','$.status','0',''),
('118460','59877','2','20','10m','0',''),
('118461','59878','1','12','$.stot','0',''),
('118462','59878','2','10','','0',''),
('118463','59879','1','12','$.weight','0',''),
('118464','59879','2','20','1h','0',''),
('118465','59880','1','12','$.wredis','0',''),
('118466','59880','2','10','','0',''),
('118467','59881','1','12','$.wretr','0',''),
('118468','59881','2','10','','0',''),
('118469','59886','1','12','$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()','0',''),
('118470','59887','1','12','$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()','0',''),
('118471','59888','1','12','$.[?(@.pxname == ''{#PXNAME}'' && @.svname == ''{#SVNAME}'')].first()','0',''),
('118472','59889','1','12','$.act','0',''),
('118473','59889','2','20','1h','0',''),
('118474','59890','1','12','$.bck','0',''),
('118475','59890','2','20','1h','0',''),
('118476','59891','1','12','$.bin','0',''),
('118477','59891','2','1','8','0',''),
('118478','59891','3','10','','0',''),
('118479','59892','1','12','$.bout','0',''),
('118480','59892','2','1','8','0',''),
('118481','59892','3','10','','0',''),
('118482','59893','1','12','$.dresp','0',''),
('118483','59893','2','10','','0',''),
('118484','59894','1','12','$.econ','0',''),
('118485','59894','2','10','','0',''),
('118486','59895','1','12','$.eresp','0',''),
('118487','59895','2','10','','0',''),
('118488','59896','1','12','$.hrsp_1xx','0',''),
('118489','59896','2','10','','0',''),
('118490','59897','1','12','$.hrsp_2xx','0',''),
('118491','59897','2','10','','0',''),
('118492','59898','1','12','$.hrsp_3xx','0',''),
('118493','59898','2','10','','0',''),
('118494','59899','1','12','$.hrsp_4xx','0',''),
('118495','59899','2','10','','0',''),
('118496','59900','1','12','$.hrsp_5xx','0',''),
('118497','59900','2','10','','0',''),
('118498','59901','1','12','$.qcur','0',''),
('118499','59902','1','12','$.qtime','0',''),
('118500','59902','2','1','0.001','0',''),
('118501','59903','1','12','$.rtime','0',''),
('118502','59903','2','1','0.001','0',''),
('118503','59904','1','12','$.status','0',''),
('118504','59904','2','20','10m','0',''),
('118505','59905','1','12','$.stot','0',''),
('118506','59905','2','10','','0',''),
('118507','59906','1','12','$.weight','0',''),
('118508','59906','2','20','1h','0',''),
('118509','59907','1','12','$.wredis','0',''),
('118510','59907','2','10','','0',''),
('118511','59908','1','12','$.wretr','0',''),
('118512','59908','2','10','','0',''),
('118513','59909','1','12','$.bin','0',''),
('118514','59909','2','1','8','0',''),
('118515','59909','3','10','','0',''),
('118516','59910','1','12','$.bout','0',''),
('118517','59910','2','1','8','0',''),
('118518','59910','3','10','','0',''),
('118519','59911','1','12','$.dreq','0',''),
('118520','59911','2','10','','0',''),
('118521','59912','1','12','$.ereq','0',''),
('118522','59912','2','10','','0',''),
('118523','59913','1','12','$.hrsp_1xx','0',''),
('118524','59913','2','10','','0',''),
('118525','59914','1','12','$.hrsp_2xx','0',''),
('118526','59914','2','10','','0',''),
('118527','59915','1','12','$.hrsp_3xx','0',''),
('118528','59915','2','10','','0',''),
('118529','59916','1','12','$.hrsp_4xx','0',''),
('118530','59916','2','10','','0',''),
('118531','59917','1','12','$.hrsp_5xx','0',''),
('118532','59917','2','10','','0',''),
('118533','59918','1','12','$.rate','0',''),
('118534','59919','1','12','$.req_rate','0',''),
('118535','59920','1','12','$.scur','0',''),
('118536','59921','1','12','$.slim','0',''),
('118537','59921','2','20','1h','0',''),
('118538','59922','1','12','$.status','0',''),
('118539','59922','2','20','6h','0',''),
('118540','59923','1','12','$.act','0',''),
('118541','59923','2','20','1h','0',''),
('118542','59924','1','12','$.bck','0',''),
('118543','59924','2','20','1h','0',''),
('118544','59925','1','12','$.bin','0',''),
('118545','59925','2','1','8','0',''),
('118546','59925','3','10','','0',''),
('118547','59926','1','12','$.bout','0',''),
('118548','59926','2','1','8','0',''),
('118549','59926','3','10','','0',''),
('118550','59927','1','12','$.check_status','0',''),
('118551','59927','2','20','10m','0',''),
('118552','59928','1','12','$.dresp','0',''),
('118553','59928','2','10','','0',''),
('118554','59929','1','12','$.econ','0',''),
('118555','59929','2','10','','0',''),
('118556','59930','1','12','$.eresp','0',''),
('118557','59930','2','10','','0',''),
('118558','59931','1','12','$.hrsp_1xx','0',''),
('118559','59931','2','10','','0',''),
('118560','59932','1','12','$.hrsp_2xx','0',''),
('118561','59932','2','10','','0',''),
('118562','59933','1','12','$.hrsp_3xx','0',''),
('118563','59933','2','10','','0',''),
('118564','59934','1','12','$.hrsp_4xx','0',''),
('118565','59934','2','10','','0',''),
('118566','59935','1','12','$.hrsp_5xx','0',''),
('118567','59935','2','10','','0',''),
('118568','59936','1','12','$.lbtot','0',''),
('118569','59936','2','10','','0',''),
('118570','59937','1','12','$.qcur','0',''),
('118571','59938','1','12','$.qlimit','0',''),
('118572','59938','2','20','6h','0',''),
('118573','59938','3','14',E'^\\d+$','2','0'),
('118574','59939','1','12','$.qtime','0',''),
('118575','59939','2','1','0.001','0',''),
('118576','59940','1','12','$.rtime','0',''),
('118577','59940','2','1','0.001','0',''),
('118578','59941','1','12','$.status','0',''),
('118579','59941','2','20','10m','0',''),
('118580','59942','1','12','$.stot','0',''),
('118581','59942','2','10','','0',''),
('118582','59943','1','12','$.weight','0',''),
('118583','59943','2','20','1h','0',''),
('118584','59944','1','12','$.wredis','0',''),
('118585','59944','2','10','','0',''),
('118586','59945','1','12','$.wretr','0',''),
('118587','59945','2','10','','0',''),
('118588','59947','1','20','10m','0',''),
('118589','59949','1','20','10m','0',''),
('118590','59950','1','20','10m','0',''),
('118591','59952','1','20','10m','0',''),
('118592','59954','1','20','10m','0',''),
('118593','59955','1','20','10m','0',''),
('118594','59956','1','12','$.computer.[*]','0',''),
('118595','59957','1','12','$.jobs.[*]','0',''),
('118596','59958','1','12','$.computer.[?(@.displayName == "{#DISPLAY_NAME}")].first()','1',''),
('118597','59958','2','20','1h','0',''),
('118598','59959','1','12','$.jobs.[?(@.name == "{#NAME}")].first()','1',''),
('118599','59959','2','20','30m','0',''),
('118600','59960','1','12','$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].availablePhysicalMemory','1',''),
('118601','59961','1','12','$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].availableSwapSpace','1',''),
('118602','59962','1','12','$.monitorData[''hudson.node_monitors.ClockMonitor''].diff','1',''),
('118603','59962','2','1','0.001','0',''),
('118604','59963','1','12','$.monitorData[''hudson.node_monitors.DiskSpaceMonitor''].size','1',''),
('118605','59964','1','12','$.idle','0',''),
('118606','59964','2','6','','0',''),
('118607','59964','3','20','1h','0',''),
('118608','59965','1','12','$.numExecutors','1',''),
('118609','59966','1','12','$.offlineCauseReason','0',''),
('118610','59966','2','20','3h','0',''),
('118611','59967','1','12','$.monitorData[''hudson.node_monitors.ResponseTimeMonitor''].average','1',''),
('118612','59967','2','1','0.001','0',''),
('118613','59968','1','12','$.offline','0',''),
('118614','59968','2','6','','0',''),
('118615','59968','3','20','1h','0',''),
('118616','59969','1','12','$.temporarilyOffline','0',''),
('118617','59969','2','6','','0',''),
('118618','59969','3','20','1h','0',''),
('118619','59970','1','12','$.monitorData[''hudson.node_monitors.TemporarySpaceMonitor''].size','1',''),
('118620','59971','1','12','$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].totalPhysicalMemory','1',''),
('118621','59972','1','12','$.monitorData[''hudson.node_monitors.SwapSpaceMonitor''].totalSwapSpace','1',''),
('118622','59973','1','12','$.healthReport..score.first()','1',''),
('118623','59973','2','20','30m','0',''),
('118624','59974','1','12','$.lastBuild.duration','1',''),
('118625','59974','2','1','0.001','0',''),
('118626','59974','3','20','30m','0',''),
('118627','59975','1','12','$.lastBuild.number','1',''),
('118628','59975','2','20','30m','0',''),
('118629','59976','1','12','$.lastBuild.result','1',''),
('118630','59976','2','20','30m','0',''),
('118631','59977','1','12','$.lastBuild.timestamp','1',''),
('118632','59977','2','1','0.001','0',''),
('118633','59977','3','20','30m','0',''),
('118634','59978','1','12','$.lastFailedBuild.duration','1',''),
('118635','59978','2','1','0.001','0',''),
('118636','59978','3','20','30m','0',''),
('118637','59979','1','12','$.lastFailedBuild.number','1',''),
('118638','59979','2','20','30m','0',''),
('118639','59980','1','12','$.lastFailedBuild.timestamp','1',''),
('118640','59980','2','1','0.001','0',''),
('118641','59980','3','20','30m','0',''),
('118642','59981','1','12','$.lastSuccessfulBuild.duration','1',''),
('118643','59981','2','1','0.001','0',''),
('118644','59981','3','20','30m','0',''),
('118645','59982','1','12','$.lastSuccessfulBuild.number','1',''),
('118646','59982','2','20','30m','0',''),
('118647','59983','1','12','$.lastSuccessfulBuild.timestamp','1',''),
('118648','59983','2','1','0.001','0',''),
('118649','59983','3','20','30m','0',''),
('118650','59988','1','21','var data = JSON.parse(value);
var lld_form = [];

for (var key in data) {
	lld_form.push({"license": key});
}
return JSON.stringify(lld_form);','0',''),
('118651','59988','2','20','1h','0',''),
('118652','59989','1','1','0.001','0',''),
('118653','59990','1','1','0.001','0',''),
('118654','59991','1','1','0.001','0',''),
('118655','59992','1','6','','0',''),
('118656','59993','1','9','','0',''),
('118657','59994','1','12','$.{#LICENSE.TYPE}.properties.current_user_count','0',''),
('118658','59995','1','12','$.{#LICENSE.TYPE}.properties.max_user_count','0',''),
('118659','59999','1','10','','0',''),
('118660','60000','1','10','','0',''),
('118661','60001','1','10','','0',''),
('118662','60002','1','10','','0',''),
('118663','60003','1','23','apiserver_registered_watchers{kind =~ ".*"}','0',''),
('118664','60003','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var kind = item.labels.kind;
	if (!(lookup[kind])) {
		lookup[kind] = 1;
		result.push({ ''{#KIND}'': kind });
	}
});
return JSON.stringify(result);','0',''),
('118665','60003','3','20','3h','0',''),
('118666','60004','1','23','authenticated_user_requests{username =~ ".*"}','0',''),
('118667','60004','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var name = item.labels.username;
	if (!(lookup[result])) {
		lookup[name] = 1;
		result.push({ ''{#NAME}'': name });
	}
});
return JSON.stringify(result);','0',''),
('118668','60004','3','20','3h','0',''),
('118669','60005','1','23','authentication_attempts{result =~ ".*"}','0',''),
('118670','60005','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var result_api = item.labels.result;
	if (!(lookup[result])) {
		lookup[result_api] = 1;
		result.push({ ''{#RESULT}'': result_api });
	}
});
return JSON.stringify(result);','0',''),
('118671','60005','3','20','3h','0',''),
('118675','60007','1','23','etcd_object_counts{resource =~ ".*"}','0',''),
('118676','60007','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var resource = item.labels.resource;
	if (!(lookup[resource])) {
		lookup[resource] = 1;
		result.push({ ''{#RESOURCE}'': resource });
	}
});
return JSON.stringify(result);','0',''),
('118677','60007','3','20','3h','0',''),
('118678','60008','1','23','grpc_client_handled_total{grpc_code =~ ".*"}','0',''),
('118679','60008','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var grpc_code = item.labels.grpc_code;
	if (!(lookup[grpc_code])) {
		lookup[grpc_code] = 1;
		result.push({ ''{#GRPC_CODE}'': grpc_code });
	}
});
return JSON.stringify(result);','0',''),
('118680','60008','3','20','3h','0',''),
('118681','60009','1','23','apiserver_current_inflight_requests{request_kind =~ ".*"}','0',''),
('118682','60009','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var request_kind = item.labels.request_kind;
	if (!(lookup[request_kind])) {
		lookup[request_kind] = 1;
		result.push({ ''{#KIND}'': request_kind });
	}
});
return JSON.stringify(result);','0',''),
('118683','60009','3','20','3h','0',''),
('118684','60010','1','23','apiserver_longrunning_gauge{resource =~ ".*", scope =~ ".*", verb =~ ".*"}','1',''),
('118685','60010','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var request_kind = item.labels.resource + item.labels.scope + item.labels.verb;
	if (!(lookup[request_kind])) {
		lookup[request_kind] = 1;
		result.push({
			''{#RESOURCE}'': item.labels.resource,
			''{#SCOPE}'': item.labels.scope,
			''{#VERB}'': item.labels.verb
		});
	}
});
return JSON.stringify(result);','0',''),
('118686','60010','3','20','3h','0',''),
('118687','60011','1','23','{__name__=~ "apiserver_request_duration_*", verb =~ ".*"}','0',''),
('118688','60011','2','21','var lookup = {},
	lookup_histogram = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	if (item.name === ''apiserver_request_duration_seconds_count'') {
		var label_verb = item.labels.verb;
		if (lookup[label_verb]) {
			return;
		}
		lookup[label_verb] = 1;
		result.push({
			''{#TYPE}'': ''totals'',
			''{#VERB}'': label_verb
		});

	}
	else if (item.name === ''apiserver_request_duration_seconds_bucket'') {
		var labels = item.labels.verb + item.labels.le;

		if (lookup_histogram[labels]) {
			return;
		}

		lookup_histogram[labels] = 1;
		result.push({
			''{#TYPE}'': ''buckets'',
			''{#VERB}'': item.labels.verb,
			''{#LE}'': item.labels.le
		});
	}
});

return JSON.stringify(result);','0',''),
('118689','60011','3','20','3h','0',''),
('118690','60012','1','23','workqueue_adds_total{name =~ ".*"}','0',''),
('118691','60012','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var name = item.labels.name;
	if (!(lookup[name])) {
		lookup[name] = 1;
		result.push({ ''{#NAME}'': name });
	}
});
return JSON.stringify(result);','0',''),
('118692','60012','3','20','3h','0',''),
('118693','60018','1','22','apiserver_registered_watchers{kind = "{#KIND}"}
value
','1',''),
('118694','60019','1','22','authenticated_user_requests{result = "{#NAME}"}
value
','1',''),
('118695','60019','2','10','','0',''),
('118696','60020','1','22','authentication_attempts{result = "{#RESULT}"}
function
sum','1',''),
('118697','60020','2','10','','0',''),
('118699','60022','1','22','etcd_object_counts{ resource = "{#RESOURCE}"}
value
','1',''),
('118700','60023','1','22','grpc_client_handled_total{grpc_code = "{#GRPC_CODE}"}
function
sum','1',''),
('118701','60023','2','10','','0',''),
('118702','60024','1','22','apiserver_current_inflight_requests{request_kind = "{#KIND}"}
value
','1',''),
('118703','60025','1','22','apiserver_longrunning_gauge{resource = "{#RESOURCE}", scope = "{#SCOPE}", verb = "{#VERB}"}
function
sum','1',''),
('118704','60026','1','22','apiserver_request_duration_seconds_bucket{le="{#LE}",verb="{#VERB}"}
function
sum','0',''),
('118705','60027','1','22','workqueue_adds_total{name = "{#NAME}"}
value
','1',''),
('118706','60027','2','10','','0',''),
('118707','60028','1','22','workqueue_depth{name = "{#NAME}"}
value
','1',''),
('118708','60029','1','23','{__name__=~ "workqueue_*", name =~ ".*"}','0',''),
('118709','60029','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	if (item.name === ''workqueue_adds_total'') {
		var label_name = item.labels.name;

		if (lookup[label_name]) {
			return;
		}
		lookup[label_name] = 1;
		result.push({
			''{#TYPE}'': ''totals'',
			''{#NAME}'': label_name
		});
	}
	else if  (item.name === ''workqueue_work_duration_seconds_bucket'') {
		result.push({
			''{#TYPE}'': ''buckets'',
			''{#NAME}'': item.labels.name,
			''{#LE}'': item.labels.le
		});
	}
});

return JSON.stringify(result);','0',''),
('118710','60029','3','20','3h','0',''),
('118711','60030','1','26','-1','1',''),
('118712','60038','1','22','workqueue_work_duration_seconds_bucket{name = "{#NAME}",le = "{#LE}"}
value
','1',''),
('118713','60039','1','22','workqueue_queue_duration_seconds_bucket{name = "{#NAME}",le = "{#LE}"}
value
','1',''),
('118714','60040','1','22','workqueue_adds_total{name = "{#NAME}"}
value
','1',''),
('118715','60040','2','10','','0',''),
('118716','60041','1','22','workqueue_depth{name = "{#NAME}"}
value
','1',''),
('118717','60042','1','22','workqueue_longest_running_processor_seconds{name = "{#NAME}"}
value
','1',''),
('118718','60043','1','22','workqueue_retries_total{name = "{#NAME}"}
value
','1',''),
('118719','60043','2','10','','0',''),
('118720','60044','1','22','workqueue_unfinished_work_seconds{name = "{#NAME}"}
value
','1',''),
('118721','60045','1','23','container_memory_cache{container !~ "POD", namespace =~ ".*", pod =~ ".*"}','0',''),
('118722','60045','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var container_labels = item.labels.container + item.labels.namespace + item.labels.pod;
	if (item.labels.container !== '''' && !lookup[container_labels]) {
		lookup[container_labels] = 1;
		result.push({
			''{#CONTAINER}'': item.labels.container,
			''{#NAMESPACE}'': item.labels.namespace,
			''{#POD}'': item.labels.pod
		});
	}
})
return JSON.stringify(result);','0',''),
('118723','60045','3','20','3h','0',''),
('118724','60046','1','12','$.items','1',''),
('118725','60047','1','23','rest_client_requests_total{code =~ ".*", host =~ ".*", method =~ ".*"}','0',''),
('118726','60047','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var request_labels = item.labels.code + item.labels.host + item.labels.method;
	if (!(lookup[request_labels])) {
		lookup[request_labels] = 1;
		result.push({
			''{#CODE}'': item.labels.code,
			''{#HOST}'': item.labels.host,
			''{#METHOD}'': item.labels.method
		});
	}
})
return JSON.stringify(result);','0',''),
('118727','60047','3','20','3h','0',''),
('118728','60048','1','23','{__name__=~ "kubelet_runtime_operations_*", operation_type =~ ".*"}','0',''),
('118729','60048','2','21','var lookup = {},
	lookup_histogram = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	if (item.name === ''kubelet_runtime_operations_total''){
		var op_type = item.labels.operation_type;

		if (lookup[op_type]) {
			return;
		}
		lookup[op_type] = 1;
		result.push({
			''{#TYPE}'': ''totals'',
			''{#OP_TYPE}'': op_type
		});
	}

	else if (item.name === ''kubelet_runtime_operations_duration_seconds_bucket''){
		var labels = item.labels.operation_type + item.labels.le;

		if (lookup_histogram[labels]) {
			return;
		}
		lookup_histogram[labels] = 1;
		result.push({
			''{#TYPE}'': ''buckets'',
			''{#OP_TYPE}'': item.labels.operation_type,
			''{#LE}'': item.labels.le
		});
	}
});

return JSON.stringify(result);','0',''),
('118730','60048','3','20','3h','0',''),
('118731','60053','1','22','container_memory_cache{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}
value
','0',''),
('118732','60053','2','20','3h','0',''),
('118733','60054','1','22','container_memory_max_usage_bytes{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}
value
','0',''),
('118734','60054','2','20','3h','0',''),
('118735','60055','1','22','container_memory_rss{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}
value
','0',''),
('118736','60055','2','20','3h','0',''),
('118737','60056','1','22','container_memory_swap{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}
value
','0',''),
('118738','60056','2','20','3h','0',''),
('118739','60057','1','22','container_memory_usage_bytes{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}
value
','0',''),
('118740','60057','2','20','3h','0',''),
('118741','60058','1','22','container_memory_working_set_bytes{container="{#CONTAINER}", namespace="{#NAMESPACE}", pod="{#POD}"}
value
','0',''),
('118742','60058','2','20','3h','0',''),
('118743','60059','1','22','container_cpu_load_average_10s{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}
function
sum','1',''),
('118744','60060','1','22','container_cpu_system_seconds_total{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}
function
sum','1',''),
('118745','60060','2','10','','0',''),
('118746','60061','1','22','container_cpu_usage_seconds_total{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}
function
sum','1',''),
('118747','60061','2','10','','0',''),
('118748','60062','1','22','container_cpu_user_seconds_total{container!="", container!="POD", pod="{#NAME}", namespace="{#NAMESPACE}"}
function
sum','1',''),
('118749','60062','2','10','','0',''),
('118750','60063','1','22','rest_client_requests_total{code="{#CODE}", host="{#HOST}", method="{#METHOD}"}
value
','0',''),
('118751','60063','2','20','3h','0',''),
('118752','60064','1','22','kubelet_runtime_operations_duration_seconds_bucket{le="{#LE}",operation_type="{#OP_TYPE}"}
function
sum','0',''),
('118753','60065','1','22','kubelet_runtime_operations_total{operation_type="{#OP_TYPE}"}
value
','1',''),
('118754','60065','2','10','','0',''),
('118755','60066','1','12','$.nodes..filternode','0',''),
('118756','60067','1','12','$.Pods','0',''),
('118757','60067','2','20','3h','0',''),
('118758','60068','1','12','$.nodes..[?(@.metadata.name == "{#NAME}")].first()','0',''),
('118759','60069','1','12','$.Pods[?(@.hostname == "{#NAME}")].containers.limits.cpu.sum()','0',''),
('118760','60070','1','12','$.Pods[?(@.hostname == "{#NAME}")].containers.limits.memory.sum()','0',''),
('118761','60071','1','12','$.Pods[?(@.hostname == "{#NAME}")].containers.requests.cpu.sum()','0',''),
('118762','60072','1','12','$.Pods[?(@.hostname == "{#NAME}")].containers.requests.memory.sum()','0',''),
('118763','60073','1','12','$.Pods[?(@.name == "{#POD}" && @.namespace == "{#NAMESPACE}")].first()','0',''),
('118764','60074','1','12','$.status.addresses[?(@.type == "ExternalIP")].address.first()','1',''),
('118765','60074','2','20','3h','0',''),
('118766','60075','1','12','$.status.addresses[?(@.type == "InternalIP")].address.first()','1',''),
('118767','60075','2','20','3h','0',''),
('118768','60076','1','12','$.status.allocatable.cpu','0',''),
('118769','60077','1','12','$.status.allocatable.memory','0',''),
('118770','60078','1','12','$.status.allocatable.pods','0',''),
('118771','60079','1','12','$.status.capacity.cpu','0',''),
('118772','60080','1','12','$.status.capacity.memory','0',''),
('118773','60081','1','12','$.status.capacity.pods','0',''),
('118774','60082','1','12','$.status.conditions[?(@.type == "DiskPressure")].status.first()','1',''),
('118775','60082','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118776','60083','1','12','$.status.conditions[?(@.type == "MemoryPressure")].status.first()','1',''),
('118777','60083','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118778','60084','1','12','$.status.conditions[?(@.type == "NetworkUnavailable")].status.first()','1',''),
('118779','60084','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118780','60085','1','12','$.status.conditions[?(@.type == "PIDPressure")].status.first()','1',''),
('118781','60085','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118782','60086','1','12','$.status.conditions[?(@.type == "Ready")].status.first()','1',''),
('118783','60086','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118784','60087','1','12','$.status.nodeInfo.architecture','0',''),
('118785','60087','2','20','3h','0',''),
('118786','60088','1','12','$.status.nodeInfo.containerRuntimeVersion','0',''),
('118787','60088','2','20','3h','0',''),
('118788','60089','1','12','$.status.nodeInfo.kernelVersion','0',''),
('118789','60089','2','20','3h','0',''),
('118790','60090','1','12','$.status.nodeInfo.kubeletVersion','0',''),
('118791','60090','2','20','3h','0',''),
('118792','60091','1','12','$.status.nodeInfo.kubeProxyVersion','0',''),
('118793','60091','2','20','3h','0',''),
('118794','60092','1','12','$.status.nodeInfo.operatingSystem','0',''),
('118795','60092','2','20','3h','0',''),
('118796','60093','1','12','$.status.nodeInfo.kernelVersion','0',''),
('118797','60093','2','20','3h','0',''),
('118798','60094','1','12','$.status.roles','0',''),
('118799','60094','2','20','3h','0',''),
('118800','60095','1','12','$.metadata.creationTimestamp','1',''),
('118801','60095','2','21','return Math.floor((Date.now() - new Date(value)) / 1000);','0',''),
('118802','60096','1','12','$.status.podsCount','0',''),
('118803','60097','1','12','$.conditions[?(@.type == "ContainersReady")].status.first()','1',''),
('118804','60097','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118805','60098','1','12','$.conditions[?(@.type == "Initialized")].status.first()','1',''),
('118806','60098','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118807','60099','1','12','$.conditions[?(@.type == "Ready")].status.first()','1',''),
('118808','60099','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118809','60100','1','12','$.conditions[?(@.type == "PodScheduled")].status.first()','1',''),
('118810','60100','2','21','return [''True'', ''False'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118811','60101','1','12','$.containers.restartCount','1',''),
('118812','60102','1','12','$.phase','1',''),
('118813','60102','2','21','return [''Pending'', ''Running'', ''Succeeded'', ''Failed'', ''Unknown''].indexOf(value) + 1 || ''Problem with status processing in JS'';','0',''),
('118814','60103','1','12','$.startTime','1',''),
('118815','60103','2','21','return Math.floor((Date.now() - new Date(value)) / 1000);','0',''),
('118816','60104','1','23','{__name__=~ "scheduler_e2e_scheduling_duration_*", result =~ ".*"}','0',''),
('118817','60104','2','21','var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	if (item.name === "scheduler_e2e_scheduling_duration_seconds_count"){
		var label_result = item.labels.result;

		if (lookup[label_result]) {
			return;
		}
		lookup[label_result] = 1;
		result.push({
			''{#TYPE}'': ''totals'',
			''{#RESULT}'': label_result
		});

	  }
	else if  (item.name === "scheduler_e2e_scheduling_duration_seconds_bucket"){
		result.push({
			''{#TYPE}'': ''buckets'',
			''{#RESULT}'': item.labels.result,
			''{#LE}'': item.labels.le
		});
	}
});

return JSON.stringify(result);','0',''),
('118818','60104','3','20','3h','0',''),
('118819','60105','1','23','{__name__=~ "scheduler_binding_duration_seconds_*"}','0',''),
('118820','60105','2','21','var lookup = {},
	result = [];
JSON.parse(value).forEach(function (item) {
	if (item.name === "scheduler_binding_duration_seconds_count"){
		result.push({
			''{#TYPE}'': ''totals'',
			''{#SINGLETON}'': ''''
		});

	  }
	else if  (item.name === "scheduler_binding_duration_seconds_bucket"){
		result.push({
			''{#TYPE}'': ''buckets'',
			''{#LE}'': item.labels.le
		});
	}
});

return JSON.stringify(result);','0',''),
('118821','60105','3','20','3h','0',''),
('118822','60106','1','23','{__name__=~ "scheduler_scheduling_algorithm_duration_seconds_*"}','0',''),
('118823','60106','2','21','var lookup = {},
	result = [];
JSON.parse(value).forEach(function (item) {
	if (item.name === "scheduler_scheduling_algorithm_duration_seconds_count"){
		result.push({
			''{#TYPE}'': ''totals'',
			''{#SINGLETON}'': ''''
		});

	  }
	else if  (item.name === "scheduler_scheduling_algorithm_duration_seconds_bucket"){
		result.push({
			''{#TYPE}'': ''buckets'',
			''{#LE}'': item.labels.le
		});
	}
});

return JSON.stringify(result);','0',''),
('118824','60106','3','20','3h','0',''),
('118825','60119','1','22','scheduler_e2e_scheduling_duration_seconds_bucket{result = "{#RESULT}",le = "{#LE}"}
value
','1',''),
('118826','60120','1','22','scheduler_binding_duration_seconds_bucket{le = "{#LE}"}
value
','1',''),
('118827','60121','1','22','scheduler_scheduling_algorithm_duration_seconds_bucket{le = "{#LE}"}
value
','1',''),
('118828','60123','1','12','$.items','1',''),
('118829','60123','2','20','3h','0',''),
('118830','60125','1','23','kube_cronjob_created','0',''),
('118831','60126','1','23','kube_daemonset_status_number_ready','0',''),
('118832','60127','1','23','kube_deployment_spec_paused','0',''),
('118833','60127','2','20','3h','0',''),
('118834','60128','1','23','kube_endpoint_created','0',''),
('118835','60129','1','23','kube_job_owner{owner_is_controller!="true"}','0',''),
('118836','60131','1','20','3h','0',''),
('118837','60132','1','23','kube_node_info','0',''),
('118838','60133','1','23','kube_poddisruptionbudget_created','0',''),
('118839','60134','1','23','kube_pod_start_time','0',''),
('118840','60135','1','23','kube_persistentvolume_info{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}"}','0',''),
('118841','60135','2','21','var input = JSON.parse(value),
	output = [];

input.forEach(function (metric) {
	output.push({ ''{#NAME}'': metric.labels.persistentvolume });
});

if (output.length > 0) {
	output.push({ ''{#SINGLETON}'': '''' });
}

return JSON.stringify(output);','0',''),
('118842','60135','3','20','3h','0',''),
('118843','60136','1','23','kube_persistentvolumeclaim_info','0',''),
('118844','60136','2','21','var input = JSON.parse(value),
	lookup = {},
	output = [];

input.forEach(function (metric) {
	var namespace = metric.labels.namespace;
	if (!(lookup[namespace])) {
		lookup[namespace] = 1;
		output.push({
			''{#IS_SUM}'': '''',
			''{#NAMESPACE}'': metric.labels.namespace
		});
	}
	output.push({
		''{#NAME}'': metric.labels.persistentvolumeclaim,
		''{#NAMESPACE}'': metric.labels.namespace
	});
});

return JSON.stringify(output);','0',''),
('118845','60136','3','20','3h','0',''),
('118846','60137','1','20','3h','0',''),
('118847','60138','1','23','kube_replicaset_status_replicas','0',''),
('118848','60138','2','20','3h','0',''),
('118849','60140','1','23','kube_statefulset_status_replicas','0',''),
('118850','60140','2','20','3h','0',''),
('118851','60141','1','23','openshift_build_created','0',''),
('118852','60141','2','20','3h','0',''),
('118853','60142','1','23','openshift_buildconfig_created','0',''),
('118854','60142','2','20','3h','0',''),
('118855','60143','1','23','openshift_clusterresourcequota_usage','0',''),
('118856','60143','2','20','3h','0',''),
('118857','60144','1','23','openshift_route_info','0',''),
('118858','60144','2','20','3h','0',''),
('118859','60145','1','12','$.items.[?(@.metadata.name == "{#NAME}")].conditions[?(@.type == "Healthy")].status.first()','1',''),
('118860','60146','1','22','kube_job_failed{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*", condition="true"}
function
sum','1',''),
('118861','60147','1','22','kube_job_complete{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*", condition="true"}
function
sum','1',''),
('118862','60148','1','22','kube_cronjob_status_last_schedule_time{namespace="{#NAMESPACE}", cronjob="{#NAME}"}
value
','1',''),
('118863','60148','2','1','1','0',''),
('118864','60149','1','22','kube_cronjob_next_schedule_time{namespace="{#NAMESPACE}", cronjob="{#NAME}"}
value
','1',''),
('118865','60149','2','1','1','0',''),
('118866','60150','1','22','kube_cronjob_spec_suspend{namespace="{#NAMESPACE}", cronjob="{#NAME}"}
value
','1',''),
('118867','60150','2','20','1h','0',''),
('118868','60151','1','22','kube_cronjob_status_active{namespace="{#NAMESPACE}", cronjob="{#NAME}"}
value
','1',''),
('118869','60152','1','22','kube_job_status_failed{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*"}
function
sum','1',''),
('118870','60153','1','22','kube_job_status_succeeded{namespace="{#NAMESPACE}", job_name=~"{#NAME}-*"}
function
sum','1',''),
('118871','60154','1','22','kube_daemonset_status_desired_number_scheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}
value
','1',''),
('118872','60155','1','22','kube_daemonset_status_number_misscheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}
value
','1',''),
('118873','60156','1','22','kube_daemonset_status_number_ready{namespace="{#NAMESPACE}", daemonset="{#NAME}"}
value
','1',''),
('118874','60157','1','22','kube_daemonset_status_current_number_scheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}
value
','1',''),
('118875','60158','1','22','kube_daemonset_status_updated_number_scheduled{namespace="{#NAMESPACE}", daemonset="{#NAME}"}
value
','1',''),
('118876','60159','1','22','kube_deployment_status_replicas{namespace="{#NAMESPACE}", deployment="{#NAME}"}
value
','1',''),
('118877','60160','1','22','kube_deployment_status_replicas_available{namespace="{#NAMESPACE}", deployment="{#NAME}"}
value
','1',''),
('118878','60161','1','22','kube_deployment_spec_replicas{namespace="{#NAMESPACE}", deployment="{#NAME}"}
value
','1',''),
('118879','60162','1','23','{__name__=~"^kube_deployment_(spec_replicas|status_replicas_available)$", namespace="{#NAMESPACE}", deployment="{#NAME}"}','0',''),
('118880','60162','2','21','var data = JSON.parse(value),
	replicas_desired,
	replicas_available;

if (data.length !== 2) {
	throw ''Incorrect length of JSON (must be 2). Actual length: '' + data.length;
}

JSON.parse(value).forEach(function (item) {
	if (item.name === ''kube_deployment_spec_replicas'') {
		replicas_desired = item.value;
	}
	if (item.name === ''kube_deployment_status_replicas_available'') {
		replicas_available = item.value;
	}
});

return Math.abs(replicas_desired - replicas_available);','0',''),
('118881','60163','1','22','kube_deployment_status_replicas_unavailable{namespace="{#NAMESPACE}", deployment="{#NAME}"}
value
','1',''),
('118882','60164','1','22','kube_deployment_status_replicas_updated{namespace="{#NAMESPACE}", deployment="{#NAME}"}
value
','1',''),
('118883','60165','1','22','kube_deployment_spec_strategy_rollingupdate_max_unavailable{namespace="{#NAMESPACE}", deployment="{#NAME}"}
value
','1',''),
('118884','60166','1','22','kube_deployment_spec_paused{namespace="{#NAMESPACE}", deployment="{#NAME}"}
value
','1',''),
('118885','60167','1','22','kube_endpoint_address_available{namespace="{#NAMESPACE}", endpoint="{#NAME}"}
value
','1',''),
('118886','60168','1','22','kube_endpoint_address_not_ready{namespace="{#NAMESPACE}", endpoint="{#NAME}"}
value
','1',''),
('118887','60169','1','22','kube_endpoint_created{namespace="{#NAMESPACE}", endpoint="{#NAME}"}
value
','1',''),
('118888','60169','2','21','return (Math.floor(Date.now()/1000)-Number(value));','0',''),
('118889','60170','1','22','kube_job_failed{namespace="{#NAMESPACE}", job_name="{#NAME}", condition="true"}
value
','1',''),
('118890','60171','1','22','kube_job_complete{namespace="{#NAMESPACE}", job_name="{#NAME}", condition="true"}
value
','1',''),
('118891','60172','1','22','kube_job_status_failed{namespace="{#NAMESPACE}", job_name="{#NAME}"}
value
','1',''),
('118892','60173','1','22','kube_job_status_succeeded{namespace="{#NAMESPACE}", job_name="{#NAME}"}
value
','1',''),
('118893','60174','1','12','$.[?(@.name == "{#NAME}")].value.first()','1',''),
('118894','60175','1','22','kube_node_status_allocatable{node="{#NAME}", resource="cpu"}
value
','1',''),
('118895','60176','1','22','kube_node_status_capacity{node="{#NAME}", resource="cpu"}
value
','1',''),
('118896','60177','1','22','kube_node_status_allocatable{node="{#NAME}", resource="ephemeral_storage"}
value
','1',''),
('118897','60178','1','22','kube_node_status_capacity{node="{#NAME}", resource="ephemeral_storage"}
value
','1',''),
('118898','60179','1','22','kube_node_status_allocatable{node="{#NAME}", resource="memory"}
value
','1',''),
('118899','60180','1','22','kube_node_status_capacity{node="{#NAME}", resource="memory"}
value
','1',''),
('118900','60181','1','22','kube_node_status_allocatable{node="{#NAME}", resource="pods"}
value
','1',''),
('118901','60182','1','22','kube_node_status_capacity{node="{#NAME}", resource="pods"}
value
','1',''),
('118902','60183','1','22','kube_poddisruptionbudget_status_pod_disruptions_allowed{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}
value
','1',''),
('118903','60184','1','22','kube_poddisruptionbudget_status_desired_healthy{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}
value
','1',''),
('118904','60185','1','22','kube_poddisruptionbudget_status_current_healthy{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}
value
','1',''),
('118905','60186','1','22','kube_poddisruptionbudget_status_expected_pods{namespace="{#NAMESPACE}", poddisruptionbudget="{#NAME}"}
value
','1',''),
('118906','60187','1','22','kube_pod_container_resource_limits{namespace="{#NAMESPACE}", pod="{#NAME}", resource="cpu"}
function
sum','1',''),
('118907','60188','1','22','kube_pod_container_resource_limits{namespace="{#NAMESPACE}", pod="{#NAME}", resource="memory"}
function
sum','1',''),
('118908','60189','1','22','kube_pod_container_resource_requests{namespace="{#NAMESPACE}", pod="{#NAME}", resource="cpu"}
function
sum','1',''),
('118909','60190','1','22','kube_pod_container_resource_requests{namespace="{#NAMESPACE}", pod="{#NAME}", resource="memory"}
function
sum','1',''),
('118910','60191','1','22','kube_pod_container_status_ready{namespace="{#NAMESPACE}", pod="{#NAME}"}
function
sum','1',''),
('118911','60192','1','22','kube_pod_container_status_restarts_total{namespace="{#NAMESPACE}", pod="{#NAME}"}
function
sum','1',''),
('118912','60193','1','22','kube_pod_container_status_running{namespace="{#NAMESPACE}", pod="{#NAME}"}
function
sum','1',''),
('118913','60194','1','22','kube_pod_container_status_terminated{namespace="{#NAMESPACE}", pod="{#NAME}"}
function
sum','1',''),
('118914','60195','1','22','kube_pod_container_status_waiting{namespace="{#NAMESPACE}", pod="{#NAME}"}
function
sum','1',''),
('118915','60196','1','22','kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Failed"}
value
','1',''),
('118916','60197','1','22','kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Pending"}
value
','1',''),
('118917','60198','1','22','kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Running"}
value
','1',''),
('118918','60199','1','22','kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Succeeded"}
value
','1',''),
('118919','60200','1','22','kube_pod_status_phase{namespace="{#NAMESPACE}", pod="{#NAME}", phase="Unknown"}
value
','1',''),
('118920','60201','1','22','kube_pod_status_ready{namespace="{#NAMESPACE}", pod="{#NAME}", condition="true"}
value
','1',''),
('118921','60202','1','22','kube_pod_status_scheduled{namespace="{#NAMESPACE}", pod="{#NAME}", condition="true"}
value
','1',''),
('118922','60203','1','22','kube_pod_status_unschedulable{namespace="{#NAMESPACE}", pod="{#NAME}"}
value
','1',''),
('118923','60204','1','22','kube_persistentvolume_capacity_bytes{persistentvolume="{#NAME}"}
value
','1',''),
('118924','60205','1','22','kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Available"}
function
sum','1',''),
('118925','60206','1','22','kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Bound"}
function
sum','1',''),
('118926','60207','1','22','kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Failed"}
function
sum','1',''),
('118927','60208','1','22','kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Pending"}
function
sum','1',''),
('118928','60209','1','22','kube_persistentvolume_status_phase{persistentvolume=~"{$KUBE.LLD.FILTER.PV.MATCHES}", persistentvolume!~"{$KUBE.LLD.FILTER.PV.NOT_MATCHES}", phase="Released"}
function
sum','1',''),
('118929','60210','1','22','kube_persistentvolume_status_phase{persistentvolume="{#NAME}"} == 1
label
phase','1',''),
('118930','60210','2','21','return [''Available'', ''Bound'', ''Failed'', ''Lost'', ''Pending'', ''Released''].indexOf(value) + 1 || ''Problem with status processing in JS, no such PV status: '' + value;','0',''),
('118931','60211','1','22','kube_persistentvolumeclaim_resource_requests_storage_bytes{namespace="{#NAMESPACE}", persistentvolumeclaim="{#NAME}"}
value
','1',''),
('118932','60212','1','22','kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", phase="Bound"}
function
sum','1',''),
('118933','60213','1','22','kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", phase="Lost"}
function
sum','1',''),
('118934','60214','1','22','kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", phase="Pending"}
function
sum','1',''),
('118935','60215','1','22','kube_persistentvolumeclaim_status_phase{namespace="{#NAMESPACE}", persistentvolumeclaim="{#NAME}"} == 1
label
phase','1',''),
('118936','60215','2','21','return [''Available'', ''Bound'', ''Failed'', ''Lost'', ''Pending'', ''Released''].indexOf(value) + 1 || ''Problem with status processing in JS, no such PVC status: '' + value;','0',''),
('118937','60216','1','12','$.[?(@.name == "{#NAME}")].value.first()','1',''),
('118938','60217','1','22','kube_replicaset_status_fully_labeled_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}
value
','1',''),
('118939','60218','1','22','kube_replicaset_status_ready_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}
value
','1',''),
('118940','60219','1','22','kube_replicaset_status_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}
value
','1',''),
('118941','60220','1','22','kube_replicaset_spec_replicas{namespace="{#NAMESPACE}", replicaset="{#NAME}"}
value
','1',''),
('118942','60221','1','23','{__name__=~"^kube_replicaset_(spec_replicas|status_ready_replicas)$", namespace="{#NAMESPACE}", replicaset="{#NAME}"}','0',''),
('118943','60221','2','21','var data = JSON.parse(value),
	replicas_desired,
	replicas_ready;

if (data.length !== 2) {
	throw ''Incorrect length of JSON (must be 2). Actual length: '' + data.length;
}

JSON.parse(value).forEach(function (item) {
	if (item.name === ''kube_replicaset_spec_replicas'') {
		replicas_desired = item.value;
	}
	if (item.name === ''kube_replicaset_status_ready_replicas'') {
		replicas_ready = item.value;
	}
});

return Math.abs(replicas_desired - replicas_ready);','0',''),
('118944','60222','1','22','kube_statefulset_status_replicas{namespace="{#NAMESPACE}", statefulset="{#NAME}"}
value
','1',''),
('118945','60223','1','22','kube_statefulset_status_replicas_current{namespace="{#NAMESPACE}", statefulset="{#NAME}"}
value
','1',''),
('118946','60224','1','22','kube_statefulset_replicas{namespace="{#NAMESPACE}", statefulset="{#NAME}"}
value
','1',''),
('118947','60225','1','23','{__name__=~"^kube_statefulset_(status_replicas|status_replicas_ready)$", namespace="{#NAMESPACE}", statefulset="{#NAME}"}','0',''),
('118948','60225','2','21','var data = JSON.parse(value),
	replicas,
	replicas_ready;

if (data.length !== 2) {
	throw ''Incorrect length of JSON (must be 2). Actual length: '' + data.length;
}

JSON.parse(value).forEach(function (item) {
	if (item.name === ''kube_statefulset_status_replicas'') {
		replicas = item.value;
	}
	if (item.name === ''kube_statefulset_status_replicas_ready'') {
		replicas_ready = item.value;
	}
});

return Math.abs(replicas - replicas_ready);','0',''),
('118949','60226','1','22','kube_statefulset_status_replicas_ready{namespace="{#NAMESPACE}", statefulset="{#NAME}"}
value
','1',''),
('118950','60227','1','22','kube_statefulset_status_replicas_updated{namespace="{#NAMESPACE}", statefulset="{#NAME}"}
value
','1',''),
('118951','60228','1','22','openshift_build_created{namespace="{#NAMESPACE}", build="{#NAME}"}
value
','1',''),
('118952','60228','2','1','1','0',''),
('118953','60228','3','20','3h','0',''),
('118954','60229','1','22','openshift_build_metadata_generation{namespace="{#NAMESPACE}", build="{#NAME}"}
value
','1',''),
('118955','60230','1','22','openshift_build_status_phase{build="{#NAME}"} == 1
label
build_phase','1',''),
('118956','60230','2','21','return [''complete'', ''cancelled'', ''new'', ''pending'', ''running'', ''failed'', ''error''].indexOf(value) + 1 || ''Problem with status processing in JS, no such build status: '' + value;','0',''),
('118957','60231','1','22','openshift_buildconfig_created{namespace="{#NAMESPACE}", buildconfig="{#NAME}"}
value
','1',''),
('118958','60231','2','1','1','0',''),
('118959','60231','3','20','3h','0',''),
('118960','60232','1','22','openshift_buildconfig_metadata_generation{namespace="{#NAMESPACE}", buildconfig="{#NAME}"}
value
','1',''),
('118961','60233','1','22','openshift_buildconfig_status_latest_version{namespace="{#NAMESPACE}", buildconfig="{#NAME}"}
value
','1',''),
('118962','60233','2','20','3h','0',''),
('118963','60234','1','22','openshift_clusterresourcequota_usage{name="{#NAME}", resource="{#RESOURCE}", type="{#TYPE}"}
value
','1',''),
('118964','60235','1','22','openshift_route_created{namespace="{#NAMESPACE}", route="{#NAME}"}
value
','1',''),
('118965','60235','2','1','1','0',''),
('118966','60235','3','20','3h','0',''),
('118967','60236','1','22','openshift_route_status{route="{#NAME}"} == 1
label
status','1',''),
('118968','60236','2','6','','0',''),
('118969','60237','1','12','$.projects','0',''),
('118970','60239','1','12','$.issues[?(@.priority.name==''high'')].length()','0',''),
('118971','60240','1','12','$.issues[?(@.priority.name==''immediate'')].length()','0',''),
('118972','60241','1','12','$.issues[?(@.priority.name==''low'')].length()','0',''),
('118973','60242','1','12','$.issues[?(@.priority.name==''none'')].length()','0',''),
('118974','60243','1','12','$.issues[?(@.priority.name==''normal'')].length()','0',''),
('118975','60244','1','12','$.issues[?(@.priority.name==''urgent'')].length()','0',''),
('118976','60245','1','12','$.issues[?(@.resolution.name==''duplicate'')].length()','0',''),
('118977','60246','1','12','$.issues[?(@.resolution.name==''fixed'')].length()','0',''),
('118978','60247','1','12','$.issues[?(@.resolution.name==''not fixable'')].length()','0',''),
('118979','60248','1','12','$.issues[?(@.resolution.name==''no change required'')].length()','0',''),
('118980','60249','1','12','$.issues[?(@.resolution.name==''open'')].length()','0',''),
('118981','60250','1','12','$.issues[?(@.resolution.name==''reopened'')].length()','0',''),
('118982','60251','1','12','$.issues[?(@.resolution.name==''suspended'')].length()','0',''),
('118983','60252','1','12','$.issues[?(@.resolution.name==''unable to duplicate'')].length()','0',''),
('118984','60253','1','12','$.issues[?(@.resolution.name==''wont fix'')].length()','0',''),
('118985','60254','1','12','$.issues[?(@.severity.name==''block'')].length()','0',''),
('118986','60255','1','12','$.issues[?(@.severity.name==''crash'')].length()','0',''),
('118987','60256','1','12','$.issues[?(@.severity.name==''feature'')].length()','0',''),
('118988','60257','1','12','$.issues[?(@.severity.name==''major'')].length()','0',''),
('118989','60258','1','12','$.issues[?(@.severity.name==''minor'')].length()','0',''),
('118990','60259','1','12','$.issues[?(@.severity.name==''text'')].length()','0',''),
('118991','60260','1','12','$.issues[?(@.severity.name==''trivial'')].length()','0',''),
('118992','60261','1','12','$.issues[?(@.severity.name==''tweak'')].length()','0',''),
('118993','60262','1','12','$.issues[?(@.status.name==''acknowledged'')].length()','0',''),
('118994','60263','1','12','$.issues[?(@.status.name==''assigned'')].length()','0',''),
('118995','60264','1','12','$.issues[?(@.status.name==''closed'')].length()','0',''),
('118996','60265','1','12','$.issues[?(@.status.name==''confirmed'')].length()','0',''),
('118997','60266','1','12','$.issues[?(@.status.name==''feedback'')].length()','0',''),
('118998','60267','1','12','$.issues[?(@.status.name==''new'')].length()','0',''),
('118999','60268','1','12','$.issues[?(@.status.name==''resolved'')].length()','0',''),
('119000','60269','1','12','$.issues.length()','0',''),
('119001','60270','1','12','$.services.value','0',''),
('119002','60270','2','20','6h','0',''),
('119003','60271','1','12','$.services.value[?(@.service == ''{#NAME}'')].status.first()','0',''),
('119004','60271','2','21','if (value !== ''null'') {
  const idx = [
	''serviceOperational'',
	''investigating'',
	''restoringService'',
	''verifyingService'',
	''serviceRestored'',
	''postIncidentReviewPublished'',
	''serviceDegradation'',
	''serviceInterruption'',
	''extendedRecovery'',
	''falsePositive'',
	''investigationSuspended'',
	].indexOf(value);

	return idx !== -1 ? idx : 11;
	}','0',''),
('119005','60271','3','20','1d','0',''),
('119006','60272','1','12','$.ocs.data.users','2','[]'),
('119007','60272','2','21','return JSON.stringify(JSON.parse(value).map(function(user) {return {user_name: user}}));','0',''),
('119008','60273','1','26','-1','3','Could not get data.'),
('119010','60274','1','12','$.ocs.data.displayname','1',''),
('119011','60274','2','20','1h','0',''),
('119012','60275','1','12','$.ocs.data.enabled','1',''),
('119013','60275','2','6','1h','0',''),
('119014','60276','1','21','function getField(data, path) {
	var steps = path.split(''.'');
	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];
		if (typeof data !== ''object'' || typeof data[step] === ''undefined'') {
			throw ''Required field was not found: '' + path;
		}

		data = data[step];
	}

	return data;
}

var data = JSON.parse(value),
	lastlogin = getField(data,''ocs.data.lastLogin'');

if (lastlogin === ''0'')
	return -1

return Math.floor((Date.now() - lastlogin) / 1000 / 86400);','0',''),
('119015','60276','2','20','1h','0',''),
('119016','60277','1','12','$.ocs.data.language','1',''),
('119017','60277','2','20','1h','0',''),
('119018','60278','1','12','$.ocs.data.lastLogin','1',''),
('119019','60278','2','1','0.001','0',''),
('119020','60278','3','20','1h','0',''),
('119021','60279','1','12','$.ocs.data.quota.free','1',''),
('119022','60279','2','20','1h','0',''),
('119023','60280','1','12','$.ocs.data.quota.relative','1',''),
('119024','60280','2','20','1h','0',''),
('119025','60281','1','12','$.ocs.data.quota.total','1',''),
('119026','60281','2','20','1h','0',''),
('119027','60282','1','12','$.ocs.data.quota.used','1',''),
('119028','60282','2','20','1h','0',''),
('119029','60283','1','12','$.ocs.data.quota.quota','1',''),
('119030','60283','2','25','none
-99','0',''),
('119031','60283','3','20','1h','0',''),
('119032','60284','1','12','$.ocs.data.storageLocation','1',''),
('119033','60284','2','20','1h','0',''),
('119034','60287','1','12','$.[?(@["name"]=="{#NGINX.NAME}")].first()','2','Failed to retrieve process {#NGINX.NAME} data'),
('119035','60288','1','12','$.processes','2','0'),
('119036','60288','2','20','1h','0',''),
('119037','60289','1','12','$.pmem','1',''),
('119038','60290','1','12','$.rss','1',''),
('119039','60291','1','12','$.vsize','1',''),
('119040','60294','1','12','$.[?(@["name"]=="{#NGINX.NAME}")].first()','2','Failed to retrieve process {#NGINX.NAME} data'),
('119041','60295','1','12','$.processes','2','0'),
('119042','60295','2','20','1h','0',''),
('119043','60296','1','12','$.pmem','1',''),
('119044','60297','1','12','$.rss','1',''),
('119045','60298','1','12','$.vsize','1',''),
('119046','60299','1','21','var output = [];

Object.keys(JSON.parse(value)).forEach(function (v) {
	output.push({ ''{#NAME}'': v })
});

return JSON.stringify(output);','0',''),
('119047','60299','2','20','30m','0',''),
('119048','60300','1','21','var output = [];

Object.keys(JSON.parse(value)).forEach(function (v) {
	output.push({ ''{#NAME}'': v })
});

return JSON.stringify(output);','0',''),
('119049','60300','2','20','30m','0',''),
('119050','60301','1','21','var input = JSON.parse(value),
	output = [];

Object.keys(input).forEach(function (upstream) {
	input[upstream].peers.forEach(function (peer) {
		output.push({ ''{#UPSTREAM}'': upstream, ''{#PEER}'': peer.server })
	});
});

return JSON.stringify(output);','0',''),
('119051','60301','2','20','30m','0',''),
('119052','60302','1','21','var output = [];

Object.keys(JSON.parse(value)).forEach(function (v) {
	output.push({ ''{#NAME}'': v })
});

return JSON.stringify(output);','0',''),
('119053','60302','2','20','30m','0',''),
('119054','60303','1','21','var output = [];

Object.keys(JSON.parse(value)).forEach(function (v) {
	output.push({ ''{#NAME}'': v })
});

return JSON.stringify(output);','0',''),
('119055','60303','2','20','30m','0',''),
('119056','60304','1','21','var output = [];

Object.keys(JSON.parse(value)).forEach(function (v) {
	output.push({ ''{#NAME}'': v })
});

return JSON.stringify(output);','0',''),
('119057','60304','2','20','30m','0',''),
('119058','60305','1','21','var input = JSON.parse(value),
	output = [];

Object.keys(input).forEach(function (upstream) {
	input[upstream].peers.forEach(function (peer) {
		output.push({ ''{#UPSTREAM}'': upstream, ''{#PEER}'': peer.server })
	});
});

return JSON.stringify(output);','0',''),
('119059','60305','2','20','30m','0',''),
('119060','60306','1','21','var output = [];

Object.keys(JSON.parse(value)).forEach(function (v) {
	output.push({ ''{#NAME}'': v })
});

return JSON.stringify(output);','0',''),
('119061','60306','2','20','30m','0',''),
('119062','60307','1','12','$[''{#NAME}'']','0',''),
('119063','60308','1','12','$[''{#NAME}'']','0',''),
('119064','60309','1','12','$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].first()','0',''),
('119065','60310','1','12','$[''{#NAME}'']','0',''),
('119066','60311','1','12','$[''{#NAME}'']','0',''),
('119067','60312','1','12','$[''{#NAME}'']','0',''),
('119068','60313','1','12','$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].first()','0',''),
('119069','60314','1','12','$[''{#NAME}'']','0',''),
('119070','60315','1','12','$.discarded','0',''),
('119071','60315','2','10','','0',''),
('119072','60316','1','12','$.received','0',''),
('119073','60316','2','10','','0',''),
('119074','60317','1','12','$.requests','0',''),
('119075','60317','2','10','','0',''),
('119076','60318','1','12','$.responses.1xx','0',''),
('119077','60318','2','10','','0',''),
('119078','60319','1','12','$.responses.2xx','0',''),
('119079','60319','2','10','','0',''),
('119080','60320','1','12','$.responses.3xx','0',''),
('119081','60320','2','10','','0',''),
('119082','60321','1','12','$.responses.4xx','0',''),
('119083','60321','2','10','','0',''),
('119084','60322','1','12','$.responses.5xx','0',''),
('119085','60322','2','10','','0',''),
('119086','60323','1','12','$.responses.total','0',''),
('119087','60323','2','10','','0',''),
('119088','60324','1','12','$.sent','0',''),
('119089','60324','2','10','','0',''),
('119090','60325','1','12','$.discarded','0',''),
('119091','60325','2','10','','0',''),
('119092','60326','1','12','$.processing','0',''),
('119093','60327','1','12','$.received','0',''),
('119094','60327','2','10','','0',''),
('119095','60328','1','12','$.requests','0',''),
('119096','60328','2','10','','0',''),
('119097','60329','1','12','$.responses.1xx','0',''),
('119098','60329','2','10','','0',''),
('119099','60330','1','12','$.responses.2xx','0',''),
('119100','60330','2','10','','0',''),
('119101','60331','1','12','$.responses.3xx','0',''),
('119102','60331','2','10','','0',''),
('119103','60332','1','12','$.responses.4xx','0',''),
('119104','60332','2','10','','0',''),
('119105','60333','1','12','$.responses.5xx','0',''),
('119106','60333','2','10','','0',''),
('119107','60334','1','12','$.responses.total','0',''),
('119108','60334','2','10','','0',''),
('119109','60335','1','12','$.sent','0',''),
('119110','60335','2','10','','0',''),
('119111','60336','1','12','$.active','0',''),
('119112','60337','1','12','$.fails','0',''),
('119113','60337','2','10','','0',''),
('119114','60338','1','12','$.header_time','1',''),
('119115','60339','1','12','$.health_checks.checks','0',''),
('119116','60340','1','12','$.health_checks.fails','0',''),
('119117','60341','1','12','$.health_checks.unhealthy','0',''),
('119118','60342','1','12','$.received','0',''),
('119119','60342','2','10','','0',''),
('119120','60343','1','12','$.requests','0',''),
('119121','60343','2','10','','0',''),
('119122','60344','1','12','$.responses.1xx','0',''),
('119123','60344','2','10','','0',''),
('119124','60345','1','12','$.responses.2xx','0',''),
('119125','60345','2','10','','0',''),
('119126','60346','1','12','$.responses.3xx','0',''),
('119127','60346','2','10','','0',''),
('119128','60347','1','12','$.responses.4xx','0',''),
('119129','60347','2','10','','0',''),
('119130','60348','1','12','$.responses.5xx','0',''),
('119131','60348','2','10','','0',''),
('119132','60349','1','12','$.responses.total','0',''),
('119133','60349','2','10','','0',''),
('119134','60350','1','12','$.response_time','1',''),
('119135','60351','1','12','$.sent','0',''),
('119136','60351','2','10','','0',''),
('119137','60352','1','12','$.state','0',''),
('119138','60352','2','20','3h','0',''),
('119139','60353','1','12','$.unavail','0',''),
('119140','60354','1','12','$.keepalive','0',''),
('119141','60355','1','12','$.zombies','0',''),
('119142','60356','1','12','$.zone','0',''),
('119143','60356','2','20','3h','0',''),
('119144','60357','1','12','$.requests.addr','0',''),
('119145','60357','2','10','','0',''),
('119146','60358','1','12','$.requests.name','0',''),
('119147','60358','2','10','','0',''),
('119148','60359','1','12','$.requests.srv','0',''),
('119149','60359','2','10','','0',''),
('119150','60360','1','12','$.responses.formerr','0',''),
('119151','60360','2','10','','0',''),
('119152','60361','1','12','$.responses.noerror','0',''),
('119153','60361','2','10','','0',''),
('119154','60362','1','12','$.responses.notimp','0',''),
('119155','60362','2','10','','0',''),
('119156','60363','1','12','$.responses.nxdomain','0',''),
('119157','60363','2','10','','0',''),
('119158','60364','1','12','$.responses.refused','0',''),
('119159','60364','2','10','','0',''),
('119160','60365','1','12','$.responses.servfail','0',''),
('119161','60365','2','10','','0',''),
('119162','60366','1','12','$.responses.timedout','0',''),
('119163','60366','2','10','','0',''),
('119164','60367','1','12','$.responses.unknown','0',''),
('119165','60367','2','10','','0',''),
('119166','60368','1','12','$.connections','0',''),
('119167','60368','2','10','','0',''),
('119168','60369','1','12','$.discarded','0',''),
('119169','60369','2','10','','0',''),
('119170','60370','1','12','$.processing','0',''),
('119171','60371','1','12','$.received','0',''),
('119172','60371','2','10','','0',''),
('119173','60372','1','12','$.sent','0',''),
('119174','60372','2','10','','0',''),
('119175','60373','1','12','$.sessions.2xx','0',''),
('119176','60373','2','10','','0',''),
('119177','60374','1','12','$.sessions.4xx','0',''),
('119178','60374','2','10','','0',''),
('119179','60375','1','12','$.sessions.5xx','0',''),
('119180','60375','2','10','','0',''),
('119181','60376','1','12','$.sessions.total','0',''),
('119182','60376','2','10','','0',''),
('119183','60377','1','12','$.active','0',''),
('119184','60378','1','12','$.connections','0',''),
('119185','60379','1','12','$.connect_time','1',''),
('119186','60380','1','12','$.fails','0',''),
('119187','60380','2','10','','0',''),
('119188','60381','1','12','$.first_byte_time','1',''),
('119189','60382','1','12','$.health_checks.checks','0',''),
('119190','60383','1','12','$.health_checks.fails','0',''),
('119191','60384','1','12','$.health_checks.unhealthy','0',''),
('119192','60385','1','12','$.received','0',''),
('119193','60385','2','10','','0',''),
('119194','60386','1','12','$.response_time','1',''),
('119195','60387','1','12','$.sent','0',''),
('119196','60387','2','10','','0',''),
('119197','60388','1','12','$.state','0',''),
('119198','60388','2','20','3h','0',''),
('119199','60389','1','12','$.unavail','0',''),
('119200','60390','1','12','$.zombies','0',''),
('119201','60391','1','12','$.zone','0',''),
('119202','60391','2','20','3h','0',''),
('119203','60392','1','12','$.body','1',''),
('119204','60392','2','20','1h','0',''),
('119205','60393','1','16','$.error','1',''),
('119206','60393','2','20','1h','0',''),
('119207','60394','1','21','var raw = JSON.parse(value),
	body = raw.body,
	exist_key = [],
	result = [];

function getField(data, path) {
	var steps = path.split(''.'');
	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];
		if (typeof data !== ''object'' || typeof data[step] === ''undefined'') {
			throw ''Required field "'' + path + ''" is not present in data received.'';
		}
		data = data[step];
	}
	return data;
}

for (i in body) {
	var uniq_element = true;

	for (key in exist_key) {
		if ((exist_key[key].JobID == getField(body[i], ''JobID'')) &&
			(exist_key[key].TaskGroup == getField(body[i], ''TaskGroup'')) &&
			(exist_key[key].Namespace == getField(body[i], ''Namespace''))) {
			uniq_element = false;
		}
	}

	if (uniq_element) {
		exist_key.push({ ''JobID'': body[i].JobID, ''TaskGroup'': body[i].TaskGroup, ''Namespace'': body[i].Namespace });
		result.push(body[i]);
	}
}

return JSON.stringify(result);','0',''),
('119208','60394','2','20','1h','0',''),
('119209','60395','1','23','nomad_client_host_disk_available{disk=~".*"}','0',''),
('119210','60396','1','21','var raw = JSON.parse(value),
	body = raw.body[0],
	arr = [];

function getField(data, path) {
	var steps = path.split(''.'');
	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];
		if (typeof data !== ''object'' || typeof data[step] === ''undefined'') {
			throw ''Required field "'' + path + ''" is not present in data received.'';
		}
		data = data[step];
	}
	return data;
}

var keys = Object.keys(getField(body,''Drivers''));

	for (k in keys) {
		arr.push({
			''{#DRIVER.NAME}'': keys[k],
			''{#DRIVER.DETECTED}'': getField(body.Drivers[keys[k]],''Detected''),
		});
	}

	return JSON.stringify(arr);','0',''),
('119211','60396','2','20','1h','0',''),
('119212','60397','1','12','$.body..Drivers.{#DRIVER.NAME}.Detected.first()','0',''),
('119213','60397','2','6','','0',''),
('119214','60398','1','12','$.body..Drivers.{#DRIVER.NAME}.Healthy.first()','0',''),
('119215','60398','2','6','','0',''),
('119216','60398','3','20','1h','0',''),
('119217','60399','1','22','nomad_client_allocs_cpu_allocated{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119218','60400','1','22','nomad_client_allocs_cpu_system{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119219','60401','1','22','nomad_client_allocs_cpu_throttled_periods{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119220','60401','2','1','1.0E-9','0',''),
('119221','60402','1','22','nomad_client_allocs_cpu_throttled_time{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','1',''),
('119222','60402','2','1','1.0E-9','0',''),
('119223','60403','1','22','nomad_client_allocs_cpu_total_percent{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119224','60404','1','22','nomad_client_allocs_cpu_total_ticks{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119225','60405','1','22','nomad_client_allocs_cpu_user{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119226','60406','1','22','nomad_client_allocs_memory_allocated{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119227','60407','1','22','nomad_client_allocs_memory_cache{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119228','60408','1','22','nomad_client_allocs_memory_swap{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119229','60409','1','22','nomad_client_allocs_memory_usage{job="{#JOB.NAME}",task_group="{#JOB.TASK.GROUP}",namespace="{#JOB.NAMESPACE}"}
function
avg','0',''),
('119230','60410','1','22','nomad_client_host_disk_available{disk="{#DEV.NAME}"}
value
','0',''),
('119231','60411','1','22','nomad_client_host_disk_inodes_percent{disk="{#DEV.NAME}"}
value
','0',''),
('119232','60412','1','22','nomad_client_host_disk_size{disk="{#DEV.NAME}"}
value
','0',''),
('119233','60413','1','22','nomad_client_host_disk_used{disk="{#DEV.NAME}"}
value
','0',''),
('119234','60414','1','22','nomad_client_host_disk_used_percent{disk="{#DEV.NAME}"}
value
','0',''),
('119235','60415','1','21','const json_data = JSON.parse(value);
var output_data = [];

for (var entity in json_data) {
	output_data.push({
		"{#ALERT.KEY}": entity,
		"{#ALERT.STATE}": json_data[entity].state,
		"{#ALERT.TITLE}": json_data[entity].title,
		"{#ALERT.SEVERITY}": json_data[entity].severity,
		"{#ALERT.NAME}": json_data[entity].name.length > 50 ? json_data[entity].name.substr(0, 50) + ''...'' : json_data[entity].name
	});
}

return JSON.stringify(output_data);','0',''),
('119236','60415','2','20','1h','0',''),
('119237','60416','1','21','const json_data = JSON.parse(value);
var output_data = [];

for (var entity in json_data) {
	output_data.push({
		"{#ALERT.KEY}": entity,
		"{#ALERT.STATE}": json_data[entity].state,
		"{#ALERT.TITLE}": json_data[entity].title,
		"{#ALERT.SEVERITY}": json_data[entity].severity,
		"{#ALERT.NAME}": json_data[entity].name.length > 50 ? json_data[entity].name.substr(0, 50) + ''...'' : json_data[entity].name
	});
}

return JSON.stringify(output_data);','0',''),
('119238','60416','2','20','1h','0',''),
('119239','60417','1','21','const json_data = JSON.parse(value);
var output_data = [];

for (var entity in json_data) {
	output_data.push({
		"{#DISK.ID}": json_data[entity].id,
		"{#DISK.SERIAL}": json_data[entity].mount_path.split(''/'').pop(),
		"{#DISK.MOUNT.PATH}": json_data[entity].mount_path,
		"{#DISK.LOCATION}": json_data[entity].location
	});
};

return JSON.stringify(output_data);','0',''),
('119240','60417','2','20','1h','0',''),
('119241','60418','1','12','$.entities','0',''),
('119242','60418','2','21','const json_data = JSON.parse(value);

const result = json_data.map(function(entity) {
	return {
		"{#NUTANIX.CLUSTER.NAME}": entity.name ? entity.name : entity.uuid,
		"{#NUTANIX.CLUSTER.UUID}": entity.uuid
	};
});

return JSON.stringify(result);','0',''),
('119243','60418','3','20','1h','0',''),
('119244','60419','1','12','$.entities','0',''),
('119245','60419','2','21','const json_data = JSON.parse(value);

const result = json_data.map(function(entity) {
	return {
		"{#NUTANIX.HOST.NAME}": entity.name ? entity.name : entity.uuid,
		"{#NUTANIX.HOST.UUID}": entity.uuid
	};
});

return JSON.stringify(result);','0',''),
('119246','60419','3','20','1h','0',''),
('119247','60420','1','21','const json_data = JSON.parse(value);
var output_data = [];

for (var entity in json_data) {
	output_data.push({
		"{#STORAGE.CONTAINER.UUID}": json_data[entity].storage_container_uuid,
		"{#STORAGE.CONTAINER.NAME}": json_data[entity].name
	});
}

return JSON.stringify(output_data);','0',''),
('119248','60420','2','20','1h','0',''),
('119249','60421','1','12','$.{#ALERT.KEY}.count','0',''),
('119250','60421','2','20','1h','0',''),
('119251','60422','1','12','$.{#ALERT.KEY}.created','0',''),
('119252','60422','2','1','1.0E-6','0',''),
('119253','60422','3','20','1h','0',''),
('119254','60423','1','12','$.{#ALERT.KEY}.last_id','0',''),
('119255','60423','2','20','12h','0',''),
('119256','60424','1','12','$.{#ALERT.KEY}.message','0',''),
('119257','60424','2','20','12h','0',''),
('119258','60425','1','12','$.{#ALERT.KEY}.severity','0',''),
('119259','60425','2','20','1h','0',''),
('119260','60426','1','12','$.{#ALERT.KEY}.state','0',''),
('119261','60426','2','20','1h','0',''),
('119262','60427','1','12','$.{#ALERT.KEY}.title','0',''),
('119263','60427','2','20','12h','0',''),
('119264','60428','1','12','$.{#ALERT.KEY}.count','0',''),
('119265','60428','2','20','1h','0',''),
('119266','60429','1','12','$.{#ALERT.KEY}.created','0',''),
('119267','60429','2','1','1.0E-6','0',''),
('119268','60429','3','20','1h','0',''),
('119269','60430','1','12','$.{#ALERT.KEY}.last_id','0',''),
('119270','60430','2','20','12h','0',''),
('119271','60431','1','12','$.{#ALERT.KEY}.message','0',''),
('119272','60431','2','20','12h','0',''),
('119273','60432','1','12','$.{#ALERT.KEY}.severity','0',''),
('119274','60432','2','20','1h','0',''),
('119275','60433','1','12','$.{#ALERT.KEY}.state','0',''),
('119276','60433','2','20','1h','0',''),
('119277','60434','1','12','$.{#ALERT.KEY}.title','0',''),
('119278','60434','2','20','12h','0',''),
('119279','60435','1','12','$.[''{#DISK.ID}''].usage_stats.[''storage.capacity_bytes'']','0',''),
('119280','60435','2','20','12h','0',''),
('119281','60436','1','12','$.[''{#DISK.ID}''].usage_stats.[''storage.free_bytes'']','0',''),
('119282','60436','2','20','1h','0',''),
('119283','60437','1','12','$.[''{#DISK.ID}''].stats.avg_io_latency_usecs','0',''),
('119284','60437','2','1','1.0E-6','0',''),
('119285','60438','1','12','$.[''{#DISK.ID}''].stats.io_bandwidth_kBps','0',''),
('119286','60438','2','1','1024','0',''),
('119287','60439','1','12','$.[''{#DISK.ID}''].stats.num_iops','0',''),
('119288','60440','1','12','$.[''{#DISK.ID}''].usage_stats.[''storage.logical_usage_bytes'']','0',''),
('119289','60440','2','20','1h','0',''),
('119290','60441','1','12','$.[''{#DISK.ID}''].online','0',''),
('119291','60441','2','6','','2','2'),
('119292','60441','3','20','1h','0',''),
('119293','60442','1','12','$.[''{#DISK.ID}''].disk_status','0',''),
('119294','60442','2','21','const idx = [
  ''NORMAL'',
  ''DATA_MIGRATION_INITIATED'',
  ''MARKED_FOR_REMOVAL_BUT_NOT_DETACHABLE'',
  ''DETACHABLE''
].indexOf(value.toUpperCase());
return idx !== -1 ? idx : 4;','0',''),
('119295','60442','3','20','1h','0',''),
('119296','60443','1','12','$.[''{#DISK.ID}''].usage_stats.[''storage.usage_bytes'']','0',''),
('119297','60443','2','20','1h','0',''),
('119298','60444','1','12','$.[''{#STORAGE.CONTAINER.UUID}''].usage_stats.[''storage.capacity_bytes'']','0',''),
('119299','60444','2','20','1h','0',''),
('119300','60445','1','12','$.[''{#STORAGE.CONTAINER.UUID}''].usage_stats.[''storage.free_bytes'']','0',''),
('119301','60445','2','20','1h','0',''),
('119302','60446','1','12','$.[''{#STORAGE.CONTAINER.UUID}''].replication_factor','0',''),
('119303','60446','2','20','1h','0',''),
('119304','60447','1','12','$.[''{#STORAGE.CONTAINER.UUID}''].usage_stats.[''storage.usage_bytes'']','0',''),
('119305','60447','2','20','1h','0',''),
('119306','60448','1','20','1d','0',''),
('119307','60452','1','1','0.001','0',''),
('119308','60453','1','26','0
The requested operation is not available on target device','3','No ECC on the device or ECC mode is turned off.'),
('119309','60454','1','26','0
The requested operation is not available on target device','3','No ECC on the device or ECC mode is turned off.'),
('119310','60456','1','1','1000000','0',''),
('119311','60459','1','1','1000000','0',''),
('119312','60462','1','1','0.001','0',''),
('119313','60463','1','1','0.001','0',''),
('119314','60464','1','26','0
The requested operation is not available on target device','3','The device does not support operation to retrieve serial number.'),
('119315','60465','1','1','1000000','0',''),
('119316','60468','1','1','1000000','0',''),
('119317','60469','1','12','$.average_fps','0',''),
('119318','60470','1','12','$.average_latency_ms','0',''),
('119319','60470','2','1','0.001','0',''),
('119320','60471','1','12','$.session_count','0',''),
('119321','60472','1','12','$.corrected','0',''),
('119322','60473','1','12','$.uncorrected','0',''),
('119323','60474','1','12','$.corrected','0',''),
('119324','60475','1','12','$.uncorrected','0',''),
('119325','60476','1','12','$.free_memory_bytes','0',''),
('119326','60477','1','12','$.total_memory_bytes','0',''),
('119327','60478','1','12','$.used_memory_bytes','0',''),
('119328','60479','1','12','$.free_memory_bytes','0',''),
('119329','60480','1','12','$.reserved_memory_bytes','3','NVML library too old to support this metric.'),
('119330','60481','1','12','$.total_memory_bytes','0',''),
('119331','60482','1','12','$.used_memory_bytes','0',''),
('119332','60483','1','12','$.rx_rate_kb_s','0',''),
('119333','60483','2','1','1024','0',''),
('119334','60484','1','12','$.tx_rate_kb_s','0',''),
('119335','60484','2','1','1024','0',''),
('119336','60485','1','12','$.device','0',''),
('119337','60486','1','12','$.memory','0',''),
('119338','60487','1','20','1d','0',''),
('119339','60491','1','1','0.001','0',''),
('119340','60492','1','26','0
The requested operation is not available on target device','3','No ECC on the device or ECC mode is turned off.'),
('119341','60493','1','26','0
The requested operation is not available on target device','3','No ECC on the device or ECC mode is turned off.'),
('119342','60495','1','1','1000000','0',''),
('119343','60498','1','1','1000000','0',''),
('119344','60501','1','1','0.001','0',''),
('119345','60502','1','1','0.001','0',''),
('119346','60503','1','26','0
The requested operation is not available on target device','3','The device does not support operation to retrieve serial number.'),
('119347','60504','1','1','1000000','0',''),
('119348','60507','1','1','1000000','0',''),
('119349','60508','1','12','$.average_fps','0',''),
('119350','60509','1','12','$.average_latency_ms','0',''),
('119351','60509','2','1','0.001','0',''),
('119352','60510','1','12','$.session_count','0',''),
('119353','60511','1','12','$.corrected','0',''),
('119354','60512','1','12','$.uncorrected','0',''),
('119355','60513','1','12','$.corrected','0',''),
('119356','60514','1','12','$.uncorrected','0',''),
('119357','60515','1','12','$.free_memory_bytes','0',''),
('119358','60516','1','12','$.total_memory_bytes','0',''),
('119359','60517','1','12','$.used_memory_bytes','0',''),
('119360','60518','1','12','$.free_memory_bytes','0',''),
('119361','60519','1','12','$.reserved_memory_bytes','3','NVML library too old to support this metric.'),
('119362','60520','1','12','$.total_memory_bytes','0',''),
('119363','60521','1','12','$.used_memory_bytes','0',''),
('119364','60522','1','12','$.rx_rate_kb_s','0',''),
('119365','60522','2','1','1024','0',''),
('119366','60523','1','12','$.tx_rate_kb_s','0',''),
('119367','60523','2','1','1024','0',''),
('119368','60524','1','12','$.device','0',''),
('119369','60525','1','12','$.memory','0',''),
('119370','60526','1','12','$.data','0',''),
('119371','60526','2','15',E'\\[\\]','3','Failed to receive data about required locations from API'),
('119372','60526','3','20','1h','0',''),
('119373','60527','1','12','$.data.[?(@.id==''{#ID}'')].first()','0',''),
('119374','60528','1','12','$.clouds.all','0',''),
('119375','60528','2','20','1h','0',''),
('119376','60529','1','12','$.weather..description.first()','0',''),
('119377','60529','2','20','1h','0',''),
('119378','60530','1','12','$.main.humidity','0',''),
('119379','60530','2','20','1h','0',''),
('119380','60531','1','12','$.main.pressure','0',''),
('119381','60531','2','1','100','0',''),
('119382','60531','3','20','1h','0',''),
('119383','60532','1','12','$.rain.1h','2','0'),
('119384','60532','2','1','0.001','0',''),
('119385','60532','3','20','1h','0',''),
('119386','60533','1','12','$.snow.1h','2','0'),
('119387','60533','2','1','0.001','0',''),
('119388','60533','3','20','1h','0',''),
('119389','60534','1','12','$.main.temp','0',''),
('119390','60534','2','20','1h','0',''),
('119391','60535','1','12','$.visibility','0',''),
('119392','60535','2','20','1h','0',''),
('119393','60536','1','12','$.wind.deg','0',''),
('119394','60536','2','20','1h','0',''),
('119395','60537','1','12','$.wind.speed','0',''),
('119396','60537','2','20','1h','0',''),
('119397','60539','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInBlock.first()','0',''),
('119398','60539','2','10','8','0',''),
('119399','60540','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInBlock.first()','0',''),
('119400','60541','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInBlock.first()','0',''),
('119401','60541','2','10','8','0',''),
('119402','60542','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInBlock.first()','0',''),
('119403','60543','1','28','1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}
0','0',''),
('119404','60544','1','28','1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}
0','0',''),
('119405','60545','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInPass.first()','0',''),
('119406','60545','2','10','8','0',''),
('119407','60546','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInPass.first()','0',''),
('119408','60547','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInPass.first()','0',''),
('119409','60547','2','10','8','0',''),
('119410','60548','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInPass.first()','0',''),
('119411','60549','1','28','1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}
0','0',''),
('119412','60549','2','10','8','0',''),
('119413','60550','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutBlock.first()','0',''),
('119414','60550','2','10','8','0',''),
('119415','60551','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutBlock.first()','0',''),
('119416','60552','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutBlock.first()','0',''),
('119417','60552','2','10','8','0',''),
('119418','60553','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutBlock.first()','0',''),
('119419','60554','1','28','1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}
0','0',''),
('119420','60555','1','28','1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}
0','0',''),
('119421','60556','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutPass.first()','0',''),
('119422','60556','2','10','8','0',''),
('119423','60557','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutPass.first()','0',''),
('119424','60558','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutPass.first()','0',''),
('119425','60558','2','10','8','0',''),
('119426','60559','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutPass.first()','0',''),
('119427','60560','1','28','1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}
0','0',''),
('119428','60560','2','10','8','0',''),
('119429','60562','1','28','1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}
0','0',''),
('119430','60562','2','1','1000000','0',''),
('119431','60563','1','28','1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}
0','0',''),
('119432','60564','1','28','1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}
0','0',''),
('119433','60566','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInBlock.first()','0',''),
('119434','60566','2','10','8','0',''),
('119435','60567','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInBlock.first()','0',''),
('119436','60568','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInBlock.first()','0',''),
('119437','60568','2','10','8','0',''),
('119438','60569','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInBlock.first()','0',''),
('119439','60570','1','28','1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}
0','0',''),
('119440','60571','1','28','1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}
0','0',''),
('119441','60572','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesInPass.first()','0',''),
('119442','60572','2','10','8','0',''),
('119443','60573','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsInPass.first()','0',''),
('119444','60574','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesInPass.first()','0',''),
('119445','60574','2','10','8','0',''),
('119446','60575','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsInPass.first()','0',''),
('119447','60576','1','28','1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}
0','0',''),
('119448','60576','2','10','8','0',''),
('119449','60577','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutBlock.first()','0',''),
('119450','60577','2','10','8','0',''),
('119451','60578','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutBlock.first()','0',''),
('119452','60579','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutBlock.first()','0',''),
('119453','60579','2','10','8','0',''),
('119454','60580','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutBlock.first()','0',''),
('119455','60581','1','28','1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}
0','0',''),
('119456','60582','1','28','1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}
0','0',''),
('119457','60583','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4BytesOutPass.first()','0',''),
('119458','60583','2','10','8','0',''),
('119459','60584','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf4PktsOutPass.first()','0',''),
('119460','60585','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6BytesOutPass.first()','0',''),
('119461','60585','2','10','8','0',''),
('119462','60586','1','12','$[?(@.pfInterfacesIfDescr == ''{#IFDESCR}'')].pfInterfacesIf6PktsOutPass.first()','0',''),
('119463','60587','1','28','1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}
0','0',''),
('119464','60587','2','10','8','0',''),
('119465','60589','1','28','1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}
0','0',''),
('119466','60589','2','1','1000000','0',''),
('119467','60590','1','28','1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}
0','0',''),
('119468','60591','1','28','1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}
0','0',''),
('119469','60594','1','12','$.[?(@["name"]=="{#PHP_FPM.NAME}")].first()','2','Failed to retrieve process {#PHP_FPM.NAME} data'),
('119470','60595','1','12','$.processes','2','0'),
('119471','60595','2','20','1h','0',''),
('119472','60596','1','12','$.pmem','1',''),
('119473','60597','1','12','$.rss','1',''),
('119474','60598','1','12','$.vsize','1',''),
('119475','60601','1','12','$.[?(@["name"]=="{#PHP_FPM.NAME}")].first()','2','Failed to retrieve process {#PHP_FPM.NAME} data'),
('119476','60602','1','12','$.processes','2','0'),
('119477','60602','2','20','1h','0',''),
('119478','60603','1','12','$.pmem','1',''),
('119479','60604','1','12','$.rss','1',''),
('119480','60605','1','12','$.vsize','1',''),
('119481','60607','1','12','$.[?(@["name"]=="{#NAME}")].first()','2','Failed to retrieve process {#NAME} data'),
('119482','60608','1','12','$.lck','1',''),
('119483','60609','1','12','$.processes','2','0'),
('119484','60609','2','20','1h','0',''),
('119485','60610','1','12','$.page_faults','1',''),
('119486','60611','1','12','$.pmem','1',''),
('119487','60612','1','12','$.rss','1',''),
('119488','60613','1','12','$.swap','1',''),
('119489','60614','1','12','$.threads','1',''),
('119490','60615','1','12','$.vsize','1',''),
('119491','60622','1','21','var rrd_data = JSON.parse(value).data;
return JSON.stringify(rrd_data[rrd_data.length - 2])','0',''),
('119492','60626','1','12','$.data.[?(@.name == ''{#RESOURCE.NAME}'' && @.type == ''cluster'')].quorate.first()','0',''),
('119493','60626','2','20','10m','0',''),
('119494','60627','1','12','$.data.cpu','0',''),
('119495','60627','2','1','100','0',''),
('119496','60627','3','20','10m','0',''),
('119497','60628','1','12','$.data.diskread','0',''),
('119498','60628','2','10','','0',''),
('119499','60628','3','20','10m','0',''),
('119500','60629','1','12','$.data.diskwrite','0',''),
('119501','60629','2','10','','0',''),
('119502','60629','3','20','10m','0',''),
('119503','60630','1','12','$.data.disk','0',''),
('119504','60630','2','20','10m','0',''),
('119505','60631','1','12','$.data.maxdisk','0',''),
('119506','60631','2','20','1h','0',''),
('119507','60632','1','12','$.data.maxmem','0',''),
('119508','60632','2','20','10m','0',''),
('119509','60633','1','12','$.data.mem','0',''),
('119510','60633','2','20','10m','0',''),
('119511','60634','1','12','$.data.netin','0',''),
('119512','60634','2','10','','0',''),
('119513','60634','3','1','8','0',''),
('119514','60634','4','20','10m','0',''),
('119515','60635','1','12','$.data.netout','0',''),
('119516','60635','2','10','','0',''),
('119517','60635','3','1','8','0',''),
('119518','60635','4','20','10m','0',''),
('119519','60636','1','12','$.data.uptime','0',''),
('119520','60637','1','12','$.data.status','0',''),
('119521','60638','1','12','$.cpu','0',''),
('119522','60638','2','1','100','0',''),
('119523','60638','3','20','10m','0',''),
('119524','60639','1','12','$.iowait','0',''),
('119525','60639','2','1','100','0',''),
('119526','60639','3','20','10m','0',''),
('119527','60640','1','12','$.data.kversion','0',''),
('119528','60640','2','20','1d','0',''),
('119529','60641','1','12','$.loadavg','0',''),
('119530','60641','2','20','10m','0',''),
('119531','60642','1','12','$.data.localtime','0',''),
('119532','60643','1','12','$.memtotal','0',''),
('119533','60643','2','20','10m','0',''),
('119534','60644','1','12','$.memused','0',''),
('119535','60644','2','20','10m','0',''),
('119536','60645','1','12','$.netin','0',''),
('119537','60645','2','1','8','0',''),
('119538','60645','3','20','10m','0',''),
('119539','60646','1','12','$.netout','0',''),
('119540','60646','2','1','8','0',''),
('119541','60646','3','20','10m','0',''),
('119542','60647','1','12','$.data.[?(@.name == ''{#NODE.NAME}'' && @.type == ''node'')].online.first()','0',''),
('119543','60647','2','20','10m','0',''),
('119544','60648','1','12','$.data.pveversion','0',''),
('119545','60648','2','20','1d','0',''),
('119546','60649','1','12','$.roottotal','0',''),
('119547','60649','2','20','10m','0',''),
('119548','60650','1','12','$.rootused','0',''),
('119549','60650','2','20','10m','0',''),
('119550','60651','1','12','$.swaptotal','0',''),
('119551','60651','2','20','10m','0',''),
('119552','60652','1','12','$.swapused','0',''),
('119553','60652','2','20','10m','0',''),
('119554','60653','1','12','$.data.timezone','0',''),
('119555','60653','2','20','12h','0',''),
('119556','60654','1','12','$.data.uptime','0',''),
('119557','60655','1','12','$.data.time','0',''),
('119558','60656','1','12','$.data.cpu','0',''),
('119559','60656','2','1','100','0',''),
('119560','60656','3','20','10m','0',''),
('119561','60657','1','12','$.data.diskread','0',''),
('119562','60657','2','10','','0',''),
('119563','60657','3','20','10m','0',''),
('119564','60658','1','12','$.data.diskwrite','0',''),
('119565','60658','2','10','','0',''),
('119566','60658','3','20','10m','0',''),
('119567','60659','1','12','$.data.maxmem','0',''),
('119568','60659','2','20','10m','0',''),
('119569','60660','1','12','$.data.mem','0',''),
('119570','60660','2','20','10m','0',''),
('119571','60661','1','12','$.data.netin','0',''),
('119572','60661','2','10','','0',''),
('119573','60661','3','1','8','0',''),
('119574','60661','4','20','10m','0',''),
('119575','60662','1','12','$.data.netout','0',''),
('119576','60662','2','10','','0',''),
('119577','60662','3','1','8','0',''),
('119578','60662','4','20','10m','0',''),
('119579','60663','1','12','$.data.uptime','0',''),
('119580','60664','1','12','$.data.status','0',''),
('119581','60665','1','12','$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].content.first()','0',''),
('119582','60665','2','20','12h','0',''),
('119583','60666','1','12','$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].disk.first()','0',''),
('119584','60666','2','20','10m','0',''),
('119585','60667','1','12','$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].maxdisk.first()','0',''),
('119586','60667','2','20','10m','0',''),
('119587','60668','1','12','$.data[?(@.id == "storage/{#NODE.NAME}/{#STORAGE.NAME}")].plugintype.first()','0',''),
('119588','60668','2','20','12h','0',''),
('119589','60669','1','21','return JSON.stringify(JSON.parse(value),[''name'',''type'',''vhost'']);','0',''),
('119590','60669','2','20','1h','0',''),
('119591','60670','1','12','$.management_version','0',''),
('119592','60670','2','21','var rabbit_version = parseInt(value.split(''.'')[0]) * 10000 +
	parseInt(value.split(''.'')[1]) * 100 +
	parseInt(value.split(''.'')[2]);
return JSON.stringify(rabbit_version >= 30810 ? [{ ''{#SINGLETON}'': '''' }] : []);','0',''),
('119593','60670','3','20','1h','0',''),
('119594','60671','1','12','$.management_version','0',''),
('119595','60671','2','21','var rabbit_version = parseInt(value.split(''.'')[0]) * 10000 +
	parseInt(value.split(''.'')[1]) * 100 +
	parseInt(value.split(''.'')[2]);
return JSON.stringify(rabbit_version < 30810 ? [{ ''{#SINGLETON}'': '''' }] : []);','0',''),
('119596','60671','3','20','1h','0',''),
('119597','60672','1','12','$.management_version','0',''),
('119598','60672','2','21','var rabbit_version = parseInt(value.split(''.'')[0]) * 10000 +
	parseInt(value.split(''.'')[1]) * 100 +
	parseInt(value.split(''.'')[2]);
return JSON.stringify(rabbit_version >= 30810 ? [{ ''{#SINGLETON}'': '''' }] : []);','0',''),
('119599','60672','3','20','1h','0',''),
('119600','60674','1','21','return JSON.stringify(JSON.parse(value),[''node'',''name'',''vhost'']);','0',''),
('119601','60674','2','20','1h','0',''),
('119602','60675','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119603','60675','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119604','60675','3','20','3h','0',''),
('119605','60676','1','5',E'\\n\\s?\\n(.*)
\\1','0',''),
('119606','60676','2','12','$.status','0',''),
('119607','60676','3','6','','2','0'),
('119608','60677','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119609','60677','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119610','60677','3','20','3h','0',''),
('119611','60678','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119612','60678','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119613','60678','3','20','3h','0',''),
('119614','60679','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119615','60679','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119616','60679','3','20','3h','0',''),
('119617','60680','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119618','60680','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119619','60680','3','20','3h','0',''),
('119620','60681','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119621','60681','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119622','60681','3','20','3h','0',''),
('119623','60683','1','12','$[?(@.name == "{#EXCHANGE}" && @.vhost == "{#VHOST}" && @.type =="{#TYPE}")].first()','0',''),
('119624','60684','1','12','$.[?(@["name"]=="{#RABBITMQ.NAME}")].first()','2','Failed to retrieve process {#RABBITMQ.NAME} data'),
('119625','60685','1','12','$[?(@.name == "{#QUEUE}" && @.vhost == "{#VHOST}")].first()','0',''),
('119626','60686','1','12','$.message_stats.ack_details.rate','2','0'),
('119627','60687','1','12','$.message_stats.ack','2','0'),
('119628','60688','1','12','$.message_stats.confirm_details.rate','2','0'),
('119629','60689','1','12','$.message_stats.confirm','2','0'),
('119630','60690','1','12','$.message_stats.deliver_get_details.rate','2','0'),
('119631','60691','1','12','$.message_stats.deliver_get','2','0'),
('119632','60692','1','12','$.message_stats.publish_details.rate','2','0'),
('119633','60693','1','12','$.message_stats.publish','2','0'),
('119634','60694','1','12','$.message_stats.publish_in_details.rate','2','0'),
('119635','60695','1','12','$.message_stats.publish_in','2','0'),
('119636','60696','1','12','$.message_stats.publish_out_details.rate','2','0'),
('119637','60697','1','12','$.message_stats.publish_out','2','0'),
('119638','60698','1','12','$.message_stats.redeliver_details.rate','2','0'),
('119639','60699','1','12','$.message_stats.redeliver','2','0'),
('119640','60700','1','12','$.message_stats.return_unroutable_details.rate','2','0'),
('119641','60701','1','12','$.message_stats.return_unroutable','2','0'),
('119642','60702','1','12','$.processes','2','0'),
('119643','60702','2','20','1h','0',''),
('119644','60703','1','12','$.pmem','1',''),
('119645','60704','1','12','$.rss','1',''),
('119646','60705','1','12','$.vsize','1',''),
('119647','60706','1','12','$.consumers','0',''),
('119648','60707','1','12','$.memory','0',''),
('119649','60708','1','12','$.message_stats.ack_details.rate','2','0'),
('119650','60709','1','12','$.message_stats.ack','2','0'),
('119651','60710','1','12','$.message_stats.deliver_details.rate','2','0'),
('119652','60711','1','12','$.message_stats.deliver','2','0'),
('119653','60712','1','12','$.message_stats.deliver_get_details.rate','2','0'),
('119654','60713','1','12','$.message_stats.deliver_get','2','0'),
('119655','60714','1','12','$.message_stats.publish_details.rate','2','0'),
('119656','60715','1','12','$.message_stats.publish','2','0'),
('119657','60716','1','12','$.messages_details.rate','0',''),
('119658','60717','1','12','$.message_stats.redeliver_details.rate','2','0'),
('119659','60718','1','12','$.message_stats.redeliver','2','0'),
('119660','60719','1','12','$.messages','0',''),
('119661','60720','1','12','$.messages_ready_details.rate','0',''),
('119662','60721','1','12','$.messages_ready','0',''),
('119663','60722','1','12','$.messages_unacknowledged_details.rate','0',''),
('119664','60723','1','12','$.messages_unacknowledged','0',''),
('119665','60724','1','21','return JSON.stringify(JSON.parse(value),[''name'',''type'',''vhost'']);','0',''),
('119666','60724','2','20','1h','0',''),
('119667','60725','1','12','$.management_version','0',''),
('119668','60725','2','21','var rabbit_version = parseInt(value.split(''.'')[0]) * 10000 +
	parseInt(value.split(''.'')[1]) * 100 +
	parseInt(value.split(''.'')[2]);
return JSON.stringify(rabbit_version >= 30810 ? [{ ''{#SINGLETON}'': '''' }] : []);','0',''),
('119669','60725','3','20','1h','0',''),
('119670','60726','1','12','$.management_version','0',''),
('119671','60726','2','21','var rabbit_version = parseInt(value.split(''.'')[0]) * 10000 +
	parseInt(value.split(''.'')[1]) * 100 +
	parseInt(value.split(''.'')[2]);
return JSON.stringify(rabbit_version < 30810 ? [{ ''{#SINGLETON}'': '''' }] : []);','0',''),
('119672','60726','3','20','1h','0',''),
('119673','60727','1','12','$.management_version','0',''),
('119674','60727','2','21','var rabbit_version = parseInt(value.split(''.'')[0]) * 10000 +
	parseInt(value.split(''.'')[1]) * 100 +
	parseInt(value.split(''.'')[2]);
return JSON.stringify(rabbit_version >= 30810 ? [{ ''{#SINGLETON}'': '''' }] : []);','0',''),
('119675','60727','3','20','1h','0',''),
('119676','60728','1','21','return JSON.stringify(JSON.parse(value),[''node'',''name'',''vhost'']);','0',''),
('119677','60728','2','20','1h','0',''),
('119678','60729','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119679','60729','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119680','60729','3','20','3h','0',''),
('119681','60730','1','12','$.status','0',''),
('119682','60730','2','6','','2','0'),
('119683','60731','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119684','60731','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119685','60731','3','20','3h','0',''),
('119686','60732','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119687','60732','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119688','60732','3','20','3h','0',''),
('119689','60733','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119690','60733','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119691','60733','3','20','3h','0',''),
('119692','60734','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119693','60734','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119694','60734','3','20','3h','0',''),
('119695','60735','1','5',E'HTTP\\/[\\d.]+\\s+(\\d{3})
\\1','0',''),
('119696','60735','2','21','switch(value){
case ''200'': return 1
case ''503'': return 0
default: 2}','0',''),
('119697','60735','3','20','3h','0',''),
('119698','60736','1','12','$[?(@.name == "{#EXCHANGE}" && @.vhost == "{#VHOST}" && @.type =="{#TYPE}")].first()','0',''),
('119699','60737','1','12','$[?(@.name == "{#QUEUE}" && @.vhost == "{#VHOST}")].first()','0',''),
('119700','60738','1','12','$.message_stats.ack_details.rate','2','0'),
('119701','60739','1','12','$.message_stats.ack','2','0'),
('119702','60740','1','12','$.message_stats.confirm_details.rate','2','0'),
('119703','60741','1','12','$.message_stats.confirm','2','0'),
('119704','60742','1','12','$.message_stats.deliver_get_details.rate','2','0'),
('119705','60743','1','12','$.message_stats.deliver_get','2','0'),
('119706','60744','1','12','$.message_stats.publish_details.rate','2','0'),
('119707','60745','1','12','$.message_stats.publish','2','0'),
('119708','60746','1','12','$.message_stats.publish_in_details.rate','2','0'),
('119709','60747','1','12','$.message_stats.publish_in','2','0'),
('119710','60748','1','12','$.message_stats.publish_out_details.rate','2','0'),
('119711','60749','1','12','$.message_stats.publish_out','2','0'),
('119712','60750','1','12','$.message_stats.redeliver_details.rate','2','0'),
('119713','60751','1','12','$.message_stats.redeliver','2','0'),
('119714','60752','1','12','$.message_stats.return_unroutable_details.rate','2','0'),
('119715','60753','1','12','$.message_stats.return_unroutable','2','0'),
('119716','60754','1','12','$.consumers','0',''),
('119717','60755','1','12','$.memory','0',''),
('119718','60756','1','12','$.message_stats.ack_details.rate','2','0'),
('119719','60757','1','12','$.message_stats.ack','2','0'),
('119720','60758','1','12','$.message_stats.deliver_details.rate','2','0'),
('119721','60759','1','12','$.message_stats.deliver','2','0'),
('119722','60760','1','12','$.message_stats.deliver_get_details.rate','2','0'),
('119723','60761','1','12','$.message_stats.deliver_get','2','0'),
('119724','60762','1','12','$.message_stats.publish_details.rate','2','0'),
('119725','60763','1','12','$.message_stats.publish','2','0'),
('119726','60764','1','12','$.messages_details.rate','0',''),
('119727','60765','1','12','$.message_stats.redeliver_details.rate','2','0'),
('119728','60766','1','12','$.message_stats.redeliver','2','0'),
('119729','60767','1','12','$.messages','0',''),
('119730','60768','1','12','$.messages_ready_details.rate','0',''),
('119731','60769','1','12','$.messages_ready','0',''),
('119732','60770','1','12','$.messages_unacknowledged_details.rate','0',''),
('119733','60771','1','12','$.messages_unacknowledged','0',''),
('119734','60772','1','20','6h','0',''),
('119735','60773','1','12',E'{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \\1)}.meta.created','1',''),
('119736','60773','2','20','3h','0',''),
('119737','60774','1','12',E'{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \\1)}.meta.modified','1',''),
('119738','60774','2','20','3h','0',''),
('119739','60775','1','12',E'{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \\1)}.meta.size','1',''),
('119740','60775','2','20','24h','0',''),
('119741','60780','1','12','$.ActiveState.state','0',''),
('119742','60780','2','20','30m','0',''),
('119743','60781','1','12','$.LoadState.state','0',''),
('119744','60781','2','20','30m','0',''),
('119745','60782','1','12','$.UnitFileState.state','0',''),
('119746','60782','2','20','30m','0',''),
('119747','60783','1','21','data = JSON.parse(value);
if (data.ActiveEnterTimestamp > data.ActiveExitTimestamp) {
  return Math.floor(Date.now() / 1000) - Number(data.ActiveEnterTimestamp) / 1000000;
}
return null;','0',''),
('119748','60784','1','12','$.NAccepted','0',''),
('119749','60784','2','10','','0',''),
('119750','60785','1','12','$.NConnections','0',''),
('119751','60790','1','20','1h','0',''),
('119752','60791','1','10','','0',''),
('119753','60792','1','10','','0',''),
('119754','60793','1','10','','0',''),
('119755','60794','1','1','0.001','0',''),
('119756','60795','1','10','','0',''),
('119757','60799','1','10','','0',''),
('119758','60800','1','10','','0',''),
('119759','60801','1','20','10m','0',''),
('119760','60803','1','20','10m','0',''),
('119761','60804','1','21','var result = [];

JSON.parse(value).repositories.forEach(function (e) {
	result.push({ ''{#ID}'': e.id, ''{#SLUG}'': e.slug });
});

return JSON.stringify(result)','0',''),
('119762','60804','2','20','1h','0',''),
('119763','60808','1','21','return JSON.parse(value).builds.filter(function (e){return e.state !== "passed" && e.state !== "started" }).length','0',''),
('119764','60809','1','21','return JSON.parse(value).builds.filter(function (e){return e.state == "passed"}).length','0',''),
('119765','60810','1','12','$.builds.length()','0',''),
('119766','60811','1','12','$.caches.length()','0',''),
('119767','60812','1','12','$.caches..size.sum()','2','0'),
('119768','60813','1','12','$.repositories[?(@.slug == "{#SLUG}")].description.first()','0',''),
('119769','60813','2','20','1h','0',''),
('119770','60814','1','12','$.builds[0].duration','1',''),
('119771','60814','2','20','1h','0',''),
('119772','60815','1','12','$.builds[0].id','0',''),
('119773','60815','2','20','1h','0',''),
('119774','60816','1','12','$.builds[0].number','0',''),
('119775','60816','2','20','1h','0',''),
('119776','60817','1','12','$.builds[0].state','0',''),
('119777','60817','2','20','1h','0',''),
('119778','60818','1','21','return JSON.stringify([{"{#CPU.COUNT}": value, "{#SNMPINDEX}": 0, "{#SINGLETON}":""}])','0',''),
('119779','60820','1','29','{#DISK_NAME}
1.3.6.1.4.1.50536.3.1.2
0','1',''),
('119780','60821','1','29','{#DATASET_NAME}
1.3.6.1.4.1.50536.1.2.1.1.2
0
{#DATASET_ALLOC_UNITS}
1.3.6.1.4.1.50536.1.2.1.1.3
0','0',''),
('119781','60822','1','29','{#POOLNAME}
1.3.6.1.4.1.50536.1.1.1.1.2
0
{#POOL_ALLOC_UNITS}
1.3.6.1.4.1.50536.1.1.1.1.3
0','0',''),
('119782','60823','1','29','{#ZVOL_NAME}
1.3.6.1.4.1.50536.1.3.1.1.2
0
{#ZVOL_ALLOC_UNITS}
1.3.6.1.4.1.50536.1.3.1.1.3
0','0',''),
('119783','60826','1','28','1.3.6.1.4.1.2021.11.56.0
0','0',''),
('119784','60826','2','10','return value/{#CPU.COUNT}','0',''),
('119785','60827','1','28','1.3.6.1.4.1.2021.11.54.0
0','0',''),
('119786','60827','2','10','return value/{#CPU.COUNT}','0',''),
('119787','60828','1','28','1.3.6.1.4.1.2021.11.51.0
0','0',''),
('119788','60828','2','10','return value/{#CPU.COUNT}','0',''),
('119789','60829','1','28','1.3.6.1.4.1.2021.11.52.0
0','0',''),
('119790','60829','2','10','return value/{#CPU.COUNT}','0',''),
('119791','60830','1','28','1.3.6.1.4.1.2021.11.50.0
0','0',''),
('119792','60830','2','10','return value/{#CPU.COUNT}','0',''),
('119805','60840','1','28','1.3.6.1.4.1.50536.3.1.3.{#SNMPINDEX}
0','0',''),
('119806','60840','2','1','0.001','0',''),
('119807','60841','1','28','1.3.6.1.4.1.50536.1.2.1.1.6.{#SNMPINDEX}
0','0',''),
('119808','60843','1','28','1.3.6.1.4.1.50536.1.2.1.1.4.{#SNMPINDEX}
0','0',''),
('119809','60843','2','1','{#DATASET_ALLOC_UNITS}','0',''),
('119810','60844','1','28','1.3.6.1.4.1.50536.1.2.1.1.5.{#SNMPINDEX}
0','0',''),
('119811','60845','1','28','1.3.6.1.4.1.50536.1.1.1.1.6.{#SNMPINDEX}
0','0',''),
('119812','60846','1','28','1.3.6.1.4.1.50536.1.1.1.1.7.{#SNMPINDEX}
0','0',''),
('119813','60848','1','28','1.3.6.1.4.1.50536.1.1.1.1.10.{#SNMPINDEX}
0','0',''),
('119814','60848','2','1','{#POOL_ALLOC_UNITS}','0',''),
('119815','60849','1','28','1.3.6.1.4.1.50536.1.1.1.1.8.{#SNMPINDEX}
0','0',''),
('119816','60850','1','28','1.3.6.1.4.1.50536.1.1.1.1.4.{#SNMPINDEX}
0','0',''),
('119817','60850','2','1','{#POOL_ALLOC_UNITS}','0',''),
('119818','60851','1','28','1.3.6.1.4.1.50536.1.1.1.1.5.{#SNMPINDEX}
0','0',''),
('119819','60852','1','28','1.3.6.1.4.1.50536.1.1.1.1.11.{#SNMPINDEX}
0','0',''),
('119820','60852','2','1','{#POOL_ALLOC_UNITS}','0',''),
('119821','60853','1','28','1.3.6.1.4.1.50536.1.1.1.1.9.{#SNMPINDEX}
0','0',''),
('119822','60854','1','28','1.3.6.1.4.1.50536.1.3.1.1.6.{#SNMPINDEX}
0','0',''),
('119823','60855','1','28','1.3.6.1.4.1.50536.1.3.1.1.4.{#SNMPINDEX}
0','0',''),
('119824','60855','2','1','{#ZVOL_ALLOC_UNITS}','0',''),
('119825','60856','1','28','1.3.6.1.4.1.50536.1.3.1.1.5.{#SNMPINDEX}
0','0',''),
('119826','60857','1','28','1.3.6.1.4.1.2021.13.15.1.1.5.{#SNMPINDEX}
0','0',''),
('119827','60859','1','28','1.3.6.1.4.1.2021.13.15.1.1.6.{#SNMPINDEX}
0','0',''),
('119828','60860','1','21','return (100 - value)','0',''),
('119829','60866','1','12','$.[?(@.accessor == "{#ACCESSOR}")].error.first()','0',''),
('119830','60866','2','20','1h','0',''),
('119831','60867','1','12','$.[?(@.accessor == "{#ACCESSOR}")].has_ttl.first()','0',''),
('119832','60867','2','6','','0',''),
('119833','60867','3','20','1h','0',''),
('119834','60868','1','12','$.[?(@.accessor == "{#ACCESSOR}")].ttl.first()','0',''),
('119835','60869','1','22','{#PATTERN_C}
value
','1',''),
('119836','60869','2','10','','0',''),
('119837','60870','1','22','{#PATTERN_C}
value
','1',''),
('119838','60870','2','10','','0',''),
('119839','60871','1','22','logshipper_streamWALs_guard_found
value
','1',''),
('119840','60872','1','22','logshipper_streamWALs_missing_guard
value
','1',''),
('119841','60873','1','22','replication_fsm_last_remote_wal
value
','1',''),
('119842','60874','1','22','replication_merkle_commit_index
value
','1',''),
('119843','60875','1','22','replication_wal_last_dr_wal
value
','1',''),
('119844','60876','1','22','replication_wal_last_performance_wal
value
','1',''),
('119845','60877','1','22','replication_wal_last_wal
value
','1',''),
('119846','60878','1','22','{#PATTERN_C}
value
','1',''),
('119847','60878','2','10','','0',''),
('119848','60879','1','22','vault_wal_deletewals_count
value
','1',''),
('119849','60880','1','22','vault_wal_flushready_count
value
','1',''),
('119850','60881','1','22','vault_wal_gc_deleted
value
','1',''),
('119851','60882','1','22','vault_wal_gc_total
value
','1',''),
('119852','60883','1','22','vault_wal_loadWAL_count
value
','1',''),
('119853','60884','1','22','vault_wal_persistwals_count
value
','1',''),
('119854','60885','1','12','$.jobs_states.data','0',''),
('119855','60885','2','20','6h','0',''),
('119856','60886','1','12','$.proxies.data','0',''),
('119857','60886','2','20','6h','0',''),
('119858','60887','1','12','$.repositories_states.data','0',''),
('119859','60887','2','20','6h','0',''),
('119860','60888','1','12','$.sessions.data','0',''),
('119861','60888','2','21','obj = JSON.parse(value, function (key, value) {
	if (key == ''creationTime'') return new Date(value).toDateString();
	return value;
});
return JSON.stringify(obj);','0',''),
('119862','60888','3','20','6h','0',''),
('119863','60889','1','12','$.jobs_states.data.[?(@.id==''{#ID}'')].first()','0',''),
('119864','60890','1','12','$.proxies.data.[?(@.id==''{#ID}'')].first()','0',''),
('119865','60891','1','12','$.managedServers.data.[?(@.id==''{#HOSTID}'')].first()','0',''),
('119866','60892','1','12','$.repositories_states.data.[?(@.id==''{#ID}'')].first()','0',''),
