OciService

class oci.logging.models.OciService(**kwargs)

Bases: oci.logging.models.source.Source

OCI service logging configuration.

Attributes

SOURCE_TYPE_OCISERVICE str(object=’’) -> str
category [Required] Gets the category of this OciService.
parameters Gets the parameters of this OciService.
resource [Required] Gets the resource of this OciService.
service [Required] Gets the service of this OciService.
source_type [Required] Gets the source_type of this Source.

Methods

__init__(**kwargs) Initializes a new OciService object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
SOURCE_TYPE_OCISERVICE = 'OCISERVICE'
__init__(**kwargs)

Initializes a new OciService object with values from keyword arguments. The default value of the source_type attribute of this class is OCISERVICE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • source_type (str) – The value to assign to the source_type property of this OciService. Allowed values for this property are: “OCISERVICE”
  • service (str) – The value to assign to the service property of this OciService.
  • resource (str) – The value to assign to the resource property of this OciService.
  • category (str) – The value to assign to the category property of this OciService.
  • parameters (dict(str, str)) – The value to assign to the parameters property of this OciService.
category

[Required] Gets the category of this OciService. Log object category.

Returns:The category of this OciService.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

parameters

Gets the parameters of this OciService. Log category parameters are stored here.

Returns:The parameters of this OciService.
Return type:dict(str, str)
resource

[Required] Gets the resource of this OciService. The unique identifier of the resource emitting the log.

Returns:The resource of this OciService.
Return type:str
service

[Required] Gets the service of this OciService. Service generating log.

Returns:The service of this OciService.
Return type:str
source_type

[Required] Gets the source_type of this Source. The log source. * OCISERVICE: Oracle Service.

Allowed values for this property are: “OCISERVICE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The source_type of this Source.
Return type:str