Formats/ScienceLogic.Formats.ps1xml
<?xml version="1.0" encoding="utf-8" ?>
<!-- See https://technet.microsoft.com/en-us/library/gg580944.aspx --> <Configuration> <ViewDefinitions> <View> <Name>/api/device</Name> <ViewSelectedBy> <TypeName>/api/device</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>ID</Label> <Width>8</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Name</Label> <Width>20</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>IP</Label> <Width>16</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Organization</Label> <Width>30</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Category</Label> <Width>15</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Class</Label> <Width>15</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>State</Label> <Width>15</Width> <Alignment>left</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>__ID</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>ip</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock>$(if ($_.organization.company) { $_.organization.company } else { $_.organization })</ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock>$_.class_type.device_category.cat_name</ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock>"$($_.class_type.class) | $($_.class_type.description)"</ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock> switch ($_.state) { 0 {'0 - Healthy'} 1 {'1 - Notice'} 2 {'2 - Minor'} 3 {'3 - Major'} 4 {'4 - Critical'} default { $This.state } } </ScriptBlock> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>/api/organization</Name> <ViewSelectedBy> <TypeName>/api/organization</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>ID</Label> <Width>8</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Company</Label> <Width>20</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>City</Label> <Width>15</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>State</Label> <Width>6</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Phone</Label> <Width>15</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Billing_ID</Label> <Width>10</Width> <Alignment>right</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>CRM_ID</Label> <Width>10</Width> <Alignment>right</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>__ID</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>company</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>city</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>state</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>phone</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>billing_id</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>crm_id</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>/api/device_group</Name> <ViewSelectedBy> <TypeName>/api/device_group</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>ID</Label> <Width>6</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Name</Label> <Width>30</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Shared</Label> <Width>6</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Force</Label> <Width>6</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Visibility</Label> <Width>30</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>DeviceCount</Label> <Width>12</Width> <Alignment>right</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>GroupCount</Label> <Width>12</Width> <Alignment>right</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>ParentCount</Label> <Width>12</Width> <Alignment>right</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>__ID</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>name</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock>[Boolean]$_.shared</ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock>[Boolean]$_.force_child_visibility</ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>visibility</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>deviceCount</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>groupCount</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>parentCount</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |