Skip to content

Instantly share code, notes, and snippets.

@kevinquinnyo
Created January 2, 2015 01:27
Show Gist options
  • Save kevinquinnyo/c6cb2567e5079d28b203 to your computer and use it in GitHub Desktop.
Save kevinquinnyo/c6cb2567e5079d28b203 to your computer and use it in GitHub Desktop.
/src/Controller/Api/V1/BandwidthGraphsController.php (line 52)
object(App\Model\Entity\BandwidthGraph) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 24,
'graph_template_id' => (int) 31,
'host_id' => (int) 4,
'snmp_query_id' => (int) 1,
'snmp_index' => '1',
'items' => [
(int) 0 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 587,
'hash' => '',
'local_graph_template_item_id' => (int) 362,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 137,
'color_id' => (int) 22,
'alpha' => 'FF',
'graph_type_id' => (int) 7,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 1,
'text_format' => 'Inbound',
'value' => '',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 1,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 137,
'hash' => '',
'local_data_template_rrd_id' => (int) 54,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_in',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 1 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 588,
'hash' => '',
'local_graph_template_item_id' => (int) 363,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 137,
'color_id' => (int) 0,
'alpha' => 'FF',
'graph_type_id' => (int) 9,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 4,
'text_format' => 'Current:',
'value' => '',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 2,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 137,
'hash' => '',
'local_data_template_rrd_id' => (int) 54,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_in',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 2 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 589,
'hash' => '',
'local_graph_template_item_id' => (int) 364,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 137,
'color_id' => (int) 0,
'alpha' => 'FF',
'graph_type_id' => (int) 9,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 1,
'text_format' => 'Average:',
'value' => '',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 3,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 137,
'hash' => '',
'local_data_template_rrd_id' => (int) 54,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_in',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 3 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 590,
'hash' => '',
'local_graph_template_item_id' => (int) 365,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 137,
'color_id' => (int) 0,
'alpha' => 'FF',
'graph_type_id' => (int) 9,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 3,
'text_format' => 'Maximum:',
'value' => '',
'hard_return' => 'on',
'gprint_id' => (int) 2,
'sequence' => (int) 4,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 137,
'hash' => '',
'local_data_template_rrd_id' => (int) 54,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_in',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 4 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 591,
'hash' => '',
'local_graph_template_item_id' => (int) 366,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 138,
'color_id' => (int) 20,
'alpha' => 'FF',
'graph_type_id' => (int) 4,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 1,
'text_format' => 'Outbound',
'value' => '',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 5,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 138,
'hash' => '',
'local_data_template_rrd_id' => (int) 55,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_out',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 5 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 592,
'hash' => '',
'local_graph_template_item_id' => (int) 367,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 138,
'color_id' => (int) 0,
'alpha' => 'FF',
'graph_type_id' => (int) 9,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 4,
'text_format' => 'Current:',
'value' => '',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 6,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 138,
'hash' => '',
'local_data_template_rrd_id' => (int) 55,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_out',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 6 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 593,
'hash' => '',
'local_graph_template_item_id' => (int) 368,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 138,
'color_id' => (int) 0,
'alpha' => 'FF',
'graph_type_id' => (int) 9,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 1,
'text_format' => 'Average:',
'value' => '',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 7,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 138,
'hash' => '',
'local_data_template_rrd_id' => (int) 55,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_out',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 7 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 594,
'hash' => '',
'local_graph_template_item_id' => (int) 369,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 138,
'color_id' => (int) 0,
'alpha' => 'FF',
'graph_type_id' => (int) 9,
'cdef_id' => (int) 2,
'consolidation_function_id' => (int) 3,
'text_format' => 'Maximum:',
'value' => '',
'hard_return' => 'on',
'gprint_id' => (int) 2,
'sequence' => (int) 8,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 138,
'hash' => '',
'local_data_template_rrd_id' => (int) 55,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_out',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 8 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 595,
'hash' => '',
'local_graph_template_item_id' => (int) 370,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 0,
'color_id' => (int) 0,
'alpha' => 'FF',
'graph_type_id' => (int) 1,
'cdef_id' => (int) 0,
'consolidation_function_id' => (int) 1,
'text_format' => '',
'value' => '',
'hard_return' => 'on',
'gprint_id' => (int) 2,
'sequence' => (int) 9,
'data_template_rrd' => null
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 9 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 596,
'hash' => '',
'local_graph_template_item_id' => (int) 371,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 138,
'color_id' => (int) 9,
'alpha' => 'FF',
'graph_type_id' => (int) 2,
'cdef_id' => (int) 0,
'consolidation_function_id' => (int) 1,
'text_format' => '95% (Out): |95:bits:6:current:2|mbps',
'value' => '|95:bits:0:current:2|',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 10,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 138,
'hash' => '',
'local_data_template_rrd_id' => (int) 55,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_out',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
},
(int) 10 => object(App\Model\Entity\GraphTemplateItem) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 684,
'hash' => '',
'local_graph_template_item_id' => (int) 675,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
'task_item_id' => (int) 137,
'color_id' => (int) 43,
'alpha' => 'FF',
'graph_type_id' => (int) 2,
'cdef_id' => (int) 0,
'consolidation_function_id' => (int) 1,
'text_format' => '95% (In): |95:bits:6:current:2|mbps',
'value' => '|95:bits:0:current:2|',
'hard_return' => '',
'gprint_id' => (int) 2,
'sequence' => (int) 11,
'data_template_rrd' => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 137,
'hash' => '',
'local_data_template_rrd_id' => (int) 54,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_in',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphItems'
}
],
'data' => object(App\Model\Entity\GraphTemplateGraph) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 70,
'local_graph_template_graph_id' => (int) 43,
'local_graph_id' => (int) 24,
'graph_template_id' => (int) 31,
't_image_format_id' => '0',
'image_format_id' => (int) 1,
't_title' => '0',
'title' => '|host_description| - Traffic - |query_ifName|',
'title_cache' => 'EDGE-AA.atl01 - Traffic - Te1/1',
't_height' => '0',
'height' => (int) 120,
't_width' => '0',
'width' => (int) 500,
't_upper_limit' => '0',
'upper_limit' => '100',
't_lower_limit' => '0',
'lower_limit' => '0',
't_vertical_label' => '0',
'vertical_label' => 'bits per second',
't_slope_mode' => '0',
'slope_mode' => 'on',
't_auto_scale' => '0',
'auto_scale' => 'on',
't_auto_scale_opts' => '0',
'auto_scale_opts' => true,
't_auto_scale_log' => '0',
'auto_scale_log' => '',
't_scale_log_units' => '0',
'scale_log_units' => '',
't_auto_scale_rigid' => '0',
'auto_scale_rigid' => 'on',
't_auto_padding' => '0',
'auto_padding' => 'on',
't_base_value' => '0',
'base_value' => (int) 1000,
't_grouping' => '0',
'grouping' => '',
't_export' => '0',
'export' => 'on',
't_unit_value' => '0',
'unit_value' => '',
't_unit_exponent_value' => '0',
'unit_exponent_value' => ''
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphData'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'BandwidthGraphs'
}
/src/Controller/Api/V1/BandwidthGraphsController.php (line 53)
object(Cake\ORM\Entity) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 33,
'data_template_id' => (int) 41,
'host_id' => (int) 4,
'snmp_query_id' => (int) 1,
'snmp_index' => '1',
'data_template' => object(Cake\ORM\Entity) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 41,
'hash' => '6632e1e0b58a565c135d7ff90440c335',
'name' => 'Interface - Traffic',
'rrds' => [
(int) 0 => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 137,
'hash' => '',
'local_data_template_rrd_id' => (int) 54,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_in',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
},
(int) 1 => object(App\Model\Entity\DataTemplateRrd) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 138,
'hash' => '',
'local_data_template_rrd_id' => (int) 55,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
't_rrd_maximum' => null,
'rrd_maximum' => '|query_ifSpeed|',
't_rrd_minimum' => null,
'rrd_minimum' => '0',
't_rrd_heartbeat' => null,
'rrd_heartbeat' => (int) 120,
't_data_source_type_id' => null,
'data_source_type_id' => (int) 2,
't_data_source_name' => null,
'data_source_name' => 'traffic_out',
't_data_input_field_id' => null,
'data_input_field_id' => (int) 0
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateRrds'
}
]
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplates'
},
'data_template_data' => object(App\Model\Entity\DataTemplateData) {
'new' => false,
'accessible' => [
'*' => true
],
'properties' => [
'id' => (int) 100,
'local_data_template_data_id' => (int) 41,
'local_data_id' => (int) 33,
'data_template_id' => (int) 41,
'data_input_id' => (int) 2,
't_name' => null,
'name' => '|host_description| - Traffic - |query_ifName|',
'name_cache' => 'EDGE-AA.atl01 - Traffic - Te1/1',
'data_source_path' => '<path_rra>/edge-aa_atl01_traffic_in_33.rrd',
't_active' => null,
'active' => 'on',
't_rrd_step' => null,
'rrd_step' => (int) 60,
't_rra_id' => null
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataTemplateDatas'
}
],
'dirty' => [],
'original' => [],
'virtual' => [],
'errors' => [],
'repository' => 'DataLocals'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment