boundary/metric_modify.py
def get_arguments(self):
        """
        Extracts the specific arguments of this CLI
        """
        MetricCommon.get_arguments(self)
        
        if self.args.metricName is not None:
            self.metricName = self.args.metricName
            
        if self.args.displayName is not None:
            self.displayName = self.args.displayName
                        
        if self.args.displayNameShort is not None:
            self.displayNameShort = self.args.displayNameShort

        if self.args.description is not None:
            self.description = self.args.description
                    
        if self.args.aggregate is not None:
            self.aggregate = self.args.aggregate
            
        if self.args.unit is not None:
            self.unit = self.args.unit
            
        if self.args.resolution is not None:
            self.resolution = self.args.resolution

        if self.args.isDisabled is not None:
            self.isDisabled = self.args.isDisabled

        if self.args.type is not None:
            self.type = self.args.type

        data = {}
        if self.metricName is not None:
            data['name'] = self.metricName
        if self.displayName is not None:
            data['displayName'] = self.displayName
        if self.displayNameShort is not None:
            data['displayNameShort'] = self.displayNameShort
        if self.description is not None:
            data['description'] = self.description
        if self.aggregate is not None:
            data['defaultAggregate'] = self.aggregate
        if self.unit is not None:
            data['unit'] = self.unit
        if self.resolution is not None:
            data['defaultResolutionMS'] = self.resolution
        if self.isDisabled is not None:
            data['isDisabled'] = True if self.isDisabled == 'yes' else False
        if self.type is not None:
            data['type'] =  self.type

        self.path = "v1/metrics/{0}".format(self.metricName)
        self.data = json.dumps(data, sort_keys=True)
        self.headers = {'Content-Type': 'application/json', "Accept": "application/json"}
def get_arguments(self):
        """
        Extracts the specific arguments of this CLI
        """
        MetricCommon.get_arguments(self)
        
        if self.args.metricName is not None:
            self.metricName = self.args.metricName
            
        if self.args.displayName is not None:
            self.displayName = self.args.displayName
                        
        if self.args.displayNameShort is not None:
            self.displayNameShort = self.args.displayNameShort

        if self.args.description is not None:
            self.description = self.args.description
                    
        if self.args.aggregate is not None:
            self.aggregate = self.args.aggregate
            
        if self.args.unit is not None:
            self.unit = self.args.unit
            
        if self.args.resolution is not None:
            self.resolution = self.args.resolution

        if self.args.isDisabled is not None:
            self.isDisabled = self.args.isDisabled

        if self.args.type is not None:
            self.type = self.args.type

        data = {}
        if self.metricName is not None:
            data['name'] = self.metricName
        if self.displayName is not None:
            data['displayName'] = self.displayName
        if self.displayNameShort is not None:
            data['displayNameShort'] = self.displayNameShort
        if self.description is not None:
            data['description'] = self.description
        if self.aggregate is not None:
            data['defaultAggregate'] = self.aggregate
        if self.unit is not None:
            data['unit'] = self.unit
        if self.resolution is not None:
            data['defaultResolutionMS'] = self.resolution
        if self.isDisabled is not None:
            data['isDisabled'] = True if self.isDisabled == 'yes' else False
        if self.type is not None:
            data['type'] =  self.type

        self.path = "v1/metrics/{0}".format(self.metricName)
        self.data = json.dumps(data, sort_keys=True)
        self.headers = {'Content-Type': 'application/json', "Accept": "application/json"}
def get_arguments ( self ) : MetricCommon . get_arguments ( self ) if self . args . metricName is not None : self . metricName = self . args . metricName if self . args . displayName is not None : self . displayName = self . args . displayName if self . args . displayNameShort is not None : self . displayNameShort = self . args . displayNameShort if self . args . description is not None : self . description = self . args . description if self . args . aggregate is not None : self . aggregate = self . args . aggregate if self . args . unit is not None : self . unit = self . args . unit if self . args . resolution is not None : self . resolution = self . args . resolution if self . args . isDisabled is not None : self . isDisabled = self . args . isDisabled if self . args . type is not None : self . type = self . args . type data = { } if self . metricName is not None : data [ 'name' ] = self . metricName if self . displayName is not None : data [ 'displayName' ] = self . displayName if self . displayNameShort is not None : data [ 'displayNameShort' ] = self . displayNameShort if self . description is not None : data [ 'description' ] = self . description if self . aggregate is not None : data [ 'defaultAggregate' ] = self . aggregate if self . unit is not None : data [ 'unit' ] = self . unit if self . resolution is not None : data [ 'defaultResolutionMS' ] = self . resolution if self . isDisabled is not None : data [ 'isDisabled' ] = True if self . isDisabled == 'yes' else False if self . type is not None : data [ 'type' ] = self . type self . path = "v1/metrics/{0}" . format ( self . metricName ) self . data = json . dumps ( data , sort_keys = True ) self . headers = { 'Content-Type' : 'application/json' , "Accept" : "application/json" }
Extracts the specific arguments of this CLI
Extracts the specific arguments of this CLI