{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-log-analytics/json-schema/azure-log-analytics-summary-logs-list-result-schema.json",
  "title": "SummaryLogsListResult",
  "description": "The response of a SummaryLogs list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-log-analytics-summaryrules-api-openapi.yml#/components/schemas/SummaryLogsListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The SummaryLogs items on this page",
      "items": {
        "$ref": "#/$defs/SummaryLogs"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ProvisioningStateEnum": {
      "type": "string",
      "description": "Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.",
      "enum": [
        "Updating",
        "Succeeded",
        "Deleting",
        "Failed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "ProvisioningStateEnum",
        "modelAsString": true,
        "values": [
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Table schema is still being built and updated, table is currently locked for any changes till the procedure is done."
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Table state is stable and without changes, table is unlocked and open for new updates."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Table state is deleting."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Table state is failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Table state is canceled."
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "RuleDefinition": {
      "type": "object",
      "description": "Rule definition parameters.",
      "properties": {
        "query": {
          "type": "string",
          "description": "Summary rule query."
        },
        "binSize": {
          "type": "integer",
          "format": "int32",
          "description": "Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, 1440."
        },
        "binDelay": {
          "type": "integer",
          "format": "int32",
          "description": "The minimum delay in seconds before bin processing."
        },
        "binStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time (UTC) when Summary rule execution starts."
        },
        "timeSelector": {
          "$ref": "#/$defs/TimeSelectorEnum",
          "description": "The time cursor used in Summary rules bins processing, e.g. TimeGenerated."
        },
        "destinationTable": {
          "type": "string",
          "description": "The destination table used for the Summary rule results."
        }
      }
    },
    "RuleTypeEnum": {
      "type": "string",
      "description": "SummaryRules rule type: User.",
      "enum": [
        "User"
      ],
      "x-ms-enum": {
        "name": "RuleTypeEnum",
        "modelAsString": true,
        "values": [
          {
            "name": "User",
            "value": "User",
            "description": "User defined summary rule. This is the definition for rules created and defined by users."
          }
        ]
      }
    },
    "StatusCodeEnum": {
      "type": "string",
      "description": "Indicates the reason for rule deactivation.",
      "enum": [
        "UserAction",
        "DataPlaneError"
      ],
      "x-ms-enum": {
        "name": "StatusCodeEnum",
        "modelAsString": true,
        "values": [
          {
            "name": "UserAction",
            "value": "UserAction",
            "description": "Summary rule stop originated from a user action (Stop was called)."
          },
          {
            "name": "DataPlaneError",
            "value": "DataPlaneError",
            "description": "Summary rule stop was caused due to data plane related error."
          }
        ]
      }
    },
    "SummaryLogs": {
      "type": "object",
      "description": "Workspace data summary rules definition.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/SummaryLogsProperties",
          "description": "Summary rule properties.",
          "x-ms-client-flatten": true
        },
        "identity": {
          "$ref": "#/$defs/SummaryLogsIdentity",
          "description": "The managed identity of the summary logs resource. Only user-assigned identity is supported."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "SummaryLogsIdentity": {
      "type": "object",
      "description": "Identity for the summary logs resource.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal ID of resource identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant ID of resource.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/SummaryLogsIdentityType",
          "description": "Type of managed service identity."
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
          "additionalProperties": {
            "$ref": "#/$defs/SummaryLogsUserIdentityProperties"
          }
        }
      },
      "required": [
        "type"
      ]
    },
    "SummaryLogsIdentityType": {
      "type": "string",
      "description": "Type of managed service identity.",
      "enum": [
        "None",
        "UserAssigned"
      ],
      "x-ms-enum": {
        "name": "SummaryLogsIdentityType",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "The default identity type. summary logs do not have a managed identity."
          },
          {
            "name": "UserAssigned",
            "value": "UserAssigned",
            "description": "summary logs is associated with a user assigned managed identity. User assigned identities are created as separate Azure resources and can be shared across multiple summary logs."
          }
        ]
      }
    },
    "SummaryLogsProperties": {
      "type": "object",
      "description": "Summary rule properties.",
      "properties": {
        "ruleType": {
          "$ref": "#/$defs/RuleTypeEnum",
          "description": "SummaryRules rule type: User."
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the Summary rule."
        },
        "description": {
          "type": "string",
          "description": "The description of the Summary rule."
        },
        "isActive": {
          "type": "boolean",
          "description": "Indicates if Summary rule is active. If not, Summary rule execution stops.",
          "readOnly": true
        },
        "statusCode": {
          "$ref": "#/$defs/StatusCodeEnum",
          "description": "Indicates the reason for rule deactivation.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningStateEnum",
          "description": "Summary rule is in provisioning state. If set to 'updating' or 'deleting', indicates a resource lock due to an ongoing operation, preventing any update to the Summary rule until the operation is complete.",
          "readOnly": true
        },
        "ruleDefinition": {
          "$ref": "#/$defs/RuleDefinition",
          "description": "Rule definition parameters."
        }
      }
    },
    "SummaryLogsUserIdentityProperties": {
      "type": "object",
      "description": "User assigned identity properties.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of user assigned identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "The client id of user assigned identity.",
          "readOnly": true
        }
      }
    },
    "TimeSelectorEnum": {
      "type": "string",
      "description": "The time cursor used in Summary rules bins processing, e.g. TimeGenerated.",
      "enum": [
        "TimeGenerated"
      ],
      "x-ms-enum": {
        "name": "TimeSelectorEnum",
        "modelAsString": true,
        "values": [
          {
            "name": "TimeGenerated",
            "value": "TimeGenerated",
            "description": "TimeGenerated."
          }
        ]
      }
    }
  }
}