cloudkittyclient.v1.rating.
CliModuleDisable
(app, app_args, cmd_name=None)¶Disable a rating module.
take_action
(parsed_args)¶Return a tuple containing the column names and an iterable containing the data to be listed.
cloudkittyclient.v1.rating.
CliModuleEnable
(app, app_args, cmd_name=None)¶Enable a rating module.
take_action
(parsed_args)¶Return a tuple containing the column names and an iterable containing the data to be listed.
cloudkittyclient.v1.rating.
CliModuleGet
(app, app_args, cmd_name=None)¶Get a rating module or list loaded rating modules.
If module_id is not specified, returns a list of all loaded rating modules.
get_parser
(prog_name)¶Return an argparse.ArgumentParser
.
take_action
(parsed_args)¶Return a tuple containing the column names and an iterable containing the data to be listed.
cloudkittyclient.v1.rating.
CliModuleList
(app, app_args, cmd_name=None)¶List loaded rating modules.
take_action
(parsed_args)¶Return a tuple containing the column names and an iterable containing the data to be listed.
cloudkittyclient.v1.rating.
CliModuleSet
(app, app_args, cmd_name=None)¶get_parser
(prog_name)¶Return an argparse.ArgumentParser
.
cloudkittyclient.v1.rating.
CliModuleSetPriority
(app, app_args, cmd_name=None)¶Set the priority of a rating module.
get_parser
(prog_name)¶Return an argparse.ArgumentParser
.
take_action
(parsed_args)¶Return a tuple containing the column names and an iterable containing the data to be listed.
cloudkittyclient.v1.rating.
RatingManager
(api_client)¶Class used to handle /v1/rating endpoint
get_module
(**kwargs)¶Returns the given module.
If module_id is not specified, returns the list of loaded modules.
Parameters: | module_id (str) – ID of the module on which you want information. |
---|
get_quotation
(**kwargs)¶Returns a quote base on multiple resource descriptions.
Parameters: | res_data (list) – A list of resource descriptions. |
---|
reload_modules
(**kwargs)¶Triggers a reload of all rating modules.
update_module
(**kwargs)¶Update the given module.
Parameters: |
|
---|
cloudkittyclient.v1.rating.hashmap.
HashmapManager
(api_client)¶Class used to manage the Hashmap rating module
create_field
(**kwargs)¶Creates a hashmap field.
Parameters: |
|
---|
create_group
(**kwargs)¶Create a hashmap group.
Parameters: | name (str) – Name of the group |
---|
create_mapping
(**kwargs)¶Create a hashmap mapping.
Parameters: |
|
---|
create_service
(**kwargs)¶Creates a hashmap service.
Parameters: | name (str) – Name of the service |
---|
create_threshold
(**kwargs)¶Create a hashmap threshold.
Parameters: |
|
---|
delete_field
(**kwargs)¶Deletes the given field.
Parameters: | field_id (uuid) – ID of the field to delete. |
---|
delete_group
(**kwargs)¶Delete a hashmap group.
Parameters: |
|
---|
delete_mapping
(**kwargs)¶Delete a hashmap mapping.
Parameters: | mapping_id (uuid) – ID of the mapping to delete. |
---|
delete_service
(**kwargs)¶Deletes a hashmap service
Parameters: | service_id (uuid) – ID of the service to delete |
---|
delete_threshold
(**kwargs)¶Delete a hashmap threshold.
Parameters: | threshold_id (uuid) – ID of the threshold to delete. |
---|
get_field
(**kwargs)¶Returns a hashmap field.
Either service_id or field_id must be specified. If service_id is provided, all fields of the given service are returned. If field_id is specified, only this field is returned.
Parameters: |
|
---|
get_group
(**kwargs)¶Get the hashmap group corresponding to the given ID.
If group_id is not specified, returns a list of all hashmap groups.
Parameters: | group_id (uuid) – Group ID |
---|
get_group_mappings
(**kwargs)¶Get the mappings attached to the given group.
Parameters: | group_id (uuid) – ID of the group |
---|
get_group_thresholds
(**kwargs)¶Get the thresholds attached to the given group.
Parameters: | group_id (uuid) – ID of the group |
---|
get_mapping
(**kwargs)¶Get hashmap mappings.
If mapping_id is not provided, you need to specify either service_id, field_id or group_id.
Parameters: |
|
---|
get_mapping_group
(**kwargs)¶Get the group attached to a mapping.
Parameters: | mapping_id (uuid) – ID of the mapping to update |
---|
get_mapping_types
(**kwargs)¶Returns a list of all available mapping types.
get_service
(**kwargs)¶Returns the service corresponding to the provided ID.
If no ID is provided, returns a list of all hashmap services.
Parameters: | service_id (str) – ID of the service |
---|
get_threshold
(**kwargs)¶Get hashmap thresholds.
If threshold_id is not provided, you need to specify either service_id, field_id or group_id.
Parameters: |
|
---|
get_threshold_group
(**kwargs)¶Get the group attached to a threshold.
Parameters: | threshold_id (uuid) – ID of the threshold to update |
---|
update_mapping
(**kwargs)¶Update a hashmap mapping.
Parameters: |
|
---|
update_threshold
(**kwargs)¶Update a hashmap threshold.
Parameters: |
|
---|
cloudkittyclient.v1.rating.pyscripts.
PyscriptManager
(api_client)¶Class used to manage the Pyscript rating module
create_script
(**kwargs)¶Create a new script.
Parameters: |
|
---|
delete_script
(**kwargs)¶Delete a script.
Parameters: | script_id (str) – ID of the script to update |
---|
get_script
(**kwargs)¶Get the script corresponding to the given ID.
Parameters: | script_id (str) – ID of the script. |
---|
list_scripts
(**kwargs)¶Get a list of all pyscripts.
Parameters: | no_data (bool) – Set to True to remove script data from output. |
---|
update_script
(**kwargs)¶Update an existing script.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.