API Docs
Logs

/:teamId/logs/count


GET
  • Operation ID: teamLogs-count
  • Summary: Count daily logs for a team
  • Description: Gets a daily aggreagtion of logs for a given team.

Parameters

NameInRequiredTypeDescription
teamIdpathtruestringID of the team that the logs belongs to.
metricquerytruestring

Responses

200:

  • Description: Successful response
Content

application/json:

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "count": {
        "type": "number"
      },
      "date": {
        "type": "string"
      }
    },
    "required": [
      "count",
      "date"
    ],
    "additionalProperties": false
  }
}

default:

  • Description:

/:teamId/logs/total


GET
  • Operation ID: teamLogs-total
  • Summary: Total log count for a team
  • Description: Gets the total of all logs collected and held in Moonbase.

Parameters

NameInRequiredTypeDescription
teamIdpathtruestringID of the team that the logs belongs to.

Responses

200:

  • Description: Successful response
Content

application/json:

{
  "type": "object",
  "properties": {
    "count": {
      "type": "string"
    }
  },
  "required": [
    "count"
  ],
  "additionalProperties": false
}

default:

  • Description:

/:teamId/logs/total/usage


GET
  • Operation ID: teamLogs-usageTotal
  • Summary: Total log usage for a team
  • Description: Gets the total in bytes of all logs collected and held in Moonbase.

Parameters

NameInRequiredTypeDescription
teamIdpathtruestringID of the team that the logs belongs to.

Responses

200:

  • Description: Successful response
Content

application/json:

{
  "type": "object",
  "properties": {
    "usage": {
      "type": "string"
    }
  },
  "required": [
    "usage"
  ],
  "additionalProperties": false
}

default:

  • Description:

/projects/:id/total/usage


GET
  • Operation ID: projectLogs-usageTotal
  • Summary: Total Log Usage
  • Description: Gets the total in bytes of all logs collected and held in Moonbase.

Parameters

NameInRequiredTypeDescription
idpathtruestringID of the project that the logs belongs to.

Responses

200:

  • Description: Successful response
Content

application/json:

{
  "type": "object",
  "properties": {
    "usage": {
      "type": "string"
    }
  },
  "required": [
    "usage"
  ],
  "additionalProperties": false
}

default:

  • Description:

/projects/:id/logs/total/interval


GET
  • Operation ID: projectLogs-interval
  • Summary: Total Log Usage
  • Description: Gets the occurrence of logs across a timeline, grouped by date interval.

Parameters

NameInRequiredTypeDescription
relqueryfalsestring
startqueryfalsestring
endqueryfalsestring
qqueryfalseundefinedA search query to find logs by.
idpathtruestringThe ID of the project that the logs belong to.

Responses

200:

  • Description: Successful response
Content

application/json:

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "other": {
        "type": "number"
      },
      "date": {
        "type": "string"
      },
      "error": {
        "type": "number"
      }
    },
    "required": [
      "other",
      "date",
      "error"
    ],
    "additionalProperties": false
  }
}

default:

  • Description:

/projects/:id/suggestions


GET
  • Operation ID: projectLogs-suggestions
  • Summary: Active log suggestions
  • Description: Gets active log suggestion paths across the team. Used for suggestions in the query builder.

Parameters

NameInRequiredTypeDescription
termquerytruestringGets a list of columns that match a search term. Limited to 10.
idpathtruestringThe ID of the project that the logs belong to.

Responses

200:

  • Description: Successful response
Content

application/json:

{
  "type": "array",
  "items": {
    "type": "string"
  },
  "description": "The list of suggestions."
}

default:

  • Description: