コード例 #1
0
class ICloudInfo(IDeviceInfo):
    """Interface for Cloud API (Info) adapter."""

    zone_count = schema.Int(title=_t(u"Zone Count"))
    pod_count = schema.Int(title=_t(u"Pod Count"))
    cluster_count = schema.Int(title=_t(u"Cluster Count"))
    host_count = schema.Int(title=_t(u"Host Count"))
コード例 #2
0
class IVMInfo(IPooledComponentInfo):
    '''
    API Info interface for VM.
    '''

    host = schema.Entity(title=_t(u'Host'))
    vmappliance = schema.Entity(title=_t(u'vApp'))
    guest_device = schema.Entity(title=_t(u'Guest Device'))

    hvm_shadow_multiplier = schema.Float(title=_t(u'HVM Shadow Multiplier'))
    vcpus_at_startup = schema.Int(title=_t(u'vCPUs at Startup'))
    vcpus_max = schema.Int(title=_t(u'Maximum vCPUs'))
    actions_after_crash = schema.TextLine(title=_t(u'Actions After Crash'))
    actions_after_reboot = schema.TextLine(title=_t(u'Actions After Reboot'))
    actions_after_shutdown = schema.TextLine(title=_t(u'Actions After Shutdown'))
    allowed_operations = schema.TextLine(title=_t(u'Allowed Operations'))
    domarch = schema.TextLine(title=_t(u'Domain Architecture'))
    domid = schema.Int(title=_t(u'Domain ID'))
    ha_always_run = schema.Bool(title=_t(u'HA Always Run'))
    ha_restart_priority = schema.TextLine(title=_t(u'HA Restart Priority'))
    is_a_snapshot = schema.Bool(title=_t(u'Is a Snapshot'))
    is_a_template = schema.Bool(title=_t(u'Is a Template'))
    is_control_domain = schema.Bool(title=_t(u'Is a Control Domain'))
    is_snapshot_from_vmpp = schema.Bool(title=_t(u'Is a Snapshot from VMPP'))
    memory_actual = schema.Int(title=_t(u'Actual Memory'))
    name_description = schema.TextLine(title=_t(u'Description'))
    name_label = schema.TextLine(title=_t(u'Label'))
    power_state = schema.TextLine(title=_t(u'Power State'))
    shutdown_delay = schema.Int(title=_t(u'Shutdown Delay'))
    start_delay = schema.Int(title=_t(u'Start Delay'))
    user_version = schema.Int(title=_t(u'User Version'))
    version = schema.Int(title=_t(u'Version'))

    vbd_count = schema.Int(title=_t(u'Number of Virtual Block Devices'))
    vif_count = schema.Int(title=_t(u'Number of Virtual Network Interfaces'))
コード例 #3
0
class INotificationSubscriptionInfo(IInfo):
    """
    Notification information regarding signals that occur as a result of an
    alert tripping a trigger.
    """
    newId = schema.TextLine(title=_t(u'newId'),
                            xtype='idfield',
                            description=_t(u'The name of this notification'))

    enabled = schema.Bool(title=_t(u'Enabled'))

    delay_seconds = schema.Int(title=_t(u'Delay (seconds)'))
    repeat_seconds = schema.Int(title=_t(u'Repeat (seconds)'))

    action = schema.Choice(title=_t(u'Action'),
                           vocabulary=SimpleVocabulary.fromValues(
                               getNotificationActionVocabulary()))

    # this is a list of the user/group/roles that have subscribed to this
    # notification.
    recipients = schema.List(title=_t(u'Subscribers'))

    globalRead = schema.Bool(title=_t(u'Global View'))
    globalWrite = schema.Bool(title=_t(u'Global Write'))
    globalManage = schema.Bool(title=_t(u'Global Manage Subscriptions'))

    userRead = schema.Bool(title=_t(u'Current User View'))
    userWrite = schema.Bool(title=_t(u'Current User Write'))
    userManage = schema.Bool(title=_t(u'Current User Manage Subscriptions'))
コード例 #4
0
ファイル: interfaces.py プロジェクト: vencis/docker-misc
class IHttpMonitorDataSourceInfo(IRRDDataSourceInfo):
    timeout = schema.Int(title=_t(u'Timeout (seconds)'))
    cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    hostname = schema.TextLine(title=_t(u'Host Name'),
                               group=_t('HTTP Monitor'))
    port = schema.Int(title=_t(u'Port'), group=_t('HTTP Monitor'))
    ipAddress = schema.TextLine(title=_t(u'IP Address or Proxy Address'),
                                group=_t('HTTP Monitor'))
    url = schema.TextLine(title=_t(u'URL'), group=_t('HTTP Monitor'))
    useSsl = schema.Bool(title=_t(u'Use SSL?'), group=_t('HTTP Monitor'))
    regex = schema.TextLine(title=_t(u'Regular Expression'),
                            group=_t('HTTP Monitor'))
    caseSensitive = schema.Bool(title=_t(u'Case Sensitive'),
                                group=_t('HTTP Monitor'))
    basicAuthUser = schema.TextLine(title=_t(u'Basic Auth User'),
                                    group=_t('HTTP Monitor'))
    invert = schema.Bool(title=_t(u'Invert Expression'),
                         group=_t('HTTP Monitor'))
    basicAuthPass = schema.Password(title=_t(u'Basic Auth Password'),
                                    group=_t('HTTP Monitor'))
    onRedirect = schema.Choice(title=_t(u'Redirect Behavior'),
                               vocabulary='httpMonitorRedirectVocabulary',
                               group=_t('HTTP Monitor'))
    proxyAuthUser = schema.TextLine(title=_t(u'Proxy User'),
                                    group=_t('Proxy Credentials'))
    proxyAuthPassword = schema.Password(title=_t(u'Proxy Password'),
                                        group=_t('Proxy Credentials'))
コード例 #5
0
class IOSProcessInfo(IComponentInfo):
    """
    Info adapter for OSProcess components.
    """
    processClass = schema.Entity(title=_t(u"Process Class"),
                                 group="Overview",
                                 order=1)
    getMonitoredProcesses = schema.TextLine(
        title=u"Process(es) identified by the most recent model",
        group="Details",
        readonly=True,
        order=-1)
    processName = schema.TextLine(title=_t(u"Process Set Name"),
                                  group="Overview",
                                  readonly=True,
                                  order=-1)
    description = schema.Text(title=_t(u"Description"),
                              group="Overview",
                              readonly=True,
                              order=2)
    alertOnRestart = schema.Bool(title=_t(u"Alert on Restart"),
                                 group="Details",
                                 alwaysEditable=True)
    failSeverity = schema.Int(title=_t(u"Fail Severity"),
                              xtype="severity",
                              group="Details",
                              alwaysEditable=True)
    minProcessCount = schema.Int(title=u"Min Process Count",
                                 group="Details",
                                 alwaysEditable=True)
    maxProcessCount = schema.Int(title=u"Max Process Count",
                                 group="Details",
                                 alwaysEditable=True)
コード例 #6
0
class IRPCMonitorDataSourceInfo(IRRDDataSourceInfo):
    cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    rpcServer = schema.TextLine(title=_t(u'RPC Server'))
    rpcCommand = schema.TextLine(title=_t(u'RPC Command'))
    port = schema.Int(title=_t(u'Port'))
    protocol = schema.Choice(title=_t(u'Protocol'),
                             vocabulary="rpcMonitorProtocolVocabulary")
コード例 #7
0
class IMailTxDataSourceInfo(IRRDDataSourceInfo):
    cycleTime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    timeout = schema.Int(title=_t(u"Timeout (seconds)"))
    toAddress = schema.TextLine(title=_t(u"To Address"))
    fromAddress = schema.TextLine(title=_t(u"From Address"))
    messageBody = schema.TextLine(title=_t(u'Message Body'),
                                  xtype="twocolumntextarea")

    # SMTP fields
    smtpHost = schema.TextLine(title=_t(u'SMTP Host'), group=_t(u'SMTP'))
    smtpPort = schema.Int(title=_t(u'SMTP Port'), group=_t(u'SMTP'))
    smtpUsername = schema.TextLine(title=_t(u'SMTP Username'),
                                   group=_t(u'SMTP'))
    smtpPassword = schema.Password(title=_t(u'SMTP Password'),
                                   group=_t(u'SMTP'))
    smtpAuth = schema.Choice(title=_t(u'Transport Security'),
                             vocabulary="transportSecurity",
                             group=_t(u'SMTP'))

    # POP fields
    popHost = schema.TextLine(title=_t(u'POP Host'), group=_t(u'POP'))
    popPort = schema.Int(title=_t(u'POP Port'), group=_t(u'POP'))
    popUsername = schema.TextLine(title=_t(u'POP Username'), group=_t(u'POP'))
    popPassword = schema.Password(title=_t(u'POP Password'), group=_t(u'POP'))
    popAuth = schema.Choice(title=_t(u'Transport Security'),
                            vocabulary="transportSecurity",
                            group=_t(u'POP'))
    popAllowInsecureLogin = schema.Bool(title=_t(u'Allow Insecure Logins?'),
                                        group=_t(u'POP'))
コード例 #8
0
class ITableInfo(IComponentInfo):
    tableName = schema.Text(title=_t(u"Table Name"))
    tableOid = schema.Int(title=_t(u"Table OID"))
    tableSchema = schema.Text(title=_t(u"Table Schema"))
    tableSizeString = schema.Int(title=_t(u"Table Size"))
    totalTableSizeString = schema.Int(title=_t(u"Total Table Size"))
    database = schema.Entity(title=_t(u"Database"))
コード例 #9
0
class IEndpointInfo(IDeviceInfo):
    username = schema.Text(title=_t(u"Username"))
    project_id = schema.Text(title=_t(u"Project ID"))
    auth_url = schema.Text(title=_t(u"Auth URL"))
    region_name = schema.Text(title=_t(u"Region Name"))
    serverCount = schema.Int(title=_t(u"Total Servers"))
    flavorCount = schema.Int(title=_t(u"Total Flavors"))
    imageCount = schema.Int(title=_t(u"Total Images"))
コード例 #10
0
class InrpeComponentInfo(IComponentInfo):
    title = schema.TextLine(title=_t(u"Title"))
    nrpe_cmd = schema.TextLine(title=_t(u"Command"))
    nrpe_args = schema.TextLine(title=_t(u"Arguments"))
    nrpe_timeout = schema.Int(title=_t(u"Timeout"))
    nrpe_min = schema.Int(title=_t(u"Min Threshold"))
    nrpe_max = schema.Int(title=_t(u"Max Threshold"))
    nrpe_type = schema.Int(title=_t(u"Check type"))
コード例 #11
0
class IPingDataSourceInfo(IRRDDataSourceInfo):
    cycleTime = schema.Int(title=_t(u'Cycle Time (seconds)'), vtype='positive')
    eventClass = schema.TextLine(title=_t(u'Event Class'),
                                 xtype='eventclass',
                                 readonly=True)
    sampleSize = schema.Int(title=_t(u'Number of pings to send per cycle'),
                            vtype='positive')
    attempts = schema.Int(title=_t(u'Maximum ping retries'), vtype='positive')
コード例 #12
0
class IJuniperIpSecNATInfo(IComponentInfo):
    """
Info adapter for JuniperIpSecNAT component
"""
    natId = schema.Text(title=u"NAT Id", readonly=True, group='Details')
    natNumPorts = schema.Int(title=u"Num. of Ports", readonly=True, group='Details')
    natNumSess = schema.Int(title=u"Num. of Sessions", readonly=True, group='Details')
    natPoolType = schema.Text(title=u"Pool Type", readonly=True, group='Details')
コード例 #13
0
class IDigMonitorDataSourceInfo(IRRDDataSourceInfo):
    timeout = schema.Int(title=_t(u'Timeout (seconds)'))
    cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    dnsServer = schema.TextLine(title=_t(u'DNS Server'))
    recordName = schema.TextLine(title=_t(u'Record Name'))
    port = schema.Int(title=_t(u'Port'))
    recordType = schema.Choice(title=_t(u'Record Type'),
                               vocabulary="dnsMonitorRecordTypeVocabulary")
コード例 #14
0
class INtpMonitorDataSourceInfo(IRRDDataSourceInfo):
    timeout = schema.Int(title=_t(u'Timeout (seconds)'))
    cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    hostname = schema.TextLine(title=_t(u'Host Name'), group=_t(u'Ntp'))
    warning = schema.Int(title=_t(u'Warning Response Time (seconds)'),
                         group=_t(u'Ntp'))
    critical = schema.Int(title=_t(u'Critical Response Time (seconds)'),
                          group=_t(u'Ntp'))
コード例 #15
0
class IMemcachedDataSourceInfo(IBasicDataSourceInfo):
    component = schema.Text(title=_t(u'Component'))
    eventKey = schema.Text(title=_t(u'Event Key'))
    timeout = schema.Int(title=_t(u'Timeout (seconds)'))
    hostname = schema.Text(title=_t(u'Memcached Host'), readonly=True)
    ipAddress = schema.Text(title=_t(u'Memcached Host IpAddress'),
                            readonly=True)
    parser = schema.Text(title=_t(u'Parser'), readonly=True)
    port = schema.Int(title=_t(u'Memcached Port'), required=True)
コード例 #16
0
class IA10ServerInfo(IComponentInfo):
    ServerName = SingleLineText(title=_t(u"Server Name"))
    ServerAddress = SingleLineText(title=_t(u"Server Address"))
    ServerHealthMonitor = SingleLineText(title=_t(u"Health Monitor"))
    ServerEnabledState = schema.Int(title=_t(u"Server Enabled"))
    ServerMonitorState = schema.Int(title=_t(u"Server Monitoring State"))
    #a10ServiceGroup = schema.Entity(title=_t(u"Service Group"))
    #a10VirtualServer = schema.Entity(title=_t(u"Virtual Server"))
    snmpindex = SingleLineText(title=_t(u"snmp index"))
コード例 #17
0
class IJuniperVlanInfo(IComponentInfo):
    """
Info adapter for JuniperVlan component
"""
    vlanName = schema.Text(title=u"Name", readonly=True, group='Details')
    vlanType = schema.Text(title=u"Type", readonly=True, group='Details')
    vlanTag = schema.Int(title=u"Tag", readonly=True, group='Details')
    vlanPortGroup = schema.Int(title=u"Port Group", readonly=True, group='Details')
    vlanInterfaceInfo = schema.Text(title=u"Interface Info", readonly=True, group='Details')
コード例 #18
0
class IDriveInfo(IComponentInfo):
    id = schema.TextLine(title=_t('Drive ID'))
    drive_status = schema.TextLine(title=_t('Drive Status'))
    error_sequence_number = schema.TextLine(title=_t('Error sequence number'))
    use = schema.TextLine(title=_t('Use'))
    tech_type = schema.TextLine(title=_t('Tech type'))
    capacity = schema.TextLine(title=_t('Capacity'))
    enclosure_id = schema.Int(title=_t('Enclosure ID'))
    slot_id = schema.Int(title=_t('Slot ID'))
コード例 #19
0
class IPodInfo(IBaseComponentInfo):
    """Interface for Pod API (Info) adapter."""

    ip_range = SingleLineText(title=_t(u"IP Range"))
    netmask = SingleLineText(title=_t(u"Netmask"))
    gateway = SingleLineText(title=_t(u"Gateway"))
    zone = schema.Entity(title=_t(u"Zone"))
    cluster_count = schema.Int(title=_t(u"Cluster Count"))
    host_count = schema.Int(title=_t(u"Host Count"))
コード例 #20
0
class ISystemServiceInfo(IComponentInfo):
    cfId = schema.Int(title=_t(u"ID"))
    cfName = schema.Text(title=_t(u"Name"))
    cfDescription = schema.Text(title=_t(u"Description"))
    cfVersion = schema.Text(title=_t(u"Version"))
    cfVendor = schema.Text(title=_t(u"Vendor"))
    cfType = schema.Text(title=_t(u"Type"))
    cfTiers = schema.Text(title=_t(u"Tiers"))
    cfProvisionedCount = schema.Int(title=_t(u"# Provisioned"))
コード例 #21
0
ファイル: component.py プロジェクト: c0ns0le/zenoss-4
class IPowerSupplyInfo(IComponentInfo):
    """
    Info adapter for PowerSupply components.
    """
    watts = schema.Int(title=u'Watts', group='Overview', readonly=True)
    type = schema.TextLine(title=u'Type', group='Overview', readonly=True)
    state = schema.TextLine(title=u'State', group='Overview', readonly=True)
    millivolts = schema.Int(title=u'Millivolts',
                            group='Overview',
                            readonly=True)
コード例 #22
0
class IMySqlMonitorDataSourceInfo(IBasicDataSourceInfo):
    usessh = schema.Bool(title=_t(u"Use SSH"))
    cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    timeout = schema.Int(title=_t(u'Timeout (seconds)'))
    hostname = schema.TextLine(title=_t(u'MySQL Host'), group=_t(u'MySQL'))
    username = schema.TextLine(title=_t(u'MySQL Username'), group=_t(u'MySQL'))
    port = schema.TextLine(title=_t(u'MySQL Port'), group=_t(u'MySQL'))
    password = schema.Password(title=_t(u'MySQL Password'), group=_t(u'MySQL'))
    versionFivePlus = schema.Bool(title=_t(u'MySQL Version 5+'),
                                  group=_t(u'MySQL'))
コード例 #23
0
class IAppInstanceInfo(IComponentInfo):
    cfApp = schema.Entity(title=_t(u"App"))
    cfIndex = schema.Int(title=_t(u"Index"))
    cfState = schema.Text(title=_t(u"State"))
    utilCPU = schema.Text(title=_t(u"CPU Utilization"))
    utilMemory = schema.Text(title=_t(u"Memory Utilization"))
    utilDisk = schema.Text(title=_t(u"Disk Utilization"))
    cfHost = schema.Text(title=_t(u"Host"))
    cfPort = schema.Int(title=_t(u"Port"))
    cfSince = schema.Int(title=_t(u"Since"))
コード例 #24
0
ファイル: interfaces.py プロジェクト: vencis/docker-misc
class IIRCDMonitorDataSourceInfo(IRRDDataSourceInfo):
    cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    hostname = schema.TextLine(title=_t(u'Host Name'),
                               group=_t(u'IRC'))
    warning_num = schema.Int(title=_t(u'Warning Count'),
                             group=_t(u'IRC'))
    port = schema.Int(title=_t(u'Port'),
                      group=_t(u'IRC'))
    critical_num = schema.Int(title=_t(u'Critical Count'),
                              group=_t(u'IRC'))
コード例 #25
0
ファイル: interfaces.py プロジェクト: vencis/docker-misc
class ILDAPMonitorDataSourceInfo(IRRDDataSourceInfo):
    cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
    timeout = schema.Int(title=_t(u'Timeout (seconds)'))
    ldapServer = schema.TextLine(title=_t(u'LDAP Server'), group=_t(u'LDAP'))
    ldapBindDN = schema.TextLine(title=_t(u'Bind Distinguished Name'), group=_t(u'LDAP'))
    useSSL = schema.Bool(title=_t(u'Use SSL?'), group=_t(u'LDAP'))
    ldapBaseDN = schema.TextLine(title=_t(u'Base Distinguished Name'), group=_t(u'LDAP'))
    ldapBindVersion = schema.TextLine(title=_t(u'Bind Version'), group=_t(u'LDAP'))
    ldapBindPassword = schema.Password(title=_t(u'Bind Password'), group=_t(u'LDAP'))
    port = schema.Int(title=_t(u'Port'), group=_t(u'LDAP'))
コード例 #26
0
class IAggregateInfo(IComponentInfo):
    aggr_name = schema.TextLine(title=_t('Aggregate Name'))
    aggr_state = schema.TextLine(title=_t('Aggregate State'))
    mount_state = schema.TextLine(title=_t('Mount State'))
    raid_size = schema.Int(title=_t('RAID Size'))
    raid_status = schema.TextLine(title=_t('RAID Status'))
    disk_count = schema.Int(title=_t('Disk Count'))
    volume_count = schema.Int(title=_t('Volume Count'))
    plex_count = schema.Int(title=_t('Plex Count'))
    total_bytes = schema.Int(title=_t('Total Bytes'))
コード例 #27
0
class IFileSystemInfo(IComponentInfo):
    """
    Info adapter for FileSystem components.
    """
    mount = schema.TextLine(title=u"Mount Point", group="Overview", order=-1)
    storageDevice = schema.TextLine(title=u"Storage Device", group="Details")
    type = schema.TextLine(title=u"Type", group="Details")
    blockSize = schema.Int(title=u"Block Size", group="Details")
    totalBlocks = Attribute("Total Blocks")
    totalBytes = schema.Int(title=u"Total Bytes",
                            readonly=True,
                            group="Details")
    usedBytes = schema.Int(title=u"Used Bytes", readonly=True, group="Details")
    availableBytes = schema.Int(title=u"Available Bytes",
                                readonly=True,
                                group="Details")
    capacityBytes = schema.Int(title=u"Capacity Bytes",
                               readonly=True,
                               group="Details")
    totalFiles = schema.Int(title=u"Total Files", group="Details")
    availableFiles = schema.Int(title=u"Available Files",
                                readonly=True,
                                group="Details")
    capacityFiles = schema.Int(title=u"Capacity Files",
                               readonly=True,
                               group="Details")
    maxNameLength = schema.Int(title=u"Maximum Name Length", group="Details")

    mediatype = schema.TextLine(title=_t(u'Media Type'), readonly=True)
コード例 #28
0
class IEC2ZoneInfo(IComponentInfo):
    '''
    API Info interface for EC2Zone.
    '''

    state = schema.TextLine(title=_t(u'State'))
    account = schema.Entity(title=_t(u'Account'))
    region = schema.Entity(title=_t(u'Region'))
    instance_count = schema.Int(title=_t(u'Number of Instances'))
    volume_count = schema.Int(title=_t(u'Number of Volumes'))
    vpc_subnet_count = schema.Int(title=_t(u'Number of VPC Subnets'))
コード例 #29
0
class IEC2RegionInfo(IComponentInfo):
    '''
    API Info interface for EC2Region.
    '''

    account = schema.Entity(title=_t(u'Account'))
    zone_count = schema.Int(title=_t(u'Number of Zones'))
    instance_count = schema.Int(title=_t(u'Number of Instances'))
    volume_count = schema.Int(title=_t(u'Number of Volumes'))
    vpc_count = schema.Int(title=_t(u'Number of VPCs'))
    vpc_subnet_count = schema.Int(title=_t(u'Number of VPC Subnets'))
コード例 #30
0
class IMsSqlSrvInstInfo(IDBSrvInstInfo):
    """
    Info adapter for MS SQL Server Instance components.
    """
    edition = schema.Text(title=u"Edition", readonly=True, group=u"Details")
    productVersion = schema.Text(title=u"Product Version", readonly=True, group=u"Details")
    productLevel = schema.Text(title=u"Product Level", readonly=True, group=u"Details")
    licenseType = schema.Text(title=u"License Type", readonly=True, group=u"Details")
    numLicenses = schema.Int(title=u"Licenses", readonly=True, group=u"Details")
    processID = schema.Int(title=u"Process ID", readonly=True, group=u"Details")
    dbsiproperties = schema.List(title=u"Instance Properties", readonly=True, group=u"Details")