sensu-plugins-azurerm 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +278 -7
- data/bin/check-azurerm-core-usage.rb +37 -40
- data/bin/check-azurerm-cores-d-usage.rb +121 -0
- data/bin/check-azurerm-cores-ds-usage.rb +121 -0
- data/bin/check-azurerm-cores-dsv2-usage.rb +121 -0
- data/bin/check-azurerm-cores-dv2-usage.rb +121 -0
- data/bin/check-azurerm-cores-f-usage.rb +121 -0
- data/bin/check-azurerm-cores-fs-usage.rb +121 -0
- data/bin/check-azurerm-load-balancers-usage.rb +121 -0
- data/bin/check-azurerm-network-interfaces-usage.rb +121 -0
- data/bin/check-azurerm-network-security-groups-usage.rb +121 -0
- data/bin/check-azurerm-public-ip-addresses-usage.rb +121 -0
- data/bin/check-azurerm-route-tables-usage.rb +121 -0
- data/bin/check-azurerm-static-public-ip-addresses-usage.rb +121 -0
- data/bin/check-azurerm-virtual-machines-usage.rb +37 -40
- data/bin/check-azurerm-virtual-network-gateway-connected.rb +31 -34
- data/bin/check-azurerm-virtual-network-gateway-failure-connected.rb +51 -54
- data/bin/check-azurerm-virtual-networks-usage.rb +121 -0
- data/bin/metric-azurerm-service-bus-subscription-message-count.rb +39 -42
- data/bin/metric-azurerm-virtual-network-gateway-usage.rb +40 -43
- data/lib/sensu-plugins-azurerm.rb +1 -0
- data/lib/sensu-plugins-azurerm/common.rb +10 -0
- data/lib/sensu-plugins-azurerm/compute_usage.rb +3 -13
- data/lib/sensu-plugins-azurerm/network_usage.rb +12 -5
- data/lib/sensu-plugins-azurerm/servicebus_usage.rb +3 -6
- data/lib/sensu-plugins-azurerm/version.rb +1 -1
- metadata +60 -33
| @@ -37,7 +37,7 @@ | |
| 37 37 | 
             
            #                             --tenant "00000000-0000-0000-0000-000000000000"
         | 
| 38 38 | 
             
            #                             --client "00000000-0000-0000-0000-000000000000"
         | 
| 39 39 | 
             
            #                             --clientSecret "00000000-0000-0000-0000-000000000000"
         | 
| 40 | 
            -
            #                             -- | 
| 40 | 
            +
            #                             --subscription "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
         | 
| 41 41 | 
             
            #                             --resourceGroup "resourcegroup"
         | 
| 42 42 | 
             
            #                             --namespaceName "namespace"
         | 
| 43 43 | 
             
            #                             --topicName "topic"
         | 
| @@ -52,86 +52,83 @@ | |
| 52 52 | 
             
            #   for details.
         | 
| 53 53 | 
             
            #
         | 
| 54 54 |  | 
| 55 | 
            +
            require 'azure_mgmt_service_bus'
         | 
| 55 56 | 
             
            require 'sensu-plugin/metric/cli'
         | 
| 56 57 | 
             
            require 'sensu-plugins-azurerm'
         | 
| 57 | 
            -
            require 'azure_mgmt_service_bus'
         | 
| 58 58 |  | 
| 59 59 | 
             
            class MetricAzureRMServiceBusSubscriptionMessageCount < Sensu::Plugin::Metric::CLI::Statsd
         | 
| 60 60 | 
             
              include SensuPluginsAzureRM
         | 
| 61 61 |  | 
| 62 62 | 
             
              option :tenant_id,
         | 
| 63 | 
            -
             | 
| 64 | 
            -
             | 
| 65 | 
            -
             | 
| 66 | 
            -
             | 
| 63 | 
            +
                     description: 'ARM Tenant ID. Either set ENV[\'ARM_TENANT_ID\'] or provide it as an option',
         | 
| 64 | 
            +
                     short: '-t ID',
         | 
| 65 | 
            +
                     long: '--tenant ID',
         | 
| 66 | 
            +
                     default: ENV['ARM_TENANT_ID'] # TODO: can we pull these out from the Check too?
         | 
| 67 67 |  | 
| 68 68 | 
             
              option :client_id,
         | 
| 69 | 
            -
             | 
| 70 | 
            -
             | 
| 71 | 
            -
             | 
| 72 | 
            -
             | 
| 69 | 
            +
                     description: 'ARM Client ID. Either set ENV[\'ARM_CLIENT_ID\'] or provide it as an option',
         | 
| 70 | 
            +
                     short: '-c ID',
         | 
| 71 | 
            +
                     long: '--client ID',
         | 
| 72 | 
            +
                     default: ENV['ARM_CLIENT_ID']
         | 
| 73 73 |  | 
| 74 74 | 
             
              option :client_secret,
         | 
| 75 | 
            -
             | 
| 76 | 
            -
             | 
| 77 | 
            -
             | 
| 78 | 
            -
             | 
| 75 | 
            +
                     description: 'ARM Client Secret. Either set ENV[\'ARM_CLIENT_SECRET\'] or provide it as an option',
         | 
| 76 | 
            +
                     short: '-s SECRET',
         | 
| 77 | 
            +
                     long: '--clientSecret SECRET',
         | 
| 78 | 
            +
                     default: ENV['ARM_CLIENT_SECRET']
         | 
| 79 79 |  | 
| 80 80 | 
             
              option :subscription_id,
         | 
| 81 | 
            -
             | 
| 82 | 
            -
             | 
| 83 | 
            -
             | 
| 84 | 
            -
             | 
| 81 | 
            +
                     description: 'ARM Subscription ID',
         | 
| 82 | 
            +
                     short: '-S ID',
         | 
| 83 | 
            +
                     long: '--subscription ID',
         | 
| 84 | 
            +
                     default: ENV['ARM_SUBSCRIPTION_ID']
         | 
| 85 85 |  | 
| 86 86 | 
             
              option :resource_group_name,
         | 
| 87 | 
            -
             | 
| 88 | 
            -
             | 
| 87 | 
            +
                     description: 'Azure Resource Group Name',
         | 
| 88 | 
            +
                     long: '--resourceGroup RESOURCEGROUP'
         | 
| 89 89 |  | 
| 90 90 | 
             
              option :namespace_name,
         | 
| 91 | 
            -
             | 
| 92 | 
            -
             | 
| 91 | 
            +
                     description: 'Azure Service Bus Namespace Name',
         | 
| 92 | 
            +
                     long: '--namespaceName NAMESPACE'
         | 
| 93 93 |  | 
| 94 94 | 
             
              option :topic_name,
         | 
| 95 | 
            -
             | 
| 96 | 
            -
             | 
| 95 | 
            +
                     description: 'Azure Service Bus Topic Name',
         | 
| 96 | 
            +
                     long: '--topicName TOPIC'
         | 
| 97 97 |  | 
| 98 98 | 
             
              option :subscription_name,
         | 
| 99 | 
            -
             | 
| 100 | 
            -
             | 
| 99 | 
            +
                     description: 'Azure Service Bus Topic Name',
         | 
| 100 | 
            +
                     long: '--subscriptionName TOPIC'
         | 
| 101 101 |  | 
| 102 | 
            -
             | 
| 103 | 
            -
             | 
| 104 | 
            -
             | 
| 105 | 
            -
             | 
| 102 | 
            +
              option :custom_scheme,
         | 
| 103 | 
            +
                     description: 'Metric naming scheme, text to prepend to .$parent.$child',
         | 
| 104 | 
            +
                     long: '--customScheme SCHEME',
         | 
| 105 | 
            +
                     default: 'azurerm.servicebus'
         | 
| 106 106 |  | 
| 107 107 | 
             
              def run
         | 
| 108 | 
            -
                 | 
| 109 | 
            -
                 | 
| 110 | 
            -
                 | 
| 111 | 
            -
                 | 
| 108 | 
            +
                tenant_id = config[:tenant_id]
         | 
| 109 | 
            +
                client_id = config[:client_id]
         | 
| 110 | 
            +
                client_secret = config[:client_secret]
         | 
| 111 | 
            +
                subscription_id = config[:subscription_id]
         | 
| 112 112 |  | 
| 113 113 | 
             
                resource_group_name = config[:resource_group_name]
         | 
| 114 114 | 
             
                namespace_name = config[:namespace_name]
         | 
| 115 115 | 
             
                topic_name = config[:topic_name]
         | 
| 116 116 | 
             
                subscription_name = config[:subscription_name]
         | 
| 117 117 |  | 
| 118 | 
            -
                 | 
| 119 | 
            -
             | 
| 120 | 
            -
                serviceBusClient = usage.buildServiceBusClient(tenantId, clientId, clientSecret, subscriptionId)
         | 
| 121 | 
            -
                result = serviceBusClient.get(resource_group_name, namespace_name, topic_name, subscription_name)
         | 
| 118 | 
            +
                service_bus_client = ServiceBusUsage.new.build_service_bus_client(tenant_id, client_id, client_secret, subscription_id)
         | 
| 119 | 
            +
                result = service_bus_client.get(resource_group_name, namespace_name, topic_name, subscription_name)
         | 
| 122 120 |  | 
| 123 121 | 
             
                count = result.message_count
         | 
| 124 122 |  | 
| 125 123 | 
             
                timestamp = Time.now.utc.to_i
         | 
| 126 | 
            -
                scheme = config[: | 
| 124 | 
            +
                scheme = config[:custom_scheme]
         | 
| 127 125 | 
             
                name = [scheme, resource_group_name, namespace_name, topic_name, subscription_name].join('.').tr(' ', '_').tr('{}', '').tr('[]', '')
         | 
| 128 | 
            -
                 | 
| 126 | 
            +
                metric_name = [name, 'message_count'].join('.')
         | 
| 129 127 |  | 
| 130 | 
            -
                output  | 
| 128 | 
            +
                output metric_name, count, timestamp
         | 
| 131 129 | 
             
                ok
         | 
| 132 130 | 
             
              rescue => e
         | 
| 133 131 | 
             
                puts "Error: exception: #{e}"
         | 
| 134 132 | 
             
                critical
         | 
| 135 133 | 
             
              end
         | 
| 136 | 
            -
             | 
| 137 134 | 
             
            end
         | 
| @@ -29,8 +29,8 @@ | |
| 29 29 | 
             
            #                             --tenant "00000000-0000-0000-0000-000000000000"
         | 
| 30 30 | 
             
            #                             --client "00000000-0000-0000-0000-000000000000"
         | 
| 31 31 | 
             
            #                             --clientSecret "00000000-0000-0000-0000-000000000000"
         | 
| 32 | 
            -
            #                             -- | 
| 33 | 
            -
            #                             -- | 
| 32 | 
            +
            #                             --subscription "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234"
         | 
| 33 | 
            +
            #                             --resource_group_name "resourcegroup"
         | 
| 34 34 | 
             
            #                             --name "gatewayname"
         | 
| 35 35 | 
             
            #                             --customScheme "foo"
         | 
| 36 36 | 
             
            #
         | 
| @@ -42,81 +42,78 @@ | |
| 42 42 | 
             
            #   for details.
         | 
| 43 43 | 
             
            #
         | 
| 44 44 |  | 
| 45 | 
            +
            require 'azure_mgmt_network'
         | 
| 45 46 | 
             
            require 'sensu-plugin/metric/cli'
         | 
| 46 47 | 
             
            require 'sensu-plugins-azurerm'
         | 
| 47 | 
            -
            require 'azure_mgmt_network'
         | 
| 48 48 |  | 
| 49 49 | 
             
            class MetricAzureRMVirtualNetworkGatewayUsage < Sensu::Plugin::Metric::CLI::Statsd
         | 
| 50 50 | 
             
              include SensuPluginsAzureRM
         | 
| 51 51 |  | 
| 52 52 | 
             
              option :tenant_id,
         | 
| 53 | 
            -
             | 
| 54 | 
            -
             | 
| 55 | 
            -
             | 
| 56 | 
            -
             | 
| 53 | 
            +
                     description: 'ARM Tenant ID. Either set ENV[\'ARM_TENANT_ID\'] or provide it as an option',
         | 
| 54 | 
            +
                     short: '-t ID',
         | 
| 55 | 
            +
                     long: '--tenant ID',
         | 
| 56 | 
            +
                     default: ENV['ARM_TENANT_ID'] # TODO: can we pull these out from the Check too?
         | 
| 57 57 |  | 
| 58 58 | 
             
              option :client_id,
         | 
| 59 | 
            -
             | 
| 60 | 
            -
             | 
| 61 | 
            -
             | 
| 62 | 
            -
             | 
| 59 | 
            +
                     description: 'ARM Client ID. Either set ENV[\'ARM_CLIENT_ID\'] or provide it as an option',
         | 
| 60 | 
            +
                     short: '-c ID',
         | 
| 61 | 
            +
                     long: '--client ID',
         | 
| 62 | 
            +
                     default: ENV['ARM_CLIENT_ID']
         | 
| 63 63 |  | 
| 64 64 | 
             
              option :client_secret,
         | 
| 65 | 
            -
             | 
| 66 | 
            -
             | 
| 67 | 
            -
             | 
| 68 | 
            -
             | 
| 65 | 
            +
                     description: 'ARM Client Secret. Either set ENV[\'ARM_CLIENT_SECRET\'] or provide it as an option',
         | 
| 66 | 
            +
                     short: '-s SECRET',
         | 
| 67 | 
            +
                     long: '--clientSecret SECRET',
         | 
| 68 | 
            +
                     default: ENV['ARM_CLIENT_SECRET']
         | 
| 69 69 |  | 
| 70 70 | 
             
              option :subscription_id,
         | 
| 71 | 
            -
             | 
| 72 | 
            -
             | 
| 73 | 
            -
             | 
| 74 | 
            -
             | 
| 71 | 
            +
                     description: 'ARM Subscription ID',
         | 
| 72 | 
            +
                     short: '-S ID',
         | 
| 73 | 
            +
                     long: '--subscription ID',
         | 
| 74 | 
            +
                     default: ENV['ARM_SUBSCRIPTION_ID']
         | 
| 75 75 |  | 
| 76 76 | 
             
              option :resource_group_name,
         | 
| 77 | 
            -
             | 
| 78 | 
            -
             | 
| 79 | 
            -
             | 
| 77 | 
            +
                     description: 'Azure Resource Group Name',
         | 
| 78 | 
            +
                     short: '-r RESOURCEGROUP',
         | 
| 79 | 
            +
                     long: '--resourceGroup RESOURCEGROUP'
         | 
| 80 80 |  | 
| 81 81 | 
             
              option :name,
         | 
| 82 | 
            -
             | 
| 83 | 
            -
             | 
| 84 | 
            -
             | 
| 82 | 
            +
                     description: 'Azure Virtual Network Connection Gateway Name',
         | 
| 83 | 
            +
                     short: '-n NAME',
         | 
| 84 | 
            +
                     long: '--name NAME'
         | 
| 85 85 |  | 
| 86 | 
            -
             | 
| 87 | 
            -
             | 
| 88 | 
            -
             | 
| 89 | 
            -
             | 
| 86 | 
            +
              option :custom_scheme,
         | 
| 87 | 
            +
                     description: 'Metric naming scheme, text to prepend to .$parent.$child',
         | 
| 88 | 
            +
                     long: '--customScheme SCHEME',
         | 
| 89 | 
            +
                     default: 'azurerm.virtualnetworkgateway'
         | 
| 90 90 |  | 
| 91 91 | 
             
              def run
         | 
| 92 | 
            -
                 | 
| 93 | 
            -
                 | 
| 94 | 
            -
                 | 
| 95 | 
            -
                 | 
| 92 | 
            +
                tenant_id = config[:tenant_id]
         | 
| 93 | 
            +
                client_id = config[:client_id]
         | 
| 94 | 
            +
                client_secret = config[:client_secret]
         | 
| 95 | 
            +
                subscription_id = config[:subscription_id]
         | 
| 96 96 |  | 
| 97 97 | 
             
                resource_group_name = config[:resource_group_name]
         | 
| 98 98 | 
             
                name = config[:name]
         | 
| 99 99 |  | 
| 100 | 
            -
                 | 
| 101 | 
            -
             | 
| 102 | 
            -
                networkClient = usage.buildVirtualNetworkClient(tenantId, clientId, clientSecret, subscriptionId)
         | 
| 103 | 
            -
                result = networkClient.get(resource_group_name, name)
         | 
| 100 | 
            +
                network_client = NetworkUsage.new.build_virtual_network_gateways_client(tenant_id, client_id, client_secret, subscription_id)
         | 
| 101 | 
            +
                result = network_client.get(resource_group_name, name)
         | 
| 104 102 |  | 
| 105 103 | 
             
                inbound = result.ingress_bytes_transferred
         | 
| 106 104 | 
             
                outbound = result.egress_bytes_transferred
         | 
| 107 105 |  | 
| 108 106 | 
             
                timestamp = Time.now.utc.to_i
         | 
| 109 | 
            -
                scheme = config[: | 
| 107 | 
            +
                scheme = config[:custom_scheme]
         | 
| 110 108 | 
             
                name = [scheme, resource_group_name, name].join('.').tr(' ', '_').tr('{}', '').tr('[]', '')
         | 
| 111 | 
            -
                 | 
| 112 | 
            -
                 | 
| 109 | 
            +
                inbound_name = [name, 'inbound'].join('.')
         | 
| 110 | 
            +
                outbound_name = [name, 'outbound'].join('.')
         | 
| 113 111 |  | 
| 114 | 
            -
                output  | 
| 115 | 
            -
                output  | 
| 112 | 
            +
                output inbound_name, inbound, timestamp
         | 
| 113 | 
            +
                output outbound_name, outbound, timestamp
         | 
| 116 114 | 
             
                ok
         | 
| 117 115 | 
             
              rescue => e
         | 
| 118 116 | 
             
                puts "Error: exception: #{e}"
         | 
| 119 117 | 
             
                critical
         | 
| 120 118 | 
             
              end
         | 
| 121 | 
            -
             | 
| 122 119 | 
             
            end
         | 
| @@ -0,0 +1,10 @@ | |
| 1 | 
            +
            module SensuPluginsAzureRM
         | 
| 2 | 
            +
              class Common
         | 
| 3 | 
            +
                def retrieve_usage_stats(client, location, name)
         | 
| 4 | 
            +
                  usage_statistics = client.list(location)
         | 
| 5 | 
            +
             | 
| 6 | 
            +
                  filtered_statistics = usage_statistics.select { |stat| stat.name.value == name }
         | 
| 7 | 
            +
                  filtered_statistics[0]
         | 
| 8 | 
            +
                end
         | 
| 9 | 
            +
              end
         | 
| 10 | 
            +
            end
         | 
| @@ -1,23 +1,13 @@ | |
| 1 1 | 
             
            module SensuPluginsAzureRM
         | 
| 2 | 
            -
             | 
| 3 2 | 
             
              class ComputeUsage
         | 
| 4 | 
            -
             | 
| 5 | 
            -
                def buildUsageOperationClient(tenant_id, client_id, secret, subscription_id)
         | 
| 3 | 
            +
                def build_usage_operation_client(tenant_id, client_id, secret, subscription_id)
         | 
| 6 4 | 
             
                  token_provider = MsRestAzure::ApplicationTokenProvider.new(tenant_id, client_id, secret)
         | 
| 7 5 | 
             
                  credentials = MsRest::TokenCredentials.new(token_provider)
         | 
| 8 6 | 
             
                  client = Azure::ARM::Compute::ComputeManagementClient.new(credentials)
         | 
| 9 7 | 
             
                  client.subscription_id = subscription_id
         | 
| 10 8 |  | 
| 11 | 
            -
                   | 
| 12 | 
            -
                   | 
| 13 | 
            -
                end
         | 
| 14 | 
            -
             | 
| 15 | 
            -
                def retrieveUsageStats(client, location, name)
         | 
| 16 | 
            -
                  usageStatistics = client.list(location)
         | 
| 17 | 
            -
             | 
| 18 | 
            -
                  filteredStatistics = usageStatistics.select { |stat| stat.name.value == name }
         | 
| 19 | 
            -
                  filteredStatistics[0]
         | 
| 9 | 
            +
                  usage_client = Azure::ARM::Compute::UsageOperations.new(client)
         | 
| 10 | 
            +
                  usage_client
         | 
| 20 11 | 
             
                end
         | 
| 21 | 
            -
             | 
| 22 12 | 
             
              end
         | 
| 23 13 | 
             
            end
         | 
| @@ -1,16 +1,23 @@ | |
| 1 1 | 
             
            module SensuPluginsAzureRM
         | 
| 2 | 
            -
             | 
| 3 2 | 
             
              class NetworkUsage
         | 
| 4 | 
            -
             | 
| 5 | 
            -
                def buildVirtualNetworkClient(tenant_id, client_id, secret, subscription_id)
         | 
| 3 | 
            +
                def build_usage_client(tenant_id, client_id, secret, subscription_id)
         | 
| 6 4 | 
             
                  token_provider = MsRestAzure::ApplicationTokenProvider.new(tenant_id, client_id, secret)
         | 
| 7 5 | 
             
                  credentials = MsRest::TokenCredentials.new(token_provider)
         | 
| 8 6 | 
             
                  client = Azure::ARM::Network::NetworkManagementClient.new(credentials)
         | 
| 9 7 | 
             
                  client.subscription_id = subscription_id
         | 
| 10 8 |  | 
| 11 | 
            -
                   | 
| 12 | 
            -
                   | 
| 9 | 
            +
                  usage_client = Azure::ARM::Network::Usages.new(client)
         | 
| 10 | 
            +
                  usage_client
         | 
| 13 11 | 
             
                end
         | 
| 14 12 |  | 
| 13 | 
            +
                def build_virtual_network_gateways_client(tenant_id, client_id, secret, subscription_id)
         | 
| 14 | 
            +
                  token_provider = MsRestAzure::ApplicationTokenProvider.new(tenant_id, client_id, secret)
         | 
| 15 | 
            +
                  credentials = MsRest::TokenCredentials.new(token_provider)
         | 
| 16 | 
            +
                  client = Azure::ARM::Network::NetworkManagementClient.new(credentials)
         | 
| 17 | 
            +
                  client.subscription_id = subscription_id
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                  usage_client = Azure::ARM::Network::VirtualNetworkGatewayConnections.new(client)
         | 
| 20 | 
            +
                  usage_client
         | 
| 21 | 
            +
                end
         | 
| 15 22 | 
             
              end
         | 
| 16 23 | 
             
            end
         | 
| @@ -1,16 +1,13 @@ | |
| 1 1 | 
             
            module SensuPluginsAzureRM
         | 
| 2 | 
            -
             | 
| 3 2 | 
             
              class ServiceBusUsage
         | 
| 4 | 
            -
             | 
| 5 | 
            -
                def buildServiceBusClient(tenant_id, client_id, secret, subscription_id)
         | 
| 3 | 
            +
                def build_service_bus_client(tenant_id, client_id, secret, subscription_id)
         | 
| 6 4 | 
             
                  token_provider = MsRestAzure::ApplicationTokenProvider.new(tenant_id, client_id, secret)
         | 
| 7 5 | 
             
                  credentials = MsRest::TokenCredentials.new(token_provider)
         | 
| 8 6 | 
             
                  client = Azure::ARM::ServiceBus::ServiceBusManagementClient.new(credentials)
         | 
| 9 7 | 
             
                  client.subscription_id = subscription_id
         | 
| 10 8 |  | 
| 11 | 
            -
                   | 
| 12 | 
            -
                   | 
| 9 | 
            +
                  usage_client = Azure::ARM::ServiceBus::Subscriptions.new(client)
         | 
| 10 | 
            +
                  usage_client
         | 
| 13 11 | 
             
                end
         | 
| 14 | 
            -
             | 
| 15 12 | 
             
              end
         | 
| 16 13 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: sensu-plugins-azurerm
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Tom Harvey
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2016- | 
| 11 | 
            +
            date: 2016-12-03 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: azure_mgmt_compute
         | 
| @@ -56,187 +56,214 @@ dependencies: | |
| 56 56 | 
             
              name: ms_rest_azure
         | 
| 57 57 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 58 58 | 
             
                requirements:
         | 
| 59 | 
            -
                - - ~>
         | 
| 59 | 
            +
                - - "~>"
         | 
| 60 60 | 
             
                  - !ruby/object:Gem::Version
         | 
| 61 61 | 
             
                    version: 0.6.2
         | 
| 62 62 | 
             
              type: :runtime
         | 
| 63 63 | 
             
              prerelease: false
         | 
| 64 64 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 65 65 | 
             
                requirements:
         | 
| 66 | 
            -
                - - ~>
         | 
| 66 | 
            +
                - - "~>"
         | 
| 67 67 | 
             
                  - !ruby/object:Gem::Version
         | 
| 68 68 | 
             
                    version: 0.6.2
         | 
| 69 69 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 70 70 | 
             
              name: sensu-plugin
         | 
| 71 71 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 72 72 | 
             
                requirements:
         | 
| 73 | 
            -
                - - ~>
         | 
| 73 | 
            +
                - - "~>"
         | 
| 74 74 | 
             
                  - !ruby/object:Gem::Version
         | 
| 75 75 | 
             
                    version: '1.3'
         | 
| 76 76 | 
             
              type: :runtime
         | 
| 77 77 | 
             
              prerelease: false
         | 
| 78 78 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 79 79 | 
             
                requirements:
         | 
| 80 | 
            -
                - - ~>
         | 
| 80 | 
            +
                - - "~>"
         | 
| 81 81 | 
             
                  - !ruby/object:Gem::Version
         | 
| 82 82 | 
             
                    version: '1.3'
         | 
| 83 83 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 84 84 | 
             
              name: bundler
         | 
| 85 85 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 86 86 | 
             
                requirements:
         | 
| 87 | 
            -
                - - ~>
         | 
| 87 | 
            +
                - - "~>"
         | 
| 88 88 | 
             
                  - !ruby/object:Gem::Version
         | 
| 89 89 | 
             
                    version: '1.7'
         | 
| 90 90 | 
             
              type: :development
         | 
| 91 91 | 
             
              prerelease: false
         | 
| 92 92 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 93 93 | 
             
                requirements:
         | 
| 94 | 
            -
                - - ~>
         | 
| 94 | 
            +
                - - "~>"
         | 
| 95 95 | 
             
                  - !ruby/object:Gem::Version
         | 
| 96 96 | 
             
                    version: '1.7'
         | 
| 97 97 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 98 98 | 
             
              name: codeclimate-test-reporter
         | 
| 99 99 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 100 100 | 
             
                requirements:
         | 
| 101 | 
            -
                - - ~>
         | 
| 101 | 
            +
                - - "~>"
         | 
| 102 102 | 
             
                  - !ruby/object:Gem::Version
         | 
| 103 103 | 
             
                    version: '0.4'
         | 
| 104 104 | 
             
              type: :development
         | 
| 105 105 | 
             
              prerelease: false
         | 
| 106 106 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 107 107 | 
             
                requirements:
         | 
| 108 | 
            -
                - - ~>
         | 
| 108 | 
            +
                - - "~>"
         | 
| 109 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 110 110 | 
             
                    version: '0.4'
         | 
| 111 111 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 112 112 | 
             
              name: github-markup
         | 
| 113 113 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 114 114 | 
             
                requirements:
         | 
| 115 | 
            -
                - - ~>
         | 
| 115 | 
            +
                - - "~>"
         | 
| 116 116 | 
             
                  - !ruby/object:Gem::Version
         | 
| 117 117 | 
             
                    version: '1.3'
         | 
| 118 118 | 
             
              type: :development
         | 
| 119 119 | 
             
              prerelease: false
         | 
| 120 120 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 121 121 | 
             
                requirements:
         | 
| 122 | 
            -
                - - ~>
         | 
| 122 | 
            +
                - - "~>"
         | 
| 123 123 | 
             
                  - !ruby/object:Gem::Version
         | 
| 124 124 | 
             
                    version: '1.3'
         | 
| 125 125 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 126 126 | 
             
              name: pry
         | 
| 127 127 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 128 128 | 
             
                requirements:
         | 
| 129 | 
            -
                - - ~>
         | 
| 129 | 
            +
                - - "~>"
         | 
| 130 130 | 
             
                  - !ruby/object:Gem::Version
         | 
| 131 131 | 
             
                    version: '0.10'
         | 
| 132 132 | 
             
              type: :development
         | 
| 133 133 | 
             
              prerelease: false
         | 
| 134 134 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 135 135 | 
             
                requirements:
         | 
| 136 | 
            -
                - - ~>
         | 
| 136 | 
            +
                - - "~>"
         | 
| 137 137 | 
             
                  - !ruby/object:Gem::Version
         | 
| 138 138 | 
             
                    version: '0.10'
         | 
| 139 139 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 140 140 | 
             
              name: rake
         | 
| 141 141 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 142 142 | 
             
                requirements:
         | 
| 143 | 
            -
                - - ~>
         | 
| 143 | 
            +
                - - "~>"
         | 
| 144 144 | 
             
                  - !ruby/object:Gem::Version
         | 
| 145 145 | 
             
                    version: '10.5'
         | 
| 146 146 | 
             
              type: :development
         | 
| 147 147 | 
             
              prerelease: false
         | 
| 148 148 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 149 149 | 
             
                requirements:
         | 
| 150 | 
            -
                - - ~>
         | 
| 150 | 
            +
                - - "~>"
         | 
| 151 151 | 
             
                  - !ruby/object:Gem::Version
         | 
| 152 152 | 
             
                    version: '10.5'
         | 
| 153 153 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 154 154 | 
             
              name: redcarpet
         | 
| 155 155 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 156 156 | 
             
                requirements:
         | 
| 157 | 
            -
                - - ~>
         | 
| 157 | 
            +
                - - "~>"
         | 
| 158 158 | 
             
                  - !ruby/object:Gem::Version
         | 
| 159 159 | 
             
                    version: '3.2'
         | 
| 160 160 | 
             
              type: :development
         | 
| 161 161 | 
             
              prerelease: false
         | 
| 162 162 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 163 163 | 
             
                requirements:
         | 
| 164 | 
            -
                - - ~>
         | 
| 164 | 
            +
                - - "~>"
         | 
| 165 165 | 
             
                  - !ruby/object:Gem::Version
         | 
| 166 166 | 
             
                    version: '3.2'
         | 
| 167 167 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 168 168 | 
             
              name: rubocop
         | 
| 169 169 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 170 170 | 
             
                requirements:
         | 
| 171 | 
            -
                - - ~>
         | 
| 171 | 
            +
                - - "~>"
         | 
| 172 172 | 
             
                  - !ruby/object:Gem::Version
         | 
| 173 173 | 
             
                    version: 0.40.0
         | 
| 174 174 | 
             
              type: :development
         | 
| 175 175 | 
             
              prerelease: false
         | 
| 176 176 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 177 177 | 
             
                requirements:
         | 
| 178 | 
            -
                - - ~>
         | 
| 178 | 
            +
                - - "~>"
         | 
| 179 179 | 
             
                  - !ruby/object:Gem::Version
         | 
| 180 180 | 
             
                    version: 0.40.0
         | 
| 181 181 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 182 182 | 
             
              name: rspec
         | 
| 183 183 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 184 184 | 
             
                requirements:
         | 
| 185 | 
            -
                - - ~>
         | 
| 185 | 
            +
                - - "~>"
         | 
| 186 186 | 
             
                  - !ruby/object:Gem::Version
         | 
| 187 187 | 
             
                    version: '3.4'
         | 
| 188 188 | 
             
              type: :development
         | 
| 189 189 | 
             
              prerelease: false
         | 
| 190 190 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 191 191 | 
             
                requirements:
         | 
| 192 | 
            -
                - - ~>
         | 
| 192 | 
            +
                - - "~>"
         | 
| 193 193 | 
             
                  - !ruby/object:Gem::Version
         | 
| 194 194 | 
             
                    version: '3.4'
         | 
| 195 195 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 196 196 | 
             
              name: yard
         | 
| 197 197 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 198 198 | 
             
                requirements:
         | 
| 199 | 
            -
                - - ~>
         | 
| 199 | 
            +
                - - "~>"
         | 
| 200 200 | 
             
                  - !ruby/object:Gem::Version
         | 
| 201 201 | 
             
                    version: '0.8'
         | 
| 202 202 | 
             
              type: :development
         | 
| 203 203 | 
             
              prerelease: false
         | 
| 204 204 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 205 205 | 
             
                requirements:
         | 
| 206 | 
            -
                - - ~>
         | 
| 206 | 
            +
                - - "~>"
         | 
| 207 207 | 
             
                  - !ruby/object:Gem::Version
         | 
| 208 208 | 
             
                    version: '0.8'
         | 
| 209 209 | 
             
            description: This plugin provides checks for Microsoft Azure's Resource Manager service.
         | 
| 210 | 
            -
            email: <github@ibuildstuff.co.uk>
         | 
| 210 | 
            +
            email: "<github@ibuildstuff.co.uk>"
         | 
| 211 211 | 
             
            executables:
         | 
| 212 212 | 
             
            - check-azurerm-core-usage.rb
         | 
| 213 | 
            +
            - check-azurerm-cores-d-usage.rb
         | 
| 214 | 
            +
            - check-azurerm-cores-ds-usage.rb
         | 
| 215 | 
            +
            - check-azurerm-cores-dsv2-usage.rb
         | 
| 216 | 
            +
            - check-azurerm-cores-dv2-usage.rb
         | 
| 217 | 
            +
            - check-azurerm-cores-f-usage.rb
         | 
| 218 | 
            +
            - check-azurerm-cores-fs-usage.rb
         | 
| 219 | 
            +
            - check-azurerm-load-balancers-usage.rb
         | 
| 220 | 
            +
            - check-azurerm-network-interfaces-usage.rb
         | 
| 221 | 
            +
            - check-azurerm-network-security-groups-usage.rb
         | 
| 222 | 
            +
            - check-azurerm-public-ip-addresses-usage.rb
         | 
| 223 | 
            +
            - check-azurerm-route-tables-usage.rb
         | 
| 224 | 
            +
            - check-azurerm-static-public-ip-addresses-usage.rb
         | 
| 213 225 | 
             
            - check-azurerm-virtual-machines-usage.rb
         | 
| 214 226 | 
             
            - check-azurerm-virtual-network-gateway-connected.rb
         | 
| 215 227 | 
             
            - check-azurerm-virtual-network-gateway-failure-connected.rb
         | 
| 228 | 
            +
            - check-azurerm-virtual-networks-usage.rb
         | 
| 216 229 | 
             
            - metric-azurerm-service-bus-subscription-message-count.rb
         | 
| 217 230 | 
             
            - metric-azurerm-virtual-network-gateway-usage.rb
         | 
| 218 231 | 
             
            extensions: []
         | 
| 219 232 | 
             
            extra_rdoc_files: []
         | 
| 220 233 | 
             
            files:
         | 
| 234 | 
            +
            - CHANGELOG.md
         | 
| 235 | 
            +
            - LICENSE
         | 
| 236 | 
            +
            - README.md
         | 
| 221 237 | 
             
            - bin/check-azurerm-core-usage.rb
         | 
| 238 | 
            +
            - bin/check-azurerm-cores-d-usage.rb
         | 
| 239 | 
            +
            - bin/check-azurerm-cores-ds-usage.rb
         | 
| 240 | 
            +
            - bin/check-azurerm-cores-dsv2-usage.rb
         | 
| 241 | 
            +
            - bin/check-azurerm-cores-dv2-usage.rb
         | 
| 242 | 
            +
            - bin/check-azurerm-cores-f-usage.rb
         | 
| 243 | 
            +
            - bin/check-azurerm-cores-fs-usage.rb
         | 
| 244 | 
            +
            - bin/check-azurerm-load-balancers-usage.rb
         | 
| 245 | 
            +
            - bin/check-azurerm-network-interfaces-usage.rb
         | 
| 246 | 
            +
            - bin/check-azurerm-network-security-groups-usage.rb
         | 
| 247 | 
            +
            - bin/check-azurerm-public-ip-addresses-usage.rb
         | 
| 248 | 
            +
            - bin/check-azurerm-route-tables-usage.rb
         | 
| 249 | 
            +
            - bin/check-azurerm-static-public-ip-addresses-usage.rb
         | 
| 222 250 | 
             
            - bin/check-azurerm-virtual-machines-usage.rb
         | 
| 223 251 | 
             
            - bin/check-azurerm-virtual-network-gateway-connected.rb
         | 
| 224 252 | 
             
            - bin/check-azurerm-virtual-network-gateway-failure-connected.rb
         | 
| 253 | 
            +
            - bin/check-azurerm-virtual-networks-usage.rb
         | 
| 225 254 | 
             
            - bin/metric-azurerm-service-bus-subscription-message-count.rb
         | 
| 226 255 | 
             
            - bin/metric-azurerm-virtual-network-gateway-usage.rb
         | 
| 256 | 
            +
            - lib/sensu-plugins-azurerm.rb
         | 
| 257 | 
            +
            - lib/sensu-plugins-azurerm/common.rb
         | 
| 227 258 | 
             
            - lib/sensu-plugins-azurerm/compute_usage.rb
         | 
| 228 259 | 
             
            - lib/sensu-plugins-azurerm/network_usage.rb
         | 
| 229 260 | 
             
            - lib/sensu-plugins-azurerm/servicebus_usage.rb
         | 
| 230 261 | 
             
            - lib/sensu-plugins-azurerm/version.rb
         | 
| 231 | 
            -
            - lib/sensu-plugins-azurerm.rb
         | 
| 232 | 
            -
            - LICENSE
         | 
| 233 | 
            -
            - README.md
         | 
| 234 | 
            -
            - CHANGELOG.md
         | 
| 235 262 | 
             
            homepage: https://github.com/tombuildsstuff/sensu-plugins-azurerm
         | 
| 236 263 | 
             
            licenses:
         | 
| 237 264 | 
             
            - MIT
         | 
| 238 265 | 
             
            metadata:
         | 
| 239 | 
            -
              maintainer:  | 
| 266 | 
            +
              maintainer: Tom Harvey
         | 
| 240 267 | 
             
              development_status: active
         | 
| 241 268 | 
             
              production_status: unstable - testing recommended
         | 
| 242 269 | 
             
              release_draft: 'false'
         | 
| @@ -248,17 +275,17 @@ require_paths: | |
| 248 275 | 
             
            - lib
         | 
| 249 276 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 250 277 | 
             
              requirements:
         | 
| 251 | 
            -
              - -  | 
| 278 | 
            +
              - - ">="
         | 
| 252 279 | 
             
                - !ruby/object:Gem::Version
         | 
| 253 280 | 
             
                  version: 2.0.0
         | 
| 254 281 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 255 282 | 
             
              requirements:
         | 
| 256 | 
            -
              - -  | 
| 283 | 
            +
              - - ">="
         | 
| 257 284 | 
             
                - !ruby/object:Gem::Version
         | 
| 258 285 | 
             
                  version: '0'
         | 
| 259 286 | 
             
            requirements: []
         | 
| 260 287 | 
             
            rubyforge_project: 
         | 
| 261 | 
            -
            rubygems_version: 2. | 
| 288 | 
            +
            rubygems_version: 2.5.1
         | 
| 262 289 | 
             
            signing_key: 
         | 
| 263 290 | 
             
            specification_version: 4
         | 
| 264 291 | 
             
            summary: Sensu plugins for working with an Azure Resource Manager environment
         |