class Azure::Monitor::Mgmt::V2015_04_01::Models::EventData

The Azure event log entries are of type EventData

Attributes

authorization[RW]

@return [SenderAuthorization] The sender authorization information.

caller[RW]

@return [String] the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability.

category[RW]

@return [LocalizableString] the event category.

claims[RW]

@return [Hash{String => String}] key value pairs to identify ARM permissions.

correlation_id[RW]

@return [String] the correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation.

description[RW]

@return [String] the description of the event.

event_data_id[RW]

@return [String] the event data Id. This is a unique identifier for an event.

event_name[RW]

@return [LocalizableString] the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users.

event_timestamp[RW]

@return [DateTime] the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format.

http_request[RW]

@return [HttpRequestInfo] the HTTP request info. Usually includes the 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated the event) and 'method' (HTTP method e.g. PUT).

id[RW]

@return [String] the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information.

level[RW]

@return [EventLevel] the event level. Possible values include: 'Critical', 'Error', 'Warning', 'Informational', 'Verbose'

operation_id[RW]

@return [String] It is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName.

operation_name[RW]

@return [LocalizableString] the operation name.

properties[RW]

@return [Hash{String => String}] the set of <Key, Value> pairs (usually a Dictionary<String, String>) that includes details about the event.

resource_group_name[RW]

@return [String] the resource group name of the impacted resource.

resource_id[RW]

@return [String] the resource uri that uniquely identifies the resource that caused this event.

resource_provider_name[RW]

@return [LocalizableString] the resource provider name of the impacted resource.

resource_type[RW]

@return [LocalizableString] the resource type

status[RW]

@return [LocalizableString] a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved.

sub_status[RW]

@return [LocalizableString] the event sub status. Most of the time, when included, this captures the HTTP status code of the REST call. Common values are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: 504)

submission_timestamp[RW]

@return [DateTime] the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure.

subscription_id[RW]

@return [String] the Azure subscription Id usually a GUID.

tenant_id[RW]

@return [String] the Azure tenant Id

Private Class Methods

mapper() click to toggle source

Mapper for EventData class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data.rb, line 123
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EventData',
    type: {
      name: 'Composite',
      class_name: 'EventData',
      model_properties: {
        authorization: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'authorization',
          type: {
            name: 'Composite',
            class_name: 'SenderAuthorization'
          }
        },
        claims: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'claims',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        caller: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'caller',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        event_data_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'eventDataId',
          type: {
            name: 'String'
          }
        },
        correlation_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'correlationId',
          type: {
            name: 'String'
          }
        },
        event_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'eventName',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        category: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'category',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        http_request: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'httpRequest',
          type: {
            name: 'Composite',
            class_name: 'HttpRequestInfo'
          }
        },
        level: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'level',
          type: {
            name: 'Enum',
            module: 'EventLevel'
          }
        },
        resource_group_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceGroupName',
          type: {
            name: 'String'
          }
        },
        resource_provider_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceProviderName',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        resource_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceId',
          type: {
            name: 'String'
          }
        },
        resource_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceType',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        operation_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'operationId',
          type: {
            name: 'String'
          }
        },
        operation_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'operationName',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        properties: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'status',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        sub_status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'subStatus',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        event_timestamp: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'eventTimestamp',
          type: {
            name: 'DateTime'
          }
        },
        submission_timestamp: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'submissionTimestamp',
          type: {
            name: 'DateTime'
          }
        },
        subscription_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'subscriptionId',
          type: {
            name: 'String'
          }
        },
        tenant_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tenantId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end